yajra / pdo-via-oci8

PHP PDO_OCI functions via OCI8 extension
Other
88 stars 61 forks source link

getColumnMeta returns uppercase name even if PDO::CASE_LOWER is set #79

Open mehr-it opened 4 years ago

mehr-it commented 4 years ago

The Statement::getColumnMeta() method does not respect the PDO::ATTR_CASE setting and always returns uppercase names for columns.

I think the field name should be converted to lower case:

if ($this->getAttribute(PDO::ATTR_CASE) == PDO::CASE_LOWER)
  $meta['name']  = strtolower($meta['name'] );