mirror of
https://github.com/dg/dibi.git
synced 2025-08-11 00:24:19 +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>';
|
||||
|
@@ -12,8 +12,6 @@ dibi::connect(array(
|
||||
|
||||
|
||||
$res = dibi::query('SELECT * FROM [customers]');
|
||||
if (!$res) die('SQL error');
|
||||
|
||||
|
||||
// auto-convert this field to integer
|
||||
$res->setType('customer_id', Dibi::FIELD_INTEGER);
|
||||
|
Reference in New Issue
Block a user