mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 03:09:21 +02:00
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:
parent
cb4830a576
commit
eb68f20101
@ -1059,7 +1059,8 @@ class LogStreamDB 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, CASE_LOWER);
|
||||
$iBegin++;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user