db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g.@apache.org
Subject svn commit: r1872430 - in /db/torque/torque4/trunk/torque-templates/src: main/java/org/apache/torque/templates/platform/PlatformPostgresqlImpl.java test/resources/org/apache/torque/templates/expected-schema-postgresql.sql
Date Tue, 07 Jan 2020 10:45:49 GMT
Author: gk
Date: Tue Jan  7 10:45:49 2020
New Revision: 1872430

URL: http://svn.apache.org/viewvc?rev=1872430&view=rev
Log:
- fix postgresql unique (no support for size/length limit)

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformPostgresqlImpl.java
    db/torque/torque4/trunk/torque-templates/src/test/resources/org/apache/torque/templates/expected-schema-postgresql.sql

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformPostgresqlImpl.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformPostgresqlImpl.java?rev=1872430&r1=1872429&r2=1872430&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformPostgresqlImpl.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/platform/PlatformPostgresqlImpl.java
Tue Jan  7 10:45:49 2020
@@ -146,8 +146,4 @@ public class PlatformPostgresqlImpl exte
         return true;
     }
     
-    @Override
-    public boolean hasUniqueConstraintSize() {
-        return true;
-    }
 }

Modified: db/torque/torque4/trunk/torque-templates/src/test/resources/org/apache/torque/templates/expected-schema-postgresql.sql
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/test/resources/org/apache/torque/templates/expected-schema-postgresql.sql?rev=1872430&r1=1872429&r2=1872430&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/test/resources/org/apache/torque/templates/expected-schema-postgresql.sql
(original)
+++ db/torque/torque4/trunk/torque-templates/src/test/resources/org/apache/torque/templates/expected-schema-postgresql.sql
Tue Jan  7 10:45:49 2020
@@ -113,7 +113,7 @@ CREATE TABLE b
     b_id INTEGER NOT NULL,
     name VARCHAR(50) NOT NULL,
     PRIMARY KEY(b_id),
-    CONSTRAINT NAME_UNQ UNIQUE (name(20))
+    CONSTRAINT NAME_UNQ UNIQUE (name)
 );
 
 
@@ -131,7 +131,7 @@ CREATE TABLE b2
     b2_name_3 VARCHAR(10) NOT NULL,
     b2_name_4 VARCHAR(10) NOT NULL,
     PRIMARY KEY(b2_id),
-    CONSTRAINT NAME_UNQ UNIQUE (b2_name_1(20), b2_name_2, b2_name_3(5), b2_name_4)
+    CONSTRAINT NAME_UNQ UNIQUE (b2_name_1, b2_name_2, b2_name_3, b2_name_4)
 );
 
 CREATE SEQUENCE b2_SEQ INCREMENT BY 1 START WITH 1 NO MAXVALUE NO CYCLE;



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message