Open razzbee opened 4 years ago
@sy-records I can confirm this is a bug, prepare is always returning true even if it fails. https://github.com/swoole/ext-postgresql/blob/v4.4.x/swoole_postgresql_coro.cc#L620
Thanks for your contribution, please wait for review. @codercms
@razzbee #19 is merged into v4.4.x
branch. Can you confirm that your issue is resolved?
I will provide a feedback after testing, Thanks
Hello, errors in a prepared statement doesn't get reported, example:
Here, non_existing_table doesnt exists, but $stmt returns true
and also :
$db->error is null