summaryrefslogtreecommitdiff
path: root/dbaccess/source/sdbtools
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/sdbtools')
-rw-r--r--dbaccess/source/sdbtools/connection/objectnames.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbaccess/source/sdbtools/connection/objectnames.cxx b/dbaccess/source/sdbtools/connection/objectnames.cxx
index 923dfdf698b3..10069c4be24c 100644
--- a/dbaccess/source/sdbtools/connection/objectnames.cxx
+++ b/dbaccess/source/sdbtools/connection/objectnames.cxx
@@ -436,10 +436,12 @@ namespace sdbtools
String sBaseName( _BaseName );
if ( sBaseName.Len() == 0 )
+ {
if ( _CommandType == CommandType::TABLE )
sBaseName = String( SdbtRes( STR_BASENAME_TABLE ) );
else
sBaseName = String( SdbtRes( STR_BASENAME_QUERY ) );
+ }
::rtl::OUString sName( sBaseName );
sal_Int32 i = 1;