MCPcopy Create free account
hub / github.com/apecloud/myduckserver / TestQueryPlanTODOs

Function TestQueryPlanTODOs

main_test.go:555–567  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

553 SetUpScript: []string{
554 "create table auctions (ai int primary key, data varchar(100));",
555 "insert into auctions values (1, 'forty-two');",
556 },
557 Assertions: []queries.ScriptTestAssertion{
558 {
559 Query: `select "data" from auctions order by "ai" desc;`,
560 Expected: []sql.Row{{"data"}},
561 },
562 {
563 Query: "SET @@sql_mode='ANSI_QUOTES';",
564 Expected: []sql.Row{{}},
565 },
566 {
567 Query: `select "data" from auctions order by "ai" desc;`,
568 Expected: []sql.Row{{"forty-two"}},
569 },
570 {

Callers

nothing calls this directly

Calls 4

NewSkippingDuckHarnessFunction · 0.85
SetupMethod · 0.80
NewEngineMethod · 0.80
RunMethod · 0.45

Tested by

no test coverage detected