1
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 example of Select:
SELECT "ID", "NOME" FROM "USUARIO"
However, this select works normally on Oracle. Already in Postgresql, it returns me an error where there are no such columns.
To work normally I set _protect_identifiers and it worked, so select was like this: SELECT ID, NOME FROM USUARIO
The problem now is when it returns in the array, in the oracle it returns the array with the uppercase Keys and the pgsql returns lowercase. I can’t reach the middle. What can I do ?
What would be the "middle ground"?
– JuniorNunes
I do a select for Oracle and Postgree on Codeigniter. When scanning select, it returns me the keys of the different array, in the oracle it returns me uppercase and in the lowercase postgree. I can’t find a way to access the values of the array independent of the keys that come. I wonder if there’s any way I can do this.
– Huhifeku