mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
@@ -408,7 +408,7 @@ public class MySqlOutputVisitor extends SQLASTOutputVisitor implements MySqlASTV
|
||||
print(x.getIndexType());
|
||||
}
|
||||
|
||||
print(" (");
|
||||
print("(");
|
||||
for (int i = 0, size = x.getColumns().size(); i < size; ++i) {
|
||||
if (i != 0) {
|
||||
print(", ");
|
||||
|
||||
@@ -78,7 +78,7 @@ public class MySqlCreateTableTest53 extends MysqlTest {
|
||||
+ "`ebay_token` varchar(255) COLLATE utf8_bin NOT NULL COMMENT 'eBay授权码',"//
|
||||
+ "`ebay_name` varchar(50) NOT NULL COMMENT 'eBay唯一名',"//
|
||||
+ "`create_time` datetime NOT NULL COMMENT '授权时间',"//
|
||||
+ "`invalid_time` datetime NOT NULL COMMENT '授权失效时间'," + "PRIMARY KEY USING BTREE (`auth_id`), INDEX `ind_usr_id` USING BTREE (`usr_id`)"//
|
||||
+ "`invalid_time` datetime NOT NULL COMMENT '授权失效时间'," + "PRIMARY KEY USING BTREE (`auth_id`), INDEX `ind_usr_id` USING BTREE(`usr_id`)"//
|
||||
+ ") ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='INS_EBAY_AUTH';";
|
||||
|
||||
MySqlStatementParser parser = new MySqlStatementParser(sql);
|
||||
@@ -108,7 +108,7 @@ public class MySqlCreateTableTest53 extends MysqlTest {
|
||||
+"\n\t`create_time` datetime NOT NULL COMMENT '授权时间', "//
|
||||
+"\n\t`invalid_time` datetime NOT NULL COMMENT '授权失效时间', "//
|
||||
+"\n\tPRIMARY KEY USING BTREE (`auth_id`), "
|
||||
+"\n\tINDEX `ind_usr_id` USING BTREE (`usr_id`)"
|
||||
+"\n\tINDEX `ind_usr_id` USING BTREE(`usr_id`)"
|
||||
+"\n) ENGINE = InnoDB CHARSET = utf8 COLLATE utf8_bin COMMENT = 'INS_EBAY_AUTH'", output);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,6 @@ public class MySqlError_test_2 extends MysqlTest {
|
||||
|
||||
Assert.assertNotNull(error);
|
||||
// error.printStackTrace();
|
||||
Assert.assertEquals("syntax error, IDENTIFIER free_postage, pos 31", error.getMessage());
|
||||
Assert.assertEquals("syntax error, error in :'oods free_postage',expect IDENTIFIER, actual IDENTIFIER free_postage", error.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,6 @@ public class MySqlError_test_3 extends MysqlTest {
|
||||
|
||||
Assert.assertNotNull(error);
|
||||
// error.printStackTrace();
|
||||
Assert.assertEquals("syntax error, QUES LIMIT, pos 248", error.getMessage());
|
||||
Assert.assertEquals("syntax error, error in :'us = LIMIT ?, ?',expect QUES, actual QUES LIMIT", error.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user