@@ -1025,41 +1025,41 @@ func TestSelectIntoFile(t *testing.T, harness Harness) {
10251025 skip bool
10261026 }{
10271027 {
1028- file : "outfile.txt" ,
1029- query : "select * from mytable into outfile 'outfile.txt';" ,
1028+ file : "outfile.txt" ,
1029+ query : "select * from mytable into outfile 'outfile.txt';" ,
10301030 expRows : []sql.Row {{types .NewOkResult (3 )}},
10311031 exp : "" +
10321032 "1\t first row\n " +
10331033 "2\t second row\n " +
10341034 "3\t third row\n " ,
10351035 },
10361036 {
1037- file : "dumpfile.txt" ,
1038- query : "select * from mytable limit 1 into dumpfile 'dumpfile.txt';" ,
1037+ file : "dumpfile.txt" ,
1038+ query : "select * from mytable limit 1 into dumpfile 'dumpfile.txt';" ,
10391039 expRows : []sql.Row {{types .NewOkResult (1 )}},
1040- exp : "1first row" ,
1040+ exp : "1first row" ,
10411041 },
10421042 {
1043- file : "outfile.txt" ,
1044- query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',';" ,
1043+ file : "outfile.txt" ,
1044+ query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',';" ,
10451045 expRows : []sql.Row {{types .NewOkResult (3 )}},
10461046 exp : "" +
10471047 "1,first row\n " +
10481048 "2,second row\n " +
10491049 "3,third row\n " ,
10501050 },
10511051 {
1052- file : "outfile.txt" ,
1053- query : "select * from mytable into outfile 'outfile.txt' fields terminated by '$$';" ,
1052+ file : "outfile.txt" ,
1053+ query : "select * from mytable into outfile 'outfile.txt' fields terminated by '$$';" ,
10541054 expRows : []sql.Row {{types .NewOkResult (3 )}},
10551055 exp : "" +
10561056 "1$$first row\n " +
10571057 "2$$second row\n " +
10581058 "3$$third row\n " ,
10591059 },
10601060 {
1061- file : "outfile.txt" ,
1062- query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',' optionally enclosed by '\" ';" ,
1061+ file : "outfile.txt" ,
1062+ query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',' optionally enclosed by '\" ';" ,
10631063 expRows : []sql.Row {{types .NewOkResult (3 )}},
10641064 exp : "" +
10651065 "1,\" first row\" \n " +
@@ -1077,62 +1077,62 @@ func TestSelectIntoFile(t *testing.T, harness Harness) {
10771077 err : sql .ErrUnexpectedSeparator ,
10781078 },
10791079 {
1080- file : "outfile.txt" ,
1081- query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',' enclosed by '\" ';" ,
1080+ file : "outfile.txt" ,
1081+ query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',' enclosed by '\" ';" ,
10821082 expRows : []sql.Row {{types .NewOkResult (3 )}},
10831083 exp : "" +
10841084 "\" 1\" ,\" first row\" \n " +
10851085 "\" 2\" ,\" second row\" \n " +
10861086 "\" 3\" ,\" third row\" \n " ,
10871087 },
10881088 {
1089- file : "outfile.txt" ,
1090- query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',' lines terminated by ';';" ,
1089+ file : "outfile.txt" ,
1090+ query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',' lines terminated by ';';" ,
10911091 expRows : []sql.Row {{types .NewOkResult (3 )}},
10921092 exp : "" +
10931093 "1,first row;" +
10941094 "2,second row;" +
10951095 "3,third row;" ,
10961096 },
10971097 {
1098- file : "outfile.txt" ,
1099- query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',' lines terminated by 'r';" ,
1098+ file : "outfile.txt" ,
1099+ query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',' lines terminated by 'r';" ,
11001100 expRows : []sql.Row {{types .NewOkResult (3 )}},
11011101 exp : "" +
11021102 "1,fi\\ rst \\ rowr" +
11031103 "2,second \\ rowr" +
11041104 "3,thi\\ rd \\ rowr" ,
11051105 },
11061106 {
1107- file : "outfile.txt" ,
1108- query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',' lines starting by 'r';" ,
1107+ file : "outfile.txt" ,
1108+ query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',' lines starting by 'r';" ,
11091109 expRows : []sql.Row {{types .NewOkResult (3 )}},
11101110 exp : "" +
11111111 "r1,first row\n " +
11121112 "r2,second row\n " +
11131113 "r3,third row\n " ,
11141114 },
11151115 {
1116- file : "outfile.txt" ,
1117- query : "select * from mytable into outfile 'outfile.txt' fields terminated by '';" ,
1116+ file : "outfile.txt" ,
1117+ query : "select * from mytable into outfile 'outfile.txt' fields terminated by '';" ,
11181118 expRows : []sql.Row {{types .NewOkResult (3 )}},
11191119 exp : "" +
11201120 "1\t first row\n " +
11211121 "2\t second row\n " +
11221122 "3\t third row\n " ,
11231123 },
11241124 {
1125- file : "outfile.txt" ,
1126- query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',' lines terminated by '';" ,
1125+ file : "outfile.txt" ,
1126+ query : "select * from mytable into outfile 'outfile.txt' fields terminated by ',' lines terminated by '';" ,
11271127 expRows : []sql.Row {{types .NewOkResult (3 )}},
11281128 exp : "" +
11291129 "1,first row" +
11301130 "2,second row" +
11311131 "3,third row" ,
11321132 },
11331133 {
1134- file : "outfile.txt" ,
1135- query : "select * from niltable into outfile 'outfile.txt';" ,
1134+ file : "outfile.txt" ,
1135+ query : "select * from niltable into outfile 'outfile.txt';" ,
11361136 expRows : []sql.Row {{types .NewOkResult (6 )}},
11371137 exp : "1\t \\ N\t \\ N\t \\ N\n " +
11381138 "2\t 2\t 1\t \\ N\n " +
@@ -1142,8 +1142,8 @@ func TestSelectIntoFile(t *testing.T, harness Harness) {
11421142 "6\t 6\t 0\t 6\n " ,
11431143 },
11441144 {
1145- file : "outfile.txt" ,
1146- query : "select * from niltable into outfile 'outfile.txt' fields terminated by ',' enclosed by '\" ';" ,
1145+ file : "outfile.txt" ,
1146+ query : "select * from niltable into outfile 'outfile.txt' fields terminated by ',' enclosed by '\" ';" ,
11471147 expRows : []sql.Row {{types .NewOkResult (6 )}},
11481148 exp : "\" 1\" ,\\ N,\\ N,\\ N\n " +
11491149 "\" 2\" ,\" 2\" ,\" 1\" ,\\ N\n " +
@@ -1153,8 +1153,8 @@ func TestSelectIntoFile(t *testing.T, harness Harness) {
11531153 "\" 6\" ,\" 6\" ,\" 0\" ,\" 6\" \n " ,
11541154 },
11551155 {
1156- file : "outfile.txt" ,
1157- query : "select * from niltable into outfile 'outfile.txt' fields terminated by ',' escaped by '$';" ,
1156+ file : "outfile.txt" ,
1157+ query : "select * from niltable into outfile 'outfile.txt' fields terminated by ',' escaped by '$';" ,
11581158 expRows : []sql.Row {{types .NewOkResult (6 )}},
11591159 exp : "1,$N,$N,$N\n " +
11601160 "2,2,1,$N\n " +
@@ -1164,8 +1164,8 @@ func TestSelectIntoFile(t *testing.T, harness Harness) {
11641164 "6,6,0,6\n " ,
11651165 },
11661166 {
1167- file : "outfile.txt" ,
1168- query : "select * from niltable into outfile 'outfile.txt' fields terminated by ',' escaped by '';" ,
1167+ file : "outfile.txt" ,
1168+ query : "select * from niltable into outfile 'outfile.txt' fields terminated by ',' escaped by '';" ,
11691169 expRows : []sql.Row {{types .NewOkResult (6 )}},
11701170 exp : "1,NULL,NULL,NULL\n " +
11711171 "2,2,1,NULL\n " +
@@ -1175,8 +1175,8 @@ func TestSelectIntoFile(t *testing.T, harness Harness) {
11751175 "6,6,0,6\n " ,
11761176 },
11771177 {
1178- file : "./subdir/outfile.txt" ,
1179- query : "select * from mytable into outfile './subdir/outfile.txt';" ,
1178+ file : "./subdir/outfile.txt" ,
1179+ query : "select * from mytable into outfile './subdir/outfile.txt';" ,
11801180 expRows : []sql.Row {{types .NewOkResult (3 )}},
11811181 exp : "" +
11821182 "1\t first row\n " +
0 commit comments