|
@@ 221-225 (lines=5) @@
|
| 218 |
|
|
| 219 |
|
if ($iterateRow) { |
| 220 |
|
foreach ($row as $k => $v) { |
| 221 |
|
if (($this->portability & Connection::PORTABILITY_EMPTY_TO_NULL) && $v === '') { |
| 222 |
|
$row[$k] = null; |
| 223 |
|
} elseif (($this->portability & Connection::PORTABILITY_RTRIM) && is_string($v)) { |
| 224 |
|
$row[$k] = rtrim($v); |
| 225 |
|
} |
| 226 |
|
} |
| 227 |
|
} |
| 228 |
|
|
|
@@ 240-244 (lines=5) @@
|
| 237 |
|
$value = $this->stmt->fetchColumn($columnIndex); |
| 238 |
|
|
| 239 |
|
if ($this->portability & (Connection::PORTABILITY_EMPTY_TO_NULL|Connection::PORTABILITY_RTRIM)) { |
| 240 |
|
if (($this->portability & Connection::PORTABILITY_EMPTY_TO_NULL) && $value === '') { |
| 241 |
|
$value = null; |
| 242 |
|
} elseif (($this->portability & Connection::PORTABILITY_RTRIM) && is_string($value)) { |
| 243 |
|
$value = rtrim($value); |
| 244 |
|
} |
| 245 |
|
} |
| 246 |
|
|
| 247 |
|
return $value; |