kenjoey

Ametys CMS patch 1 to allow HSQLDB database

Jul 5th, 2013
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- ConnectionHelper.java 2010-02-09 16:56:43.000000000 +0300
  2. +++ /root/ConnectionHelper.java 2013-07-05 01:25:28.000000000 +0400
  3. @@ -55,7 +55,10 @@
  4. DATABASE_POSTGRES,
  5.  
  6. /** Database type is Derby */
  7. - DATABASE_DERBY
  8. + DATABASE_DERBY,
  9. +
  10. + /** Database type is Hsqldb */
  11. + DATABASE_HSQLDB
  12. }
  13.  
  14. // Logger for traces
  15. @@ -218,6 +221,10 @@
  16. {
  17. return DatabaseType.DATABASE_DERBY;
  18. }
  19. + else if (jdbcURL.trim().startsWith("jdbc:hsqldb"))
  20. + {
  21. + return DatabaseType.DATABASE_HSQLDB;
  22. + }
  23. else
  24. {
  25. return DatabaseType.DATABASE_UNKNOWN;
RAW Paste Data