Performance improvement and usability

Повышение производительности вывода результатов запроса и дерева объектов.
Мелкие исправления.
This commit is contained in:
lsv 2023-06-28 12:14:34 +05:00
parent 2a4b4dc878
commit debed953cf
5 changed files with 32 additions and 14 deletions

View file

@ -198,14 +198,13 @@ int pgSet::ColNumber(const wxString &colname) const
{
int col;
if (needColQuoting)
col = PQfnumber(res, colname.mb_str(conv));
if (col < 0 && needColQuoting)
{
wxString quotedColName = colname;
quotedColName.Replace(wxT("\""), wxT("\"\""));
col = PQfnumber(res, (wxT("\"") + quotedColName + wxT("\"")).mb_str(conv));
}
else
col = PQfnumber(res, colname.mb_str(conv));
if (col < 0)
{