sql-maven-plugin在sqlCommand中转义单引号
-
27-10-2019 - |
题
我有一个基于Maven的项目,我尝试使用sql-maven-plugin来设置/删除数据库进行系统测试。 我放入sqlCommand元素:
CALL SOME_STORED_PROC('SYSTEST')
但是,maven构建在此SQL上失败,但followig例外:
org.apache.maven.lifecycle.LifecycleExecutionException:
ERROR: Function 'SOME_STORED_PROC(UNKNOWN)' does not exist
Unable to identify a function that satisfies the given argument types
You may need to add explicit typecasts
我怀疑存储过程的参数需要以某种特殊的方式进行转义。我找不到任何文档/示例。
有什么想法吗?
Aviad
解决方案
存储过程的参数需要双重说明。确实帮助了局势
不隶属于 StackOverflow