summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-12-21 12:14:19 +0000
committerOliver Bolte <obo@openoffice.org>2005-12-21 12:14:19 +0000
commitba38266e59c30b5e1142309ce8dd5ad21fec7bad (patch)
tree6dc1c39babbfef8b1102a5eacfe6b23cf72758be /connectivity/source/commontools
parent46237e0ee721b7eff75b05031cc1f48f3a6dc53a (diff)
INTEGRATION: CWS dba202a (1.20.28); FILE MERGED
2005/11/25 08:30:18 oj 1.20.28.1: #126933# check if char if > 127
Diffstat (limited to 'connectivity/source/commontools')
-rw-r--r--connectivity/source/commontools/CommonTools.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/commontools/CommonTools.cxx b/connectivity/source/commontools/CommonTools.cxx
index 8804260dcb1d..8f35f85740ae 100644
--- a/connectivity/source/commontools/CommonTools.cxx
+++ b/connectivity/source/commontools/CommonTools.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: CommonTools.cxx,v $
*
- * $Revision: 1.20 $
+ * $Revision: 1.21 $
*
- * last change: $Author: hr $ $Date: 2005-09-23 11:35:55 $
+ * last change: $Author: obo $ $Date: 2005-12-21 13:14:19 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -336,7 +336,7 @@ sal_Bool isValidSQLName(const ::rtl::OUString& rName,const ::rtl::OUString& _rSp
// Dieses ist wichtig fuer Tabellennamen beispielsweise
::rtl::OString aName(rName,rName.getLength(),RTL_TEXTENCODING_ASCII_US);
const char* pStr = aName.getStr();
- if (isdigit(*pStr))
+ if (*pStr > 127 || isdigit(*pStr))
return sal_False;
for (; *pStr; ++pStr )
@@ -374,7 +374,7 @@ sal_Bool isCharOk(char c,const ::rtl::OUString& _rSpecials)
::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))
{