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); }
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 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); }