1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 13:47:33 +02:00

fetchSingle returns FALSE

This commit is contained in:
David Grudl
2018-05-17 13:27:45 +02:00
parent 70b1e08d83
commit 7a775aad4f
4 changed files with 7 additions and 4 deletions

View File

@@ -18,6 +18,9 @@ $conn->loadFile(__DIR__ . "/data/$config[system].sql");
// fetch a single value
$res = $conn->query('SELECT [title] FROM [products] ORDER BY [product_id]');
Assert::same('Chair', $res->fetchSingle());
Assert::same('Table', $res->fetchSingle());
Assert::same('Computer', $res->fetchSingle());
Assert::false($res->fetchSingle());
// fetch complete result set