From edecf1b70445c80f58d0204ce5f549eae81140ba Mon Sep 17 00:00:00 2001 From: Patrick O'brien Date: Mon, 1 Aug 2016 13:06:51 +1000 Subject: [PATCH] Add "count as" query fixture --- boil/_fixtures/02.sql | 1 + boil/query_test.go | 1 + 2 files changed, 2 insertions(+) create mode 100644 boil/_fixtures/02.sql 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 {