Ejemplo n.º 1
0
        public override LexToken nextToken()
        {
            LexToken lexToken = base.nextToken();

            if (lexToken != null && lexToken.isSpecial() && lexToken.Equals("?"))
            {
                char c = base.current();
                if (c != '\0' && c != ';' && c != ',' && c != ')' && !char.IsWhiteSpace(c))
                {
                    base.throwException(lexToken, "SQL Parse Error: \"?\" can not be followed by \"" + c + "\"");
                }
            }
            return(lexToken);
        }
Ejemplo n.º 2
0
 public static bool IsSQLParameterToken(LexToken token)
 {
     return(token != null && token.getToken() != null && token.getToken().Length > 0 && (token.isName() || token.isSpecial()) && "#@:?".IndexOf(token.getToken().ToCharArray()[0]) >= 0);
 }