-
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
pg_escape_literal() expects parameter 1 to be resource, boolean given #709
Comments
If it's a bool, then the connection failed. |
Yes, but the database config is correct, because if I do
then it succeeds. |
I'll look in the morning. |
Oops. Looks like I fixed this on MySQL but not on Postgres. Basically, just need to check within the escape method if the connection is valid and initialize the connection if it's not. |
… as null ( is_null ), also fix codeigniter4#709
… as null ( is_null ), also fix codeigniter4#709
I've created PR #713 for it. |
pg_escape_literal() expects parameter 1 to be resource, boolean given
My code:
The text was updated successfully, but these errors were encountered: