Package: qgis / 2.4.0-1

0001-do-not-transform-toString-to-quote-values-NULL-integ.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From ed14cf374d7c9b4849e89882c6009e25230fd952 Mon Sep 17 00:00:00 2001
From: Denis Rouzaud <denis.rouzaud@gmail.com>
Date: Wed, 30 Jul 2014 11:37:56 +0200
Subject: do not transform toString to quote values (NULL integer becomes 0
 otherwise)
Origin: https://github.com/qgis/QGIS/commit/ed14cf374d7c9b4849e89882c6009e25230fd952


--- a/src/providers/postgres/qgspostgresprovider.cpp
+++ b/src/providers/postgres/qgspostgresprovider.cpp
@@ -1676,7 +1676,7 @@ bool QgsPostgresProvider::addFeatures( Q
         }
         else
         {
-          values += delim + quotedValue( v.toString() );
+          values += delim + quotedValue( v );
         }
       }
       else