empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r826487 - /incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/hsql/DBDatabaseDriverHSql.java
Date Sun, 18 Oct 2009 18:50:40 GMT
Author: francisdb
Date: Sun Oct 18 18:50:40 2009
New Revision: 826487

URL: http://svn.apache.org/viewvc?rev=826487&view=rev
Log:
EMPIREDB-59
remove invalid precision from FLOAT in hsql

Modified:
    incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/hsql/DBDatabaseDriverHSql.java

Modified: incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/hsql/DBDatabaseDriverHSql.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/hsql/DBDatabaseDriverHSql.java?rev=826487&r1=826486&r2=826487&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/hsql/DBDatabaseDriverHSql.java
(original)
+++ incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/hsql/DBDatabaseDriverHSql.java
Sun Oct 18 18:50:40 2009
@@ -519,7 +519,9 @@
                 sql.append("BOOLEAN");
                 break;
             case DOUBLE:
-                sql.append("FLOAT(80)");
+                // http://hsqldb.org/doc/guide/ch02.html
+                // FLOAT, DOUBLE and REAL are saved as java doubles
+                sql.append("FLOAT");
                 break;
             case DECIMAL:
             {



Mime
View raw message