Skip to content

mysql mode LOAD_FILE failed #9

@shawn0915

Description

@shawn0915

test case:

CREATE SCHEMA mydb; 
USE mydb;
CREATE TABLE t1 (id int PRIMARY KEY, big BLOB);
INSERT INTO t1 VALUES (1,LOAD_FILE('/tmp/aa'));

mysql:

mysql> INSERT INTO t1 VALUES (1,LOAD_FILE('/tmp/aa'));
Query OK, 1 row affected (0.00 sec)

mysql> table t1;
+----+------------+
| id | big        |
+----+------------+
|  1 | NULL       |
+----+------------+
1 row in set (0.00 sec)

openHalo:

mysql> INSERT INTO t1 VALUES (1,LOAD_FILE('/tmp/aa'));
ERROR 32900 (HY000): column "big" is of type `blob` but expression is of type `text`

PTAL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions