qgspostgresprovider.cpp.diff

patch fixing part of ticket 741..... I think - Redmine Admin, 2007-07-26 03:08 PM

Download (815 Bytes)

View differences:

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);