function CheckSyntax: integer;
Check syntax of input sql, this function is used in old version. Please use parse function instead.