Update adapter examples documentation
Opened this issue · 1 comments
GeeH commented
https://github.com/zendframework/zend-db/blob/master/doc/book/adapter.md#examples
Needs updating, the example:
$sql = 'UPDATE ' . $qi('artist')
. ' SET ' . $qi('name') . ' = ' . $fp('name')
. ' WHERE ' . $qi('id') . ' = ' . $fp('id');
$statement = $adapter->query($sql);
$parameters = [
'name' => 'Updated Artist',
'id' => 1,
];
$statement->execute($parameters);
Is wrong because the $adapter->query()
method returns a Result
object not a statement - please check all examples and fix accordingly.
Thanks in advance!
michalbundyra commented
This repository has been closed and moved to laminas/laminas-db; a new issue has been opened at laminas/laminas-db#69.