From: Arthur Axel "fREW" Schmidt Date: Fri, 3 Jul 2009 18:46:43 +0000 (+0000) Subject: count(*), count(a) and count(0) should not be equivalent X-Git-Tag: v1.70~135^2~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=76f10e1c7e144c82dd6da7902a38b4792244e79a;p=dbsrgits%2FSQL-Abstract.git count(*), count(a) and count(0) should not be equivalent --- diff --git a/t/10test.t b/t/10test.t index 59b8454..7ecb1ca 100644 --- a/t/10test.t +++ b/t/10test.t @@ -562,6 +562,14 @@ my @sql_tests = ( { equal => 0, statements => [ + 'SELECT count(*) FROM foo', + 'SELECT count(a) FROM foo', + 'SELECT count(1) FROM foo', + ] + }, + { + equal => 0, + statements => [ 'SELECT * FROM foo WHERE a IN (1,2,3)', 'SELECT * FROM foo WHERE a IN (1,3,2)', 'SELECT * FROM foo WHERE a IN (2,1,3)',