Closed samsonasik closed 4 years ago
Testing on heroku with config driver name postgre will be error
tried with configure in the .env, it requires lower case, not in front of pc, probably saver to strtolower()
first?
somehow, in my side, it read DBDriver property at https://github.com/codeigniter4/CodeIgniter4/blob/3b634e0facd25ed2e1996a8801e66ec201839c22/system/Database/Postgre/Connection.php#L56
But, refer from docs link Database Configuaration explanation of values DBDriver for posgre is using capital letters Pak @samsonasik.
oh, ok, that's probably my config then. I will check when I back to pc.
Looking at the BaseConnection class, there is condition check lower "postgre":
Probably requires to update to "Postgre" in all places in CodeIgniter 4 side. I will create a PR to CodeIgniter repo about it.
I am closing it.
Here is the PR https://github.com/codeigniter4/CodeIgniter4/pull/3457
for postgresql, driver name in CI4 is named "postgre" instead of "Postgre"