r9904 - in apps/modules/trunk/test: . code

[email protected] Tue, 15 Sep 2009 17:41:24 +0200 (CEST)
Newsgroups gmane.comp.java.helma.cvs
Message-ID <20090915154124.34DFA3D0E3@mia>
Author: hannes
Date: 2009-09-15 17:41:24 +0200 (Tue, 15 Sep 2009)
New Revision: 9904

Added:
   apps/modules/trunk/test/db-mysql.sql
   apps/modules/trunk/test/db-oracle.sql
   apps/modules/trunk/test/db-postgresql.sql
Removed:
   apps/modules/trunk/test/db.sql
Modified:
   apps/modules/trunk/test/README.txt
   apps/modules/trunk/test/code/db.properties
Log:
Add db support for PostgreSQL and Oracle.

Details at http://dev.helma.org/trac/helma/changeset/9904

Modified: apps/modules/trunk/test/README.txt
===================================================================
--- apps/modules/trunk/test/README.txt	2009-09-15 15:26:55 UTC (rev 9903)
+++ apps/modules/trunk/test/README.txt	2009-09-15 15:41:24 UTC (rev 9904)
@@ -5,4 +5,6 @@
 test.repository.0 = apps/test/code
 test.repository.1 = modules/jala/util/Test/code
 
-And you need to have a MySQL JDBC driver in lib/ext, as well as create the database schema provided in db.sql.
+And you need to have a JDBC driver for your database in lib/ext,
+as well as create the database schema provided in one of the
+db-<product>.sql files.

Modified: apps/modules/trunk/test/code/db.properties
===================================================================
--- apps/modules/trunk/test/code/db.properties	2009-09-15 15:26:55 UTC (rev 9903)
+++ apps/modules/trunk/test/code/db.properties	2009-09-15 15:41:24 UTC (rev 9904)
@@ -1,5 +1,15 @@
 
+#MySQL
 dbcTest.url      = jdbc:mysql://localhost/helmaTest
-dbcTest.driver   = org.gjt.mm.mysql.Driver
+dbcTest.driver   = com.mysql.jdbc.Driver
 dbcTest.user     = helma
 dbcTest.password = secret
+
+# Oracle
+# dbcTest.url      = jdbc:oracle:thin:@localhost:1521:XE
+# dbcTest.driver   = oracle.jdbc.driver.OracleDriver
+
+# PostgreSQL
+# dbcTest.url      = jdbc:postgresql:helmaTest
+# dbcTest.driver   = org.postgresql.Driver
+

Copied: apps/modules/trunk/test/db-mysql.sql (from rev 9892, apps/modules/trunk/test/db.sql)


Property changes on: apps/modules/trunk/test/db-mysql.sql
___________________________________________________________________
Name: svn:mergeinfo
   + 
Name: svn:eol-style
   + native

Added: apps/modules/trunk/test/db-oracle.sql

Added: apps/modules/trunk/test/db-postgresql.sql

Deleted: apps/modules/trunk/test/db.sql