You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UPDATE TEST_TABLE SET SQLDATE = DATE'2022-02-02' WHERE TEST_ID = 1
Testcase Code
String sql="UPDATE TEST_TABLE SET SQLDATE = DATE'2022-02-02' WHERE TEST_ID = 1";
try {
List sqlStatements = SQLUtils.parseStatements(sql, DbType.dm);
System.out.println(sqlStatements.size());
}catch(Exception e) {
e.printStackTrace();
}
Stacktrace Info
com.alibaba.druid.sql.parser.ParserException: not supported.pos 48, line 1, column 37, token LITERAL_CHARS 2022-02-02
at com.alibaba.druid.sql.parser.SQLStatementParser.parseStatementList(SQLStatementParser.java:654)
at com.alibaba.druid.sql.SQLUtils.parseStatements(SQLUtils.java:600)
at com.alibaba.druid.sql.SQLUtils.parseStatements(SQLUtils.java:621)
at com.druid.SqlParseTest.testDaMengInsert(SqlParseTest.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
Error Info
com.alibaba.druid.sql.parser.ParserException: not supported.pos 48, line 1, column 37, token LITERAL_CHARS 2022-02-02
The text was updated successfully, but these errors were encountered:
Database Type
达梦数据库
Database Version
达梦V8
Druid Version
1.2.23
JDK Version
JDK8
Error SQL
UPDATE TEST_TABLE SET SQLDATE = DATE'2022-02-02' WHERE TEST_ID = 1
Testcase Code
String sql="UPDATE TEST_TABLE SET SQLDATE = DATE'2022-02-02' WHERE TEST_ID = 1";
try {
List sqlStatements = SQLUtils.parseStatements(sql, DbType.dm);
System.out.println(sqlStatements.size());
}catch(Exception e) {
e.printStackTrace();
}
Stacktrace Info
com.alibaba.druid.sql.parser.ParserException: not supported.pos 48, line 1, column 37, token LITERAL_CHARS 2022-02-02
at com.alibaba.druid.sql.parser.SQLStatementParser.parseStatementList(SQLStatementParser.java:654)
at com.alibaba.druid.sql.SQLUtils.parseStatements(SQLUtils.java:600)
at com.alibaba.druid.sql.SQLUtils.parseStatements(SQLUtils.java:621)
at com.druid.SqlParseTest.testDaMengInsert(SqlParseTest.java:99)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
Error Info
com.alibaba.druid.sql.parser.ParserException: not supported.pos 48, line 1, column 37, token LITERAL_CHARS 2022-02-02
The text was updated successfully, but these errors were encountered: