diff options
| author | Damien Regad <dregad@mantisbt.org> | 2015-05-14 04:10:04 +0200 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2015-06-25 01:34:04 +0200 |
| commit | f5ecb13a7024e49e0ea3723b8559881002eeb72b (patch) | |
| tree | 8eb33e4978512e3fb1fa593c6c2911a4a5a0734a /drivers/adodb-postgres7.inc.php | |
| parent | 719348d3ba11ffbfa79720ae5a5e3760c4a3644d (diff) | |
| download | adodb-f5ecb13a7024e49e0ea3723b8559881002eeb72b.tar.gz adodb-f5ecb13a7024e49e0ea3723b8559881002eeb72b.tar.bz2 adodb-f5ecb13a7024e49e0ea3723b8559881002eeb72b.zip | |
Move _updatefields() method to ADORecordSet
Currently, this method only exists in postgres7, oci8 and derived
drivers. Moving it to the base class will enable reuse by other drivers
that need the functionality.
Diffstat (limited to 'drivers/adodb-postgres7.inc.php')
| -rw-r--r-- | drivers/adodb-postgres7.inc.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/adodb-postgres7.inc.php b/drivers/adodb-postgres7.inc.php index 2ff70157..b848032c 100644 --- a/drivers/adodb-postgres7.inc.php +++ b/drivers/adodb-postgres7.inc.php @@ -358,29 +358,6 @@ class ADORecordSet_assoc_postgres7 extends ADORecordSet_postgres64{ return (is_array($this->fields)); } - /** - * Convert case of field names associative array, if needed - * @return void - */ - function _updatefields() - { - $fn_change_case = $this->AssocCaseConvertFunction(); - if(!$fn_change_case) { - // No conversion needed - return; - } - - $arr = array(); - - foreach($this->fields as $k => $v) { - if (!is_integer($k)) { - $k = $fn_change_case($k); - } - $arr[$k] = $v; - } - $this->fields = $arr; - } - function MoveNext() { if (!$this->EOF) { |
