qgspostgresprovider.cpp.diff
src/providers/postgres/qgspostgresprovider.cpp (working copy) | ||
---|---|---|
479 | 479 |
} |
480 | 480 |
for(std::list<QString>::const_iterator it = mFetchAttributeNames.begin(); it != mFetchAttributeNames.end(); ++it) |
481 | 481 |
{ |
482 |
declare += "," + *it + "::text"; |
|
482 |
//declare += "," + *it + "::text"; |
|
483 |
declare += ",\"" + *it +"\""; |
|
483 | 484 |
} |
484 | 485 | |
485 | 486 |
declare += " "; |
... | ... | |
569 | 570 |
} |
570 | 571 |
for(namesIt = attributeNames.begin(); namesIt != attributeNames.end(); ++namesIt) |
571 | 572 |
{ |
572 |
sql += "," + *namesIt + "::text";
|
|
573 |
sql += ",\"" + *namesIt + "\"";
|
|
573 | 574 |
} |
574 | 575 | |
575 | 576 |
sql += " " + QString("from %1").arg(mSchemaTableName); |