Esempio n. 1
0
        private void ResolveNames(QuerySpecification qs)
        {
            var ss = qs.FindAscendant <SelectStatement>();

            var nr = new SqlNameResolver();

            nr.SchemaManager              = CreateSchemaManager();
            nr.DefaultTableDatasetName    = Jhu.Graywulf.Test.Constants.TestDatasetName;
            nr.DefaultFunctionDatasetName = Jhu.Graywulf.Test.Constants.TestDatasetName;
            nr.Execute(ss);
        }
        private SelectStatement CreateSelect(string query)
        {
            var p      = new SqlParser.SqlParser();
            var select = (SelectStatement)p.Execute(new SelectStatement(), query);

            SqlNameResolver nr = new SqlNameResolver();

            nr.DefaultTableDatasetName    = Jhu.Graywulf.Test.Constants.TestDatasetName;
            nr.DefaultFunctionDatasetName = Jhu.Graywulf.Test.Constants.CodeDatasetName;
            nr.SchemaManager = CreateSchemaManager();
            nr.Execute(select);

            return(select);
        }
Esempio n. 3
0
        private void ResolveNames(QuerySpecification qs)
        {
            var ss = qs.FindAscendant<SelectStatement>();

            var nr = new SqlNameResolver();
            nr.SchemaManager = CreateSchemaManager();
            nr.DefaultTableDatasetName = Jhu.Graywulf.Test.Constants.TestDatasetName;
            nr.DefaultFunctionDatasetName = Jhu.Graywulf.Test.Constants.TestDatasetName;
            nr.Execute(ss);
        }
Esempio n. 4
0
        private void ResolveNames(QuerySpecification qs)
        {
            var ss = qs.FindAscendant<SelectStatement>();

            var nr = new SqlNameResolver();
            nr.SchemaManager = CreateSchemaManager();
            nr.DefaultTableDatasetName = "Test";
            //nr.DefaultTableSchemaName = "dbo"; TODO: delete
            nr.DefaultFunctionDatasetName = "Test";
            //nr.DefaultFunctionSchemaName = "dbo"; TODO: delete
            nr.Execute(ss);
        }