mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 06:05:49 -06:00
Performance improvement and usability
Повышение производительности вывода результатов запроса и дерева объектов. Мелкие исправления.
This commit is contained in:
parent
2a4b4dc878
commit
debed953cf
5 changed files with 32 additions and 14 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue