sqlparser/language.cpp
// SQL Server, Sybase variable or parameter starting with @
SQL Server, Sybase variable or parameter starting with .
SQL Server Sybase variable or parameter starting with .
bool SqlParser::ConvertTsqlVariable(Token *token)
{
	if(token == NULL || Target(SQL_SQL_SERVER, SQL_SYBASE) == true)
		return false;
	const char *cur = token->str;
	if(cur == NULL || *cur != '@')
		return false;
	char *ident = new char[token->len + 1];
	*ident = 'v';
	for(size_t i = 1; i < token->len; i++)
		ident[i] = cur[i];
	ident[token->len] = 0;
	token->t_str = ident;
	token->t_len = token->len;
	return true;
}
bool SqlParser :: ConvertTsqlVariable ( Token * token ) { if ( token == NULL || Target ( SQL_SQL_SERVER , SQL_SYBASE ) == true ) return false ; const char * cur = token -> str ; if ( cur == NULL || * cur != ' ' ) return false ; char * ident = new char [ token -> len + 1 ] ; * ident = ' ' ; for ( size_t i = 1 ; i < token -> len ; i ++ ) ident [ i ] = cur [ i ] ; ident [ token -> len ] = 0 ; token -> t_str = ident ; token -> t_len = token -> len ; return true ; }
SQL Server, Sybase variable or parameter starting with @
SQL Server Sybase variable or parameter starting with @
// Copy content except @