Add "count as" query fixture

This commit is contained in:
Patrick O'brien 2016-08-01 13:06:51 +10:00
parent b8c28c7cf8
commit edecf1b704
2 changed files with 2 additions and 0 deletions

1
boil/_fixtures/02.sql Normal file
View file

@ -0,0 +1 @@
SELECT "count(*) as ab, thing as bd","stuff" FROM "t";

View file

@ -28,6 +28,7 @@ func TestBuildQuery(t *testing.T) {
}{ }{
{&Query{from: "t"}, nil}, {&Query{from: "t"}, nil},
{&Query{from: "q", limit: 5, offset: 6}, nil}, {&Query{from: "q", limit: 5, offset: 6}, nil},
{&Query{from: "t", selectCols: []string{"count(*) as ab, thing as bd", "stuff"}}, nil},
} }
for i, test := range tests { for i, test := range tests {