diff options
| author | Damien Regad <dregad@mantisbt.org> | 2015-12-13 23:46:54 +0000 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2015-12-15 20:38:40 +0100 |
| commit | a810a548d54c65eaf90a06a0fc385b0bd7098212 (patch) | |
| tree | 9d265621fbe4707fadf60154d693167db10b6921 | |
| parent | 064f3b728b722bf690125a75efd3add76d9a17f2 (diff) | |
| download | adodb-a810a548d54c65eaf90a06a0fc385b0bd7098212.tar.gz adodb-a810a548d54c65eaf90a06a0fc385b0bd7098212.tar.bz2 adodb-a810a548d54c65eaf90a06a0fc385b0bd7098212.zip | |
mysql: MoveNext() apply field names case conversion
Fixes #167
| -rw-r--r-- | docs/changelog.md | 4 | ||||
| -rw-r--r-- | drivers/adodb-mysql.inc.php | 1 | ||||
| -rw-r--r-- | drivers/adodb-mysqli.inc.php | 5 |
3 files changed, 8 insertions, 2 deletions
diff --git a/docs/changelog.md b/docs/changelog.md index 831b5d02..6f9c4a52 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -6,7 +6,9 @@ Older changelogs: [v2.x](changelog_v2.x.md). -## 5.20.1 - 06-Dec-2015 +## 5.20.2 - ??-Dec-2015 + +- mysql: MoveNext() now respects ADODB_ASSOC_CASE. #167 ## 5.20.1 - 06-Dec-2015 diff --git a/drivers/adodb-mysql.inc.php b/drivers/adodb-mysql.inc.php index 4e61b933..aad53714 100644 --- a/drivers/adodb-mysql.inc.php +++ b/drivers/adodb-mysql.inc.php @@ -797,6 +797,7 @@ class ADORecordSet_mysql extends ADORecordSet{ //return adodb_movenext($this); //if (defined('ADODB_EXTENSION')) return adodb_movenext($this); if (@$this->fields = mysql_fetch_array($this->_queryID,$this->fetchMode)) { + $this->_updatefields(); $this->_currentRow += 1; return true; } diff --git a/drivers/adodb-mysqli.inc.php b/drivers/adodb-mysqli.inc.php index f14e2575..21d61f5b 100644 --- a/drivers/adodb-mysqli.inc.php +++ b/drivers/adodb-mysqli.inc.php @@ -1033,7 +1033,10 @@ class ADORecordSet_mysqli extends ADORecordSet{ $this->_currentRow++; $this->fields = @mysqli_fetch_array($this->_queryID,$this->fetchMode); - if (is_array($this->fields)) return true; + if (is_array($this->fields)) { + $this->_updatefields(); + return true; + } $this->EOF = true; return false; } |
