summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Winkler2009-09-18 07:41:08 (EDT)
committerStefan Winkler2009-09-18 07:41:08 (EDT)
commitc21c2288cc6e245cff53548e2068aa0858792e60 (patch)
tree5c2fb3463af4c5d715076c002bbb7669c71aac1c
parentd22c394d7ad94f7d54517b87a6a2738ae006d8a5 (diff)
downloadcdo-c21c2288cc6e245cff53548e2068aa0858792e60.zip
cdo-c21c2288cc6e245cff53548e2068aa0858792e60.tar.gz
cdo-c21c2288cc6e245cff53548e2068aa0858792e60.tar.bz2
bug 276979: [DB] BLOB/CLOB stored as "text" in PostgreSQLAdapter leads to corrupted PackageUnit data
https://bugs.eclipse.org/bugs/show_bug.cgi?id=276979
-rw-r--r--plugins/org.eclipse.net4j.db.postgresql/src/org/eclipse/net4j/db/postgresql/PostgreSQLAdapter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.net4j.db.postgresql/src/org/eclipse/net4j/db/postgresql/PostgreSQLAdapter.java b/plugins/org.eclipse.net4j.db.postgresql/src/org/eclipse/net4j/db/postgresql/PostgreSQLAdapter.java
index 61ae6b2..5b29bfd 100644
--- a/plugins/org.eclipse.net4j.db.postgresql/src/org/eclipse/net4j/db/postgresql/PostgreSQLAdapter.java
+++ b/plugins/org.eclipse.net4j.db.postgresql/src/org/eclipse/net4j/db/postgresql/PostgreSQLAdapter.java
@@ -8,6 +8,7 @@
* Contributors:
* Victor Roldan Betancort - initial API and implementation
* Eike Stepper - maintenance
+ * Stefan Winkler - Bug 276979
*/
package org.eclipse.net4j.db.postgresql;
@@ -83,8 +84,9 @@ public class PostgreSQLAdapter extends DBAdapter
{
case VARCHAR:
case CLOB:
+ return "text"; //$NON-NLS-1$
case BLOB:
- return "text"; //$NON-NLS-1$
+ return "bytea"; //$NON-NLS-1$
}
return super.getTypeName(field);