-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: TypeError in pg_ping() #9043
Comments
and both connections cannot be closed if before closing we run $db = db_connect();
d($db);
d($db->connect());
d($db->close());
// d($db->reconnect());
d($db->getPlatform());
d($db->getVersion());
dd(); |
I can reproduce the TypeError in the original issue. |
Dumb question: if you call |
I'm not sure if the way used to produce the error above is correct. I think both have the same behavior. thankyou for enlighten me. |
The behavior of
So if there is a ping method in the DB module, we should use it. But in MySQL, |
That helps! thanks for explaining. |
PHP Version
8.3
CodeIgniter4 Version
4.5.3
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
macOS
Which server did you use?
apache
Database
PostgreSQL 16.3
What happened?
pg_ping() expects the first parameter to be a PostgreSQL connection (or null), but receives the boolean value false.
See also codeigniter4/queue#45 (comment)
This is a blocker for other packages.
Steps to Reproduce
Expected Output
The output should show the db name and db driver version.
Anything else?
No response
The text was updated successfully, but these errors were encountered: