sqlparser/sqlserver.cpp
// SQL Server requires an alias for subquery
SQL Server requires an alias for subquery
SQL Server requires an alias for subquery
void SqlParser::SqlServerAppendSubqueryAlias(Token *append, int *appended_subquery_aliases)
{
	if(append == NULL)
		return;
	int alias_num = 0;
	if(appended_subquery_aliases != NULL)
		alias_num = *appended_subquery_aliases;
	TokenStr alias(" s", L" s", 2);
	if(alias_num != 0)
		alias.Append(alias_num);
	AppendNoFormat(append, &alias);
	alias_num++;
	if(appended_subquery_aliases != NULL)
		*appended_subquery_aliases = alias_num;
}
void SqlParser :: SqlServerAppendSubqueryAlias ( Token * append , int * appended_subquery_aliases ) { if ( append == NULL ) return ; int alias_num = 0 ; if ( appended_subquery_aliases != NULL ) alias_num = * appended_subquery_aliases ; TokenStr alias ( " " , L" " , 2 ) ; if ( alias_num != 0 ) alias . Append ( alias_num ) ; AppendNoFormat ( append , & alias ) ; alias_num ++ ; if ( appended_subquery_aliases != NULL ) * appended_subquery_aliases = alias_num ; }
SQL Server requires an alias for subquery
SQL Server requires an alias for subquery
// Define the current counter within SELECT