Add "count as" query fixture
This commit is contained in:
parent
b8c28c7cf8
commit
edecf1b704
2 changed files with 2 additions and 0 deletions
1
boil/_fixtures/02.sql
Normal file
1
boil/_fixtures/02.sql
Normal file
|
@ -0,0 +1 @@
|
|||
SELECT "count(*) as ab, thing as bd","stuff" FROM "t";
|
|
@ -28,6 +28,7 @@ func TestBuildQuery(t *testing.T) {
|
|||
}{
|
||||
{&Query{from: "t"}, 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 {
|
||||
|
|
Loading…
Reference in a new issue