Permalink
Browse files

bugfix: selectCol() must return array() on empty result, not "false"

git-svn-id: svn://dklab.ru/lib/DbSimple/trunk@214 78bb956b-1e24-0410-b8d0-c528fdc9eae3
  • Loading branch information...
1 parent a8c82c6 commit 749573a7c5ffb283b9ae78280e5c4f5303612dd4 dk committed Jul 2, 2007
Showing with 5 additions and 1 deletion.
  1. +5 −1 t/DbSimple/Generic/040_select_col.phpt
@@ -14,6 +14,7 @@ function main(&$DB)
$DB->query("INSERT INTO test(id, str) VALUES( 4, 'd')");
printr($DB->selectCol("SELECT str FROM test"));
printr($DB->selectCol("SELECT str, id FROM test"));
+ printr($DB->selectCol("SELECT str, id FROM test WHERE 1=0"));
}
?>
@@ -37,4 +38,7 @@ array (
1 => 'b',
2 => 'c',
3 => 'd',
-)
+)
+Query: 'SELECT str, id FROM test WHERE 1=0'
+array (
+)

0 comments on commit 749573a

Please sign in to comment.