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

Support for SQLException translation #617

Closed
timowest opened this Issue Jan 6, 2014 · 2 comments

Comments

Projects
None yet
2 participants
@timowest
Member

timowest commented Jan 6, 2014

For better Spring support it should be possible to customize the Exceptions thrown by Querydsl SQL to be compatible with Spring.

One way to achieve this is to use an SQLExceptionTranslator contract like this http://docs.spring.io/spring/docs/3.2.x/javadoc-api/org/springframework/jdbc/support/SQLExceptionTranslator.html#translate%28java.lang.String,%20java.lang.String,%20java.sql.SQLException%29

@luisfpg

This comment has been minimized.

Show comment
Hide comment
@luisfpg

luisfpg Feb 6, 2014

It would be nice to also have the bind parameters at this point.
In our specific problem, we'd like to log queries only on errors, and log it with parameters, so we can try to isolate that particular problem.
When working with dynamic queries with several ifs for conditions, this would help tracking down bugs.

luisfpg commented Feb 6, 2014

It would be nice to also have the bind parameters at this point.
In our specific problem, we'd like to log queries only on errors, and log it with parameters, so we can try to isolate that particular problem.
When working with dynamic queries with several ifs for conditions, this would help tracking down bugs.

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Feb 8, 2014

Member

Released in 3.3.1

Member

timowest commented Feb 8, 2014

Released in 3.3.1

@timowest timowest closed this Feb 8, 2014

@timowest timowest added this to the 3.3.1 milestone Apr 13, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment