Revision: 5015
          http://sourceforge.net/p/jump-pilot/code/5015
Author:   michaudm
Date:     2016-09-10 20:09:23 +0000 (Sat, 10 Sep 2016)
Log Message:
-----------
bugfix : old postgis driver could not save layer with a pk <> dbid

Modified Paths:
--------------
    core/trunk/ChangeLog
    
core/trunk/src/org/openjump/core/ui/plugin/datastore/postgis/SaveToPostGISDataSource.java

Modified: core/trunk/ChangeLog
===================================================================
--- core/trunk/ChangeLog        2016-09-10 14:20:51 UTC (rev 5014)
+++ core/trunk/ChangeLog        2016-09-10 20:09:23 UTC (rev 5015)
@@ -3,6 +3,9 @@
 # 2. make sure that lines break at 80 chars for constricted display situations
 #<-------------------------------- 80 chars 
---------------------------------->#
 
+2016-09-10 mmichaud <[email protected]>
+  * bugfix : old postgis driver could not save layer with pk != dbid
+
 2016-09-01 Giuseppe Aruta  <[email protected]>
   * File projection detection: Added IGNF and IGN G\xE9oportail codes
   * File projection detection: Added measure units

Modified: 
core/trunk/src/org/openjump/core/ui/plugin/datastore/postgis/SaveToPostGISDataSource.java
===================================================================
--- 
core/trunk/src/org/openjump/core/ui/plugin/datastore/postgis/SaveToPostGISDataSource.java
   2016-09-10 14:20:51 UTC (rev 5014)
+++ 
core/trunk/src/org/openjump/core/ui/plugin/datastore/postgis/SaveToPostGISDataSource.java
   2016-09-10 20:09:23 UTC (rev 5015)
@@ -206,7 +206,7 @@
                         jdbcConn.commit();
                         jdbcConn.setAutoCommit(true);
                         if (featureSchema.getExternalPrimaryKeyIndex() > -1) {
-                            reloadDataFromDataStore(this, 
connectionDescriptor, schemaName, tableName, DEFAULT_PK_NAME, monitor);
+                            reloadDataFromDataStore(this, 
connectionDescriptor, schemaName, tableName, primary_key, monitor);
                         }
                     } catch(Exception e) {
                         throw e;
@@ -229,7 +229,7 @@
                         jdbcConn.commit();
                         jdbcConn.setAutoCommit(true);
                         if (featureSchema.getExternalPrimaryKeyIndex() > -1) {
-                            reloadDataFromDataStore(this, 
connectionDescriptor, schemaName, tableName, DEFAULT_PK_NAME, monitor);
+                            reloadDataFromDataStore(this, 
connectionDescriptor, schemaName, tableName, primary_key, monitor);
                         }
                     } catch(Exception e) {
                         throw e;
@@ -253,7 +253,7 @@
                         jdbcConn.commit();
                         jdbcConn.setAutoCommit(true);
                         if (featureSchema.getExternalPrimaryKeyIndex() > -1) {
-                            reloadDataFromDataStore(this, 
connectionDescriptor, schemaName, tableName, DEFAULT_PK_NAME, monitor);
+                            reloadDataFromDataStore(this, 
connectionDescriptor, schemaName, tableName, primary_key, monitor);
                         }
                     } catch(SQLException e) {
                         throw e;


------------------------------------------------------------------------------
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to