sqlparser/sqlparser.cpp
// Leave the block with own local variables
Leave the block with own local variables
Leave the block with own local variables
void SqlParser::LeaveLocalVariablesBlock()
{
	ListwItem *boundary = NULL;
	for(ListwItem *i = _spl_variables.GetLast(); i != NULL; i = i->prev)
	{
		if(i->value == (void*)-3)
		{
			boundary = i;
			break;
		}
	}
	if(boundary == NULL)
		return;
	_spl_variables.DeleteSince(boundary);
}
void SqlParser :: LeaveLocalVariablesBlock ( ) { ListwItem * boundary = NULL ; for ( ListwItem * i = _spl_variables . GetLast ( ) ; i != NULL ; i = i -> prev ) { if ( i -> value == ( void * ) -3 ) { boundary = i ; break ; } } if ( boundary == NULL ) return ; _spl_variables . DeleteSince ( boundary ) ; }
Leave the block with own local variables
Leave the block with own local variables
// Find the last boundary // Local block boundary // No boundary found, only outer variable block set // Remove local block variables