且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

JUnit / HSQLDB:如何在使用HSQLDB进行测试时使用Oracle语法解决错误(无特权和/或无DUAL对象)

更新时间:2023-02-25 20:11:32

If you use Hibernate 3.6 with HSQLDB 2.0.1 or later, you can use a connection property sql.syntax_ora=true on your connection URL. This enables the DUAL table together with some other Oracle specific syntax.

You probably need a few more connection properties for behaviour that is not covered by the main property. See: http://hsqldb.org/doc/2.0/guide/management-chapt.html#mtc_compatibility_oracle