sqlparser/language.cpp
// Boolean literal True/False in Sybase ADS
Boolean literal True/False in Sybase ADS
Boolean literal True / False in Sybase ADS
bool SqlParser::ParseBooleanLiteral(Token *token)
{
	if(!Source(SQL_SYBASE_ADS))
		return false;
	bool exists = false;
	if(TOKEN_CMP(token, "TRUE"))
	{
		if(Target(SQL_SQL_SERVER))
			TOKEN_CHANGE(token, "1");
		exists = true;
	}
	else
	if(TOKEN_CMP(token, "FALSE"))
	{
		if(Target(SQL_SQL_SERVER))
			TOKEN_CHANGE(token, "0");
		exists = true;
	}
	return exists;
}
bool SqlParser :: ParseBooleanLiteral ( Token * token ) { if ( ! Source ( SQL_SYBASE_ADS ) ) return false ; bool exists = false ; if ( TOKEN_CMP ( token , " " ) ) { if ( Target ( SQL_SQL_SERVER ) ) TOKEN_CHANGE ( token , " " ) ; exists = true ; } else if ( TOKEN_CMP ( token , " " ) ) { if ( Target ( SQL_SQL_SERVER ) ) TOKEN_CHANGE ( token , " " ) ; exists = true ; } return exists ; }
Boolean literal True/False in Sybase ADS
Boolean literal True / False in Sybase ADS