cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [1/2] cayenne git commit: CAY-2361 PostgreSQL DbGenerator issues
Date Mon, 02 Oct 2017 14:21:50 GMT
Repository: cayenne
Updated Branches:
  refs/heads/master 59b12b394 -> 0a78a598c


CAY-2361 PostgreSQL DbGenerator issues


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/4b48a002
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/4b48a002
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/4b48a002

Branch: refs/heads/master
Commit: 4b48a002dde2527ac71b3b06485288bac3b18d97
Parents: 75d1264
Author: Arseni Bulatski <ancarseni@gmail.com>
Authored: Wed Sep 27 13:19:49 2017 +0300
Committer: Arseni Bulatski <ancarseni@gmail.com>
Committed: Wed Sep 27 13:19:49 2017 +0300

----------------------------------------------------------------------
 .../java/org/apache/cayenne/dba/postgres/PostgresAdapter.java     | 3 +++
 docs/doc/src/main/resources/RELEASE-NOTES.txt                     | 1 +
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/4b48a002/cayenne-server/src/main/java/org/apache/cayenne/dba/postgres/PostgresAdapter.java
----------------------------------------------------------------------
diff --git a/cayenne-server/src/main/java/org/apache/cayenne/dba/postgres/PostgresAdapter.java
b/cayenne-server/src/main/java/org/apache/cayenne/dba/postgres/PostgresAdapter.java
index c9dd4af..dbee328 100644
--- a/cayenne-server/src/main/java/org/apache/cayenne/dba/postgres/PostgresAdapter.java
+++ b/cayenne-server/src/main/java/org/apache/cayenne/dba/postgres/PostgresAdapter.java
@@ -233,6 +233,9 @@ public class PostgresAdapter extends JdbcAdapter {
 	@Override
 	public boolean typeSupportsLength(int type) {
 		// "bytea" type does not support length
+		if(Types.DOUBLE == type || Types.REAL == type){
+			return false;
+		}
 		String[] externalTypes = externalTypesForJdbcType(type);
 		if (externalTypes != null && externalTypes.length > 0) {
 			for (String externalType : externalTypes) {

http://git-wip-us.apache.org/repos/asf/cayenne/blob/4b48a002/docs/doc/src/main/resources/RELEASE-NOTES.txt
----------------------------------------------------------------------
diff --git a/docs/doc/src/main/resources/RELEASE-NOTES.txt b/docs/doc/src/main/resources/RELEASE-NOTES.txt
index d330e5f..a4e62b9 100644
--- a/docs/doc/src/main/resources/RELEASE-NOTES.txt
+++ b/docs/doc/src/main/resources/RELEASE-NOTES.txt
@@ -40,6 +40,7 @@ CAY-2356 EJBQL: Incorrect COUNT() on outer joined table
 CAY-2357 Generic select queries silently convert result to nulls if no PK column found
 CAY-2358 NPE when callbacks invoked on null objects
 CAY-2359 EJBQL: db path in not supported in ORDER BY
+CAY-2361 PostgreSQL DbGenerator issues
 CAY-2362 ColumnSelect: unable to use Property without type
 CAY-2363 ColumnSelect: unable to use from nested context
 CAY-2364 Wrong logging in SQLTemplate


Mime
View raw message