Fix issue with fuzzbuzz config

This commit is contained in:
Vikram Rangnekar
2019-04-20 10:45:12 -04:00
parent b666876064
commit c03f7d6576
4 changed files with 17 additions and 12 deletions

View File

@ -45,9 +45,15 @@ func compareOp(op1, op2 Operation) error {
return nil
}
func TestParse(t *testing.T) {
}
func BenchmarkParse(b *testing.B) {
func TestCompile(t *testing.T) {
qcompile, _ := NewCompiler(Config{})
_, err := qcompile.CompileQuery(`query {
product(id: 15) {
id
name
}
}`)
if err != nil {
t.Fatal(err)
}
}

View File

@ -337,7 +337,7 @@ func (com *Compiler) compileQuery(op *Operation) (*Query, error) {
}
fil, ok := com.fm[selRoot.Table]
if !ok {
if !ok || fil == nil {
fil = com.fl
}