diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-07-02 15:21:13 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2013-07-03 09:44:22 +0000 |
commit | 95e74a5033ba3ddc6906baba5d3b5ed0510b3a27 (patch) | |
tree | 263ff71ffb1adf6e2a8be7d6cac2763591e91fb4 /dbaccess | |
parent | 92b5d7f7c9ae3af23833df9fe7a503e844b913e4 (diff) |
i#112615 table names are allowed slashes
Change-Id: I1b69c4575d79ba1b6a6e9cd83abaf18bad54fd79
Reviewed-on: https://gerrit.libreoffice.org/4677
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Tested-by: Petr Mladek <pmladek@suse.cz>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/browser/unodatbr.cxx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index d7994baba16f..351388967ab8 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 ) |