Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
10.1.18
-
None
-
CentOS 7.2
Description
The table is created as follows
create table audit_log ( |
logtime char(17), |
serverhost varchar(128), |
username varchar(128), |
host varchar(128), |
connectionid int unsigned, |
queryid int unsigned, |
operation varchar(128), |
databasename varchar(128), |
object varchar(512), |
retcode int unsigned |
)
|
engine=CONNECT table_type=CSV |
file_name='/home/mysql/test/server_audit.log' |
data_charset='utf8' QCHAR='''' quoted=1; |
When reading the following line of data
20161102 10:24:41,luovm1,root,localhost,5,17,QUERY,,'load data infile \'discounts.csv\'',1046
|
There is the following error
> select * from audit_log limit 20;
|
ERROR 1296 (HY000): Got error 122 'Missing field 9 in audit_log1 line 20' from CONNECT
|
Any insights will be appreciated.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
The table is created as follows
create table audit_log ( logtime char(17), serverhost varchar(128), username varchar(128), host varchar(128), connectionid int unsigned, queryid int unsigned, operation varchar(128), databasename varchar(128), object varchar(512), retcode int unsigned ) engine=CONNECT table_type=CSV file_name='/home/mysql/test/server_audit.log' data_charset='utf8' QCHAR='''' quoted=1; When reading the following line of data 20161102 10:24:41,luovm1,root,localhost,5,17,QUERY,,'load data infile \'discounts.csv\'',1046 There is the following error > select * from audit_log limit 20; ERROR 1296 (HY000): Got error 122 'Missing field 9 in audit_log1 line 20' from CONNECT Any insights will be appreciated. |
The table is created as follows
{code:sql} create table audit_log ( logtime char(17), serverhost varchar(128), username varchar(128), host varchar(128), connectionid int unsigned, queryid int unsigned, operation varchar(128), databasename varchar(128), object varchar(512), retcode int unsigned ) engine=CONNECT table_type=CSV file_name='/home/mysql/test/server_audit.log' data_charset='utf8' QCHAR='''' quoted=1; {code} When reading the following line of data {noformat} 20161102 10:24:41,luovm1,root,localhost,5,17,QUERY,,'load data infile \'discounts.csv\'',1046 {noformat} There is the following error {noformat} > select * from audit_log limit 20; ERROR 1296 (HY000): Got error 122 'Missing field 9 in audit_log1 line 20' from CONNECT {noformat} Any insights will be appreciated. |
Labels | need_feedback |
Labels | need_feedback |
Assignee | Olivier Bertrand [ bertrandop ] |
issue.field.resolutiondate | 2016-11-05 11:53:13.0 | 2016-11-05 11:53:13.669 |
Fix Version/s | 10.0.29 [ 22312 ] | |
Fix Version/s | 10.1.19 [ 22111 ] | |
Fix Version/s | 10.2.3 [ 22115 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Fix Version/s | 10.1.20 [ 22112 ] | |
Fix Version/s | 10.1.19 [ 22111 ] |
Workflow | MariaDB v3 [ 78208 ] | MariaDB v4 [ 151187 ] |
Apparently, single quotes should be escaped like '' rather than \'.
At least the following note suggests so:
https://mariadb.com/kb/en/mariadb/connect-csv-and-fmt-table-types/