Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 749573a7c5ffb283b9ae78280e5c4f5303612dd4 1 parent a8c82c6
dk authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 t/DbSimple/Generic/040_select_col.phpt
View
6 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 (
+)
Please sign in to comment.
Something went wrong with that request. Please try again.