t.Fatalf("failed to query master table: %s",err.Error())
}
ifexp,got:=`[{"columns":["type","name","tbl_name","rootpage","sql"],"types":["text","text","text","integer","text"],"values":[["table","foo","foo",2,"CREATE TABLE foo (id INTEGER NOT NULL PRIMARY KEY, name TEXT)"]]}]`,asJSON(r);exp!=got{
ifexp,got:=`[{"columns":["type","name","tbl_name","rootpage","sql"],"types":["text","text","text","int","text"],"values":[["table","foo","foo",2,"CREATE TABLE foo (id INTEGER NOT NULL PRIMARY KEY, name TEXT)"]]}]`,asJSON(r);exp!=got{
t.Fatalf("unexpected results for query, expected %s, got %s",exp,got)