mirror of
https://github.com/dg/dibi.git
synced 2025-07-30 19:00:13 +02:00
* seek() or rowCount() in unbuffered mode throws exceptions
* out of range seek() throws exception * deprecated DibiDriver::errorInfo * fixed seek(0) on first iteration * added DibiDatabaseException::catchError() & restore() for converting errors to exceptions
This commit is contained in:
@@ -25,8 +25,6 @@ product_id | title
|
||||
|
||||
// fetch a single value
|
||||
$res = dibi::query('SELECT [title] FROM [products]');
|
||||
if (!$res) die('SQL error');
|
||||
|
||||
$value = $res->fetchSingle();
|
||||
print_r($value); // Chair
|
||||
echo '<hr>';
|
||||
|
Reference in New Issue
Block a user