sqlparser/select.cpp
// Oracle, DB2 WHERE CURRENT OF cursor
Oracle, DB2 WHERE CURRENT OF cursor
Oracle DB2 WHERE CURRENT OF cursor
bool SqlParser::ParseWhereCurrentOfCursor(int stmt_scope)
{
	Token *current = GetNextWordToken("CURRENT", L"CURRENT", 7);
	if(current == NULL)
		return false;
	Token *of = GetNextWordToken("OF", L"OF", 2);
	Token *cursor = NULL;
	if(of != NULL)
		cursor = GetNextIdentToken();
	if(cursor == NULL)
	{
		PushBack(current);
		return false;
	}
	if(stmt_scope == SQL_STMT_UPDATE || stmt_scope == SQL_STMT_DELETE)
		_spl_updatable_current_of_cursors.Add(cursor);
	return true;
}
bool SqlParser :: ParseWhereCurrentOfCursor ( int stmt_scope ) { Token * current = GetNextWordToken ( " " , L" " , 7 ) ; if ( current == NULL ) return false ; Token * of = GetNextWordToken ( " " , L" " , 2 ) ; Token * cursor = NULL ; if ( of != NULL ) cursor = GetNextIdentToken ( ) ; if ( cursor == NULL ) { PushBack ( current ) ; return false ; } if ( stmt_scope == SQL_STMT_UPDATE || stmt_scope == SQL_STMT_DELETE ) _spl_updatable_current_of_cursors . Add ( cursor ) ; return true ; }
Oracle, DB2 WHERE CURRENT OF cursor
Oracle DB2 WHERE CURRENT OF cursor
// Save updatable cursor