Modifications to add support for more SQL statements.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@634 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -2397,7 +2397,7 @@ RCODE SQLQuery::optimizeTable(
|
||||
SQL_NODE * pOperand;
|
||||
SQL_PRED * pPred;
|
||||
void * pvMark = m_pool.poolMark();
|
||||
SQLTableCursor * pSQLTableCursor = NULL;
|
||||
SQLTableCursor * pSQLTableCursor = NULL;
|
||||
|
||||
// This routine should not be called if the table has already been
|
||||
// marked to do a table scan.
|
||||
@@ -2663,16 +2663,13 @@ RCODE SQLQuery::optimize( void)
|
||||
|
||||
// Make sure we have a completed expression
|
||||
|
||||
if (m_pCurrParseState)
|
||||
if (!criteriaIsComplete())
|
||||
{
|
||||
rc = RC_SET( NE_SFLM_Q_INCOMPLETE_QUERY_EXPR);
|
||||
goto Exit;
|
||||
}
|
||||
else if (m_pCurrParseState)
|
||||
{
|
||||
if (m_pCurrParseState->pPrev ||
|
||||
m_pCurrParseState->uiNestLevel ||
|
||||
(m_pCurrParseState->pLastNode &&
|
||||
m_pCurrParseState->pLastNode->eNodeType == FLM_OPERATOR_NODE))
|
||||
{
|
||||
rc = RC_SET( NE_SFLM_Q_INCOMPLETE_QUERY_EXPR);
|
||||
goto Exit;
|
||||
}
|
||||
m_pQuery = m_pCurrParseState->pRootNode;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user