improved sql parser derby support, bug fixed for issue #3020

This commit is contained in:
shaojin.wensj
2019-01-30 21:12:20 +08:00
parent 212e8f0965
commit a9fa55033c
3 changed files with 20 additions and 2 deletions
@@ -0,0 +1,13 @@
package com.alibaba.druid.bvt.sql.derby;
import com.alibaba.druid.sql.SQLUtils;
import com.alibaba.druid.util.JdbcConstants;
import junit.framework.TestCase;
public class DerbySelectTest extends TestCase {
public void test_for_derby() throws Exception {
String sql = "select * from sys_user offset ? rows fetch next ? rows only";
SQLUtils.parseSingleStatement(sql, JdbcConstants.DERBY);
}
}