sqlparser/sqlserver.cpp
// Any Transact-SQL statement can be followed by ; and GO, any combination of them or nothing at all
Any Transact-SQL statement can be followed by ; and GO, any combination of them or nothing at all
Any Transact - SQL statement can be followed by ; and GO any combination of them or nothing at all
void SqlParser::SqlServerDelimiter()
{
	if(Source(SQL_SQL_SERVER, SQL_SYBASE) == false || Target(SQL_SQL_SERVER, SQL_SYBASE) == true)
		return;
	Token *last = GetLastToken();
	Token *semi = GetNextCharToken(';', L';');
	Token *go = GetNextWordToken("GO", L"GO", 2);
	if(semi == NULL)
		AppendNoFormat(last, ";", L";", 1);
	Token::Remove(go);
}
void SqlParser :: SqlServerDelimiter ( ) { if ( Source ( SQL_SQL_SERVER , SQL_SYBASE ) == false || Target ( SQL_SQL_SERVER , SQL_SYBASE ) == true ) return ; Token * last = GetLastToken ( ) ; Token * semi = GetNextCharToken ( ' ' , L' ' ) ; Token * go = GetNextWordToken ( " " , L" " , 2 ) ; if ( semi == NULL ) AppendNoFormat ( last , " " , L" " , 1 ) ; Token :: Remove ( go ) ; }
Any Transact-SQL statement can be followed by ; and GO, any combination of them or nothing at all
Any Transact - SQL statement can be followed by ; and GO any combination of them or nothing at all
// Optional ; can go before GO // Optional GO to terminate the batch // No ; delimiter