Fixed a case sensitive issue in db and pdo logstream

This issue occured when the database driver returned mixed cased
array keys. The workaround is to convert all array keys into lowercase automatically.
This commit is contained in:
Andre Lorbach 2009-03-20 16:24:12 +01:00
parent cb4830a576
commit eb68f20101
2 changed files with 5 additions and 3 deletions

View File

@ -1058,8 +1058,9 @@ class LogStreamDB extends LogStream {
// Check if result was successfull!
if ( $myRow === FALSE || !$myRow )
break;
$this->bufferedRecords[$iBegin] = $myRow;
// Keys will be converted into lowercase!
$this->bufferedRecords[$iBegin] = array_change_key_case($myRow, CASE_LOWER);
$iBegin++;
}

View File

@ -1057,7 +1057,8 @@ class LogStreamPDO extends LogStream {
if ( $myRow === FALSE || !$myRow )
break;
$this->bufferedRecords[$iBegin] = $myRow;
// Keys will be converted into lowercase!
$this->bufferedRecords[$iBegin] = array_change_key_case($myRow);
$iBegin++;
// Increment counter