PGSQL INTERFACES PGADMIN HACKERS 43 CVS COMMIT BY ANDREAS FIX QUOTING IDENTIFIERS STARTING WITH NUMBERS
From: cvs@no-spam
Subject: CVS Commit by andreas: fix quoting identifiers starting with numbers
Date: Fri, 7 Jan 2005 14:37:39 GMT


Log Message:
-----------
fix quoting identifiers starting with numbers
Tags:
----
REL-1_2_0_PATCHES
Modified Files:
--------------
pgadmin3/src/utils:
misc.cpp (r1.62.2.1 -> r1.62.2.2)

Index: misc.cpp ===================================================================
RCS file: /projects/pgadmin3/src/utils/misc.cpp,v retrieving revision 1.62.2.1
retrieving revision 1.62.2.2
diff -Lsrc/utils/misc.cpp -Lsrc/utils/misc.cpp -u -w -r1.62.2.1 -r1.62.2.2
--- src/utils/misc.cpp +++ src/utils/misc.cpp @@no-spam -282,7 +282,7 @@no-spam while (pos < (int)value.length())
{
wxChar c=value.GetChar(pos);
- if (!(c >= '0' && c <= '9') && + if (!((pos > 0) && (c >= '0' && c <= '9')) && !(c >= 'a' && c <= 'z') && !(c == '_'))
{
[plaintext cvs-200517143739-diff.txt]

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@no-spam