Skip to content
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

Wrong error mapping for table not exist #851

Open
minhnguyenvan95 opened this issue Nov 8, 2024 · 2 comments
Open

Wrong error mapping for table not exist #851

minhnguyenvan95 opened this issue Nov 8, 2024 · 2 comments

Comments

@minhnguyenvan95
Copy link

I didn’t create the table, when I tried to use java hikari to query the data, the error returned ‘prepared statement does not exist’ instead of table does not exist

@drdrsh
Copy link
Collaborator

drdrsh commented Nov 8, 2024

Can you share more as to how to reproduce the issue you are seeing. Also, what version of PgCat you are using

@minhnguyenvan95
Copy link
Author

Pgcat version v1.1.2. I used java spring boot with spring data jpa with JpaRepository. The table wasn’t create yet, when I trying to execute for e,g: customerRepository.findById, hikari error log with ‘Prepared statements ‘PGCAT_23’ does not exist’
When I change the db connection to direct database the error should be ‘table customer does not exist’
When I create the table and change back the connection to pgcat the error gone away.

So I think the problem could be error code mapping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants