summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2002-07-09 11:36:21 +0000
committerOcke Janssen <oj@openoffice.org>2002-07-09 11:36:21 +0000
commit9b1221a3c2a7ecb032b52add2a3d6483d77242f3 (patch)
treec0fa72570292133469534c81ac974e2a421b2240 /dbaccess/source/ui
parent8a2cd73409189ccd481fa173a60f2543668092c1 (diff)
#98389# check if datasource allows to check names
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r--dbaccess/source/ui/misc/WCopyTable.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx b/dbaccess/source/ui/misc/WCopyTable.cxx
index d890f0034bc2..0d459141789c 100644
--- a/dbaccess/source/ui/misc/WCopyTable.cxx
+++ b/dbaccess/source/ui/misc/WCopyTable.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: WCopyTable.cxx,v $
*
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
- * last change: $Author: oj $ $Date: 2002-05-23 12:03:56 $
+ * last change: $Author: oj $ $Date: 2002-07-09 12:36:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -939,7 +939,9 @@ OCopyTableWizard::Wizard_Create_Style OCopyTableWizard::getCreateStyle() const
sal_Int32 _nMaxNameLen)
{
- ::rtl::OUString sAlias(::dbtools::convertName2SQLName(_sColumnName,_sExtraChars));
+ ::rtl::OUString sAlias = _sColumnName;
+ if ( isSQL92CheckEnabled(m_xConnection) )
+ sAlias = ::dbtools::convertName2SQLName(_sColumnName,_sExtraChars);
if((_nMaxNameLen && sAlias.getLength() > _nMaxNameLen) || _rCmpFunctor(sAlias))
{
sal_Int32 nDiff = 1;