summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-07-02 15:21:13 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-07-02 15:24:59 +0200
commita733e8e91aecbcbde7cc2127a3c45d8dd3ebe4ee (patch)
tree7fb5c7330159bd1d0dbaaee3eb1add6791fec6ca /dbaccess
parentcb6e8c46d723de33073a5fb9ca53be12412e2a27 (diff)
i#112615 table names are allowed slashes
Change-Id: I1b69c4575d79ba1b6a6e9cd83abaf18bad54fd79
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx16
1 files changed, 15 insertions, 1 deletions
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index 0bee0cd4063c..fa33bcb7f03f 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -1244,7 +1244,21 @@ SvTreeListEntry* SbaTableQueryBrowser::getObjectEntry(const OUString& _rDataSour
sal_Int32 nIndex = 0;
do
{
- OUString sPath = sCommand.getToken( 0, '/', nIndex );
+ OUString sPath;
+ switch (_nCommandType)
+ {
+ case CommandType::TABLE:
+ sPath = sCommand;
+ nIndex = -1;
+ break;
+
+ default:
+ assert(false);
+ // in non-debug builds, fall through.
+ case CommandType::QUERY:
+ sPath = sCommand.getToken( 0, '/', nIndex );
+ break;
+ }
pObject = m_pTreeView->getListBox().GetEntryPosByName(sPath, pCommandType);
pCommandType = pObject;
if ( nIndex >= 0 )