Tag: cws_src680_warnings01
User: sb      
Date: 06/01/25 12:47:35

Modified:
 /dba/connectivity/source/commontools/
  CommonTools.cxx

Log:
 RESYNC: (1.20-1.21); FILE MERGED

File Changes:

Directory: /dba/connectivity/source/commontools/
================================================

File [changed]: CommonTools.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/commontools/CommonTools.cxx?r1=1.20.20.1&r2=1.20.20.2
Delta lines:  +5 -5
-------------------
--- CommonTools.cxx     22 Dec 2005 11:44:01 -0000      1.20.20.1
+++ CommonTools.cxx     25 Jan 2006 20:47:08 -0000      1.20.20.2
@@ -341,7 +341,7 @@
     // Ueberpruefung auf korrekte Namensgebung im SQL Sinne
     // Dieses ist wichtig fuer Tabellennamen beispielsweise
        const sal_Unicode* pStr = rName.getStr();
-       if (isdigit(*pStr))
+       if (*pStr > 127 || isdigit(*pStr))
                return sal_False;
 
        for (; *pStr; ++pStr )
@@ -372,7 +372,7 @@
        ::rtl::OUString aNewName(rName);
        const sal_Unicode* pStr = rName.getStr();
        sal_Int32 nLength = rName.getLength();
-       sal_Bool bValid(!isdigit(*pStr));
+       sal_Bool bValid(*pStr < 128 && !isdigit(*pStr));
        for (sal_Int32 i=0; bValid && i < nLength; ++pStr,++i )
                if(!isCharOk(*pStr,_rSpecials))
                {




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to