projects
/
dbsrgits/SQL-Abstract.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
9a5b64c
)
count(*), count(a) and count(0) should not be equivalent
Arthur Axel "fREW" Schmidt [Fri, 3 Jul 2009 18:46:43 +0000 (18:46 +0000)]
t/10test.t
patch
|
blob
|
blame
|
history
diff --git
a/t/10test.t
b/t/10test.t
index
59b8454
..
7ecb1ca
100644
(file)
--- 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)',