Just a quick question - when updating a row in a database, i usually do:
$query = "update foo set bar = ?, baz = ?, goon = ?";
$sth->execute($query, array('a', 'b', 'c');
where i know that the db abstraction layer will apply quoting to make the
values safe.
If i'm using zend_db_table_row to update a database row, eg
$row->name = $name;
$row->surname = $surname;
$row->save();
... will quoting also be applied to the row before saving, or is that the
responsibility of the row to implement ie subclassing and performing
validation on the properties before an update?
--
View this message in context: http://www.nabble.com/zend_db_table_row-and-quoting-tp19177390p19177390.html
Sent from the Zend DB mailing list archive at Nabble.com.
没有评论:
发表评论