The SQL language is case insensitive.
"SELECT Name ...", "SELECT name ...", and "SELECT NAME ..." will
return the value of the same column.
PDO allow to fix the case of the returned column name with the
setAttribute(int $attribute , mixed $value ) method (
http://www.php.net/manual/fr/pdo.setattribute.php )
so PDO_4D should preserve it if you call that:
$db->setAttribute(PDO::ATTR_CASE, PDO::CASE_NATURAL);
If it doesn't, it is a bug I invite you to submit (
http://pecl.php.net/bugs/report.php?package=PDO_4D )
Alexandre.