diff options
author | Jamie Matthews <[email protected]> | 2010-10-07 01:07:27 +0100 |
---|---|---|
committer | Jamie Matthews <[email protected]> | 2010-10-07 01:07:27 +0100 |
commit | 6c9356097dd42cdbc85481a40b7ecd2ce4d3f146 (patch) | |
tree | 87e3adadcb77ca622e27815120e9a3d2dcee608d /idiorm.php | |
parent | b9651bb00250452aa10a6b695cda627695a7bf05 (diff) |
_build_update method now uses new _create_placeholders method
Diffstat (limited to 'idiorm.php')
-rw-r--r-- | idiorm.php | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -699,13 +699,8 @@ $query[] = "(" . join(", ", $field_list) . ")"; $query[] = "VALUES"; - $placeholders = array(); - $dirty_field_count = count($this->_dirty_fields); - for ($i = 0; $i < $dirty_field_count; $i++) { - $placeholders[] = "?"; - } - - $query[] = "(" . join(", ", $placeholders) . ")"; + $placeholders = $this->_create_placeholders(count($this->_dirty_fields)); + $query[] = "({$placeholders})"; return join(" ", $query); } |