Beispiel #1
0
        internal static SqlTypeResolveInfo ParseType(string s)
        {
            var plSqlParser = MakeParser(s, message => { });

            //var plSqlParser = MakeParser(s, null);
            var parseResult = plSqlParser.datatype();

            return(SqlTypeParser.GetResolveInfo(parseResult));
        }
Beispiel #2
0
        public SqlTypeResolveInfo ParseType(string s)
        {
            SetInput(s);

            //var plSqlParser = MakeParser(s, null);
            var parseResult = plSqlParser.datatype();

            return(SqlTypeParser.GetResolveInfo(parseResult));
        }
Beispiel #3
0
        public override SqlExpression VisitCastFunction(PlSqlParser.CastFunctionContext context)
        {
            if (context.MULTISET() != null)
            {
                throw new NotImplementedException();
            }

            var destType = SqlTypeParser.Parse(context.datatype());
            var value    = Visit(context.concatenationWrapper());

            return(SqlExpression.Cast(value, destType));
        }