diff --git a/boil/_fixtures/02.sql b/boil/_fixtures/02.sql new file mode 100644 index 0000000..604e276 --- /dev/null +++ b/boil/_fixtures/02.sql @@ -0,0 +1 @@ +SELECT "count(*) as ab, thing as bd","stuff" FROM "t"; \ No newline at end of file diff --git a/boil/query_test.go b/boil/query_test.go index fd2b22c..40f58e6 100644 --- a/boil/query_test.go +++ b/boil/query_test.go @@ -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 {