empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r761873 - /incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/postgresql/DBDatabaseDriverPostgreSQL.java
Date Sat, 04 Apr 2009 07:12:33 GMT
Author: francisdb
Date: Sat Apr  4 07:12:33 2009
New Revision: 761873

URL: http://svn.apache.org/viewvc?rev=761873&view=rev
Log:
In Postgresql LONGTEXT not exist but is possible use "text"

Modified:
    incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/postgresql/DBDatabaseDriverPostgreSQL.java

Modified: incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/postgresql/DBDatabaseDriverPostgreSQL.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/postgresql/DBDatabaseDriverPostgreSQL.java?rev=761873&r1=761872&r2=761873&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/postgresql/DBDatabaseDriverPostgreSQL.java
(original)
+++ incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/postgresql/DBDatabaseDriverPostgreSQL.java
Sat Apr  4 07:12:33 2009
@@ -320,6 +320,8 @@
                 return "CAST(? AS CHAR)";
            case BLOB:
                 return "CAST(? AS bytea)";
+           case CLOB:
+                return "CAST(? AS TEXT)";
            // Unknown Type                                       
            default:
                 log.error("getConvertPhrase: unknown type (" + String.valueOf(destType));
@@ -676,7 +678,7 @@
             }
                 break;
             case CLOB:
-                sql.append("LONGTEXT");
+                sql.append("TEXT");
                 break;
             case BLOB:
                 sql.append("bytea");



Mime
View raw message