db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mpoes...@apache.org
Subject cvs commit: db-torque/src/generator/src/test/org/apache/torque/engine/database/model PostgresqlDomainTest.java
Date Wed, 21 Jan 2004 17:57:25 GMT
mpoeschl    2004/01/21 09:57:25

  Modified:    src/generator/src/java/org/apache/torque/engine/platform
                        PlatformPostgresqlImpl.java
               src/generator/src/test/org/apache/torque/engine/database/model
                        PostgresqlDomainTest.java
  Log:
  postgresql: use sequence for autoincrement
  
  Revision  Changes    Path
  1.5       +2 -2      db-torque/src/generator/src/java/org/apache/torque/engine/platform/PlatformPostgresqlImpl.java
  
  Index: PlatformPostgresqlImpl.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/java/org/apache/torque/engine/platform/PlatformPostgresqlImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PlatformPostgresqlImpl.java	5 Dec 2003 18:35:52 -0000	1.4
  +++ PlatformPostgresqlImpl.java	21 Jan 2004 17:57:25 -0000	1.5
  @@ -109,7 +109,7 @@
        */
       public String getAutoIncrement()
       {
  -        return "SERIAL";
  +        return "";
       }
       
   }
  
  
  
  1.3       +3 -4      db-torque/src/generator/src/test/org/apache/torque/engine/database/model/PostgresqlDomainTest.java
  
  Index: PostgresqlDomainTest.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/test/org/apache/torque/engine/database/model/PostgresqlDomainTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PostgresqlDomainTest.java	7 Dec 2003 12:47:37 -0000	1.2
  +++ PostgresqlDomainTest.java	21 Jan 2004 17:57:25 -0000	1.3
  @@ -150,9 +150,8 @@
       {
           Table table = db.getTable("native");
           Column col = table.getColumn("native_id");
  -        assertEquals("SERIAL", col.getAutoIncrementString());
  -        // TODO sequence or identity??
  -//        assertEquals("native_id SERIAL", col.getSqlString());
  +        assertEquals("", col.getAutoIncrementString());
  +        assertEquals("native_id INTEGER NOT NULL ", col.getSqlString());
           col = table.getColumn("name");
           assertEquals("", col.getAutoIncrementString());
       }    
  
  
  

---------------------------------------------------------------------
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