I am developing a WEB system using Codeigniter with support for Oracle database and PostgreSQL.
In my queries, I use Codeigniter's own Query Builder.
Simple Select example:
SELECT "ID", "NOME" FROM "USUARIO"
However, this select works normally in Oracle. In PostgreSQL, it returns an error where no such columns exist.
In order to work, I usually configured _protect_identifiers and it worked, so the select looks like this: SELECT ID, NOME FROM USUARIO
The problem now is when it returns in the array, in oracle it returns the array with the uppercase keys and pgsql returns lowercase. I can not get to the middle ground. What can I do?