Call to a member function getResultArray() on false |
Hi @kenjis,
I used the MySQL and PostgreSQL database drivers to test the exact same query. When running with MySQL there is no error issue, but when using PostgreSQL I get an error like the following: I'm currently using Codeigniter 4.5.1, on the previous version 4.4.8 that I used before there was no such error like that. Thanks for advance.
@xxxx[{::::::::::::::::::::::::::::::::>
Check the actual SQL query and the result.
i fixed the problem by separating the methods between get() and getResultArray();
example: PHP Code: $users = $db->table('users')->get(); but i don't know why above case only happens when using PostgreSQL?
@xxxx[{::::::::::::::::::::::::::::::::>
Check the actual SQL query.
See https://codeigniter.com/user_guide/testi...ql-queries
Ok, I will check it. If I apply the event in production mode does it affect the application performance significantly?
@xxxx[{::::::::::::::::::::::::::::::::>
|
Welcome Guest, Not a member yet? Register Sign In |