https://bugs.documentfoundation.org/show_bug.cgi?id=145186

--- Comment #9 from Julien Nabet <[email protected]> ---
The difference is in this part:
   2319     switch (m_nCommandType)
   2320     {
   2321         case CommandType::TABLE:
   2322         {
   2323             impl_resetTables_nothrow();
   2324             if ( bDoEscapeProcessing )
   2325             {
   2326                 Reference< XNameAccess > xTables(
impl_getTables_throw() );
   2327                 if ( xTables->hasByName(m_aCommand) )
   2328                 {
   2329                 }
   2330                 else
   2331                 {
   2332                     OUString sMessage( DBA_RES(
RID_STR_TABLE_DOES_NOT_EXIST ) );
   2333                     throwGenericSQLException(sMessage.replaceAll(
"$table$", m_aCommand ),*this);
   2334                 }
   2335             }
   2336             else
   2337             {
   2338                 sCommand = "SELECT * FROM ";
   2339                 OUString sCatalog, sSchema, sTable;
   2340                 ::dbtools::qualifiedNameComponents(
m_xActiveConnection->getMetaData(), m_aCommand, sCatalog, sSchema, sTable,
::dbtools::EComposeRule::InDataManipulation );
   2341                 sCommand += ::dbtools::composeTableNameForSelect(
m_xActiveConnection, sCatalog, sSchema, sTable );
   2342             }
   2343         }

With SQL Analyze at no, LO goes into "else" from line 2336
with SQL Analyze at yes, LO goes into "if" from line 2324 and since "starter"
isn't found, it throws at line 2333

(see
https://opengrok.libreoffice.org/xref/core/dbaccess/source/core/api/RowSet.cxx?r=c7f8a54e#2324)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to