summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class7
1 files changed, 3 insertions, 4 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 4064465..2c16b90 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -762,8 +762,6 @@ function iterate()
$this->_result->close();
}
- $this->_read_post_process();
-
if (is_array($this->_data))
{
$originalfields = array_keys($this->_data);
@@ -776,6 +774,7 @@ function iterate()
$this->$field = $value;
}
+ $this->_read_post_process();
}
else
$this->_nofetch = false;
@@ -798,8 +797,8 @@ function insert($tags = array(), $command = "INSERT")
$this->_connect();
/* Pre-processing, $tags is passed by reference and may be modified here */
- $this->_write_pre_process($tags, $command);
$tags = static::_write_preprocess($tags);
+ $this->_write_pre_process($tags, $command);
if ($this->_p['randomid'] && !isset($tags[$this->_p['keyfield']]))
$tags[$this->_p['keyfield']] = bin2hex(random_bytes(16));
@@ -857,8 +856,8 @@ function update($tags = array(), $where = null)
$result = 0; # in case we optimize away the query
/* Pre-processing, $tags is passed by reference and may be modified here */
- $this->_write_pre_process($tags, 'UPDATE');
$tags = static::_write_preprocess($tags);
+ $this->_write_pre_process($tags, 'UPDATE');
if ($set = $this->_set($tags, isset($where)))
{