db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r357843 - /db/ddlutils/trunk/src/test/org/apache/ddlutils/TestDatabaseWriterBase.java
Date Mon, 19 Dec 2005 23:56:55 GMT
Author: tomdz
Date: Mon Dec 19 15:56:51 2005
New Revision: 357843

URL: http://svn.apache.org/viewcvs?rev=357843&view=rev
Log:
Disabled comment generation for the creation of live databases

Modified:
    db/ddlutils/trunk/src/test/org/apache/ddlutils/TestDatabaseWriterBase.java

Modified: db/ddlutils/trunk/src/test/org/apache/ddlutils/TestDatabaseWriterBase.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/test/org/apache/ddlutils/TestDatabaseWriterBase.java?rev=357843&r1=357842&r2=357843&view=diff
==============================================================================
--- db/ddlutils/trunk/src/test/org/apache/ddlutils/TestDatabaseWriterBase.java (original)
+++ db/ddlutils/trunk/src/test/org/apache/ddlutils/TestDatabaseWriterBase.java Mon Dec 19
15:56:51 2005
@@ -169,7 +169,8 @@
         {
             _model = parseDatabaseFromString(schemaXml);
 
-            getPlatform().createTables(_model, true, false);
+            getPlatform().getPlatformInfo().setCommentsSupported(false);
+            getPlatform().createTables(_model, false, false);
         }
         catch (Exception ex)
         {
@@ -182,7 +183,7 @@
      * 
      * @param dataXml The data xml
      */
-    protected void insertData(String dataXml) throws DynaSqlException
+    protected Database insertData(String dataXml) throws DynaSqlException
     {
         try
         {
@@ -191,6 +192,7 @@
             dataReader.setModel(_model);
             dataReader.setSink(new DataToDatabaseSink(getPlatform(), _model));
             dataReader.parse(new StringReader(dataXml));
+            return _model;
         }
         catch (Exception ex)
         {



Mime
View raw message