Comments (2)
你连个版本信息都没提供
我基于最新代码验证运行正常。
请使用最新版验证。
from druid.
测试代码文本:
@Test
public void testComment() {
String sql ="----- 注释\n" +
"select bsd.line_id, --注释1\n " +
"bsd.line_id1 --注释2\n" +
"from bsd; --行id\n" +
"-- '有错误';";
SQLStatementParser parser = new HiveStatementParser(sql, SQLParserFeature.IgnoreNameQuotes);
SQLStatement stmt = parser.parseStatement(); //
try {
System.out.println(stmt.toString());
} catch (ClassCastException e) {
e.printStackTrace();
}
}
from druid.
Related Issues (20)
- druid最新代码解析clickhouse array join 有误 HOT 1
- druid最新代码解析json建立索引有误 HOT 1
- AbstractQuery.java:228 报错 java.lang.NullPointerException HOT 1
- 使用MySqlWallProvider对sql执行check方法,发现无法识别rlike关键词 HOT 2
- SQLParserUtils 拆分SqlServer 的sql时会去除最后的;导致运行报错 HOT 1
- 最新版1.2.23版本出现connection closed错误 HOT 4
- 多个数据库的CREATE USER、GRANT、REVOKE的SQLUtils.parseStatements解析都报错 HOT 2
- springboot2.7.8 + mysql 8.4.0 + druid-springboot-starter 不能用withRecursive递归查询,一使用就报语法错误,sql本身是没问题 HOT 1
- druid 解析 oracle select 语句 bug
- wrong
- 解析hive创建表时不能识别STORED BY HOT 3
- oracle 解析 alter add (CONSTRAINT) 语句失败
- ValidConnectionChecker未适配gauss数据库
- 多数据源,慢sql阈值失效,不管设置多少都是默认的3s
- Druid Startrt 1.2.21+ && SpringBoot 3.2.3+ && JDK21/17 starter配置文件参数无法识别 HOT 3
- tried to access private field com.alibaba.druid.pool.DruidPooledConnection.disable HOT 2
- 请各位帮忙看看问题,druid连接sqlserver2019,monitor页面无监控数据
- 含有 rename 的 alert table 语句被解析为单纯 rename, alter table 其余信息丢失 HOT 1
- druid1.1.9版本中,服务运行一段时间后与Oracle12c的连接中出现大面积TIME_WAITED状态,无法正常获取连接 HOT 3
- pgsql在等值查询条件下,已单反斜杠结尾会报语法错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from druid.