SHARE
TWEET

Ametys CMS patch 2 to allow HSQLDB database

a guest Jul 5th, 2013 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- DataSourceExtensionPoint.java       2013-03-14 21:44:46.000000000 +0400
  2. +++ /root/DataSourceExtensionPoint.java 2013-07-05 00:19:17.000000000 +0400
  3. @@ -110,6 +110,10 @@
  4.          {
  5.              return "SELECT 1 FROM SYS.SYSTABLES";
  6.          }
  7. +               else if ("org.hsqldb.jdbcDriver".equals(driver) || "org.hsqldb.jdbc.JDBCDriver".equals(driver))
  8. +               {
  9. +                   return "SELECT 1 FROM INFORMATION_SCHEMA.SYSTEM_USERS";
  10. +               }
  11.          else
  12.          {
  13.              return "SELECT 1";
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top