Skip to content
Permalink
Browse files
Alternative fix to that in r5637 - fields that the user didn't touch
are left to the database to fill in.


git-svn-id: http://svn.osgeo.org/qgis/trunk@5639 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jul 26, 2006
1 parent 4d839dd commit 8195804c8d6da6fba6c40fb42632f10d853034cf
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/postgres/qgspostgresprovider.cpp
@@ -1602,6 +1602,7 @@ bool QgsPostgresProvider::addFeature(QgsFeature* f, int primaryKeyHighWater)
if (
(fieldname != geometryColumn) &&
(fieldname != primaryKey) &&
(!(it->fieldValue().isEmpty())) &&
(fieldInLayer)
)
{
@@ -1691,12 +1692,11 @@ bool QgsPostgresProvider::addFeature(QgsFeature* f, int primaryKeyHighWater)
if (
(fieldname != geometryColumn) &&
(fieldname != primaryKey) &&
(!(it->fieldValue().isEmpty())) &&
(fieldInLayer)
)
{
QString fieldvalue = it->fieldValue();
if (fieldvalue.isEmpty())
fieldvalue = "NULL";
bool charactertype=false;
insert+=",";

0 comments on commit 8195804

Please sign in to comment.