Skip to content

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ void QgsPostgresProvider::select(QgsAttributeList fetchAttributes,
541541
{
542542
if( (*it) != primaryKey) //no need to fetch primary key again
543543
{
544-
declare += "," + *it + "::text";
544+
declare += ",\"" + *it + "\"";
545545
}
546546
}
547547

@@ -635,7 +635,7 @@ bool QgsPostgresProvider::getFeatureAtId(int featureId,
635635
{
636636
if( (*namesIt) != primaryKey) //no need to fetch primary key again
637637
{
638-
sql += "," + *namesIt + "::text";
638+
sql += ",\"" + *namesIt + "\"";
639639
}
640640
}
641641

0 commit comments

Comments
 (0)
Please sign in to comment.