}
}
-
+
$err = $this->_query($sql);
if (is_a($err,'PEAR_Error')) {
return false;
$original_query = $this->_query;
$items = $this->table();
-
+
// only apply update against sequence key if it is set?????
$seq = $this->sequenceKey();
|| !is_string($options['disable_null_strings'])
|| strtolower($options['disable_null_strings']) !== 'full' ;
-
+ //print_r($items);exit;
foreach($items as $k => $v) {
// I think this is ignoring empty vlalues
// - V2 may store additional data about float/int
$settings .= "$kSql = " . intval($this->$k) . ' ';
}
-
+
if (!empty($_DB_DATAOBJECT['CONFIG']['debug'])) {
$this->debug("got keys as ".serialize($keys),3);
}
-
- // echo " $settings, $this->condition ";
+
+ // echo " $settings, $this->condition ";
if ($settings && isset($this->_query) && $this->_query['condition']) {
$table = ($quoteIdentifiers ? $DB->quoteIdentifier($this->tableName()) : $this->tableName());
-
- $r = $this->_query("UPDATE {$table} SET {$settings} {$this->_query['condition']} ");
+ $r = $this->_query("UPDATE {$table} SET {$settings} {$this->_query['condition']} ");
+
// restore original query conditions.
$this->_query = $original_query;
$this->_query= $x->_query;
}
-
+
foreach($keys as $k => $v) {
// index keys is an indexed array
/* these filter checks are a bit suspicious..
? ( $DB->quoteIdentifier($this->tableName()) . '.' . $DB->quoteIdentifier($k) )
: "{$this->tableName()}.{$k}";
-
+
if (is_object($this->$k) && is_a($this->$k,'DB_DataObject_Cast')) {
$dbtype = $DB->dsn["phptype"];