ClouGence / hasor

Hasor是一套基于 Java 语言的开发框架,区别于其它框架的是 Hasor 有着自己一套完整的体系,同时还可以和先有技术体系做到完美融合。它包含:IoC/Aop容器框架、Web框架、Jdbc框架、RSF分布式RPC框架、DataQL引擎,等几块。
http://www.hasor.net
Apache License 2.0
983 stars 273 forks source link

版本4.2.0多条SQL执行报错 #66

Closed lijianmincn closed 4 years ago

lijianmincn commented 4 years ago

dataway版本4.2.0 数据:mysql 版本:5.7.30 数据库驱动 5.1.30

SQL: hint FRAGMENT_SQL_MULTIPLE_QUERIES="last"; var dataSet = @@sql() <% select * from sys_page_info; SELECT LAST_INSERT_ID(); %> return dataSet();

报如下错误: { "success": false, "message": "[line 3:16~3:19 ,QIL 1:1] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT LAST_INSERT_ID()' at line 2", "code": 500, "lifeCycleTime": 73, "executionTime": -1, "value": "[line 3:16~3:19 ,QIL 1:1] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT LAST_INSERT_ID()' at line 2" }

zycgit commented 4 years ago

image

zycgit commented 4 years ago

应该是 语言模式选择错误导致