We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This code used to report sqlState correctly in version 0.10.2 for PostgreSQL database. Now it is broken in 0.10.3
try { Listings.insert { it[Listings.id] = listing.id it[Listings.providerUserId] = listing.providerUserId ... } } catch (ex: ExposedSQLException) { throw when (ex.sqlState) { "23505" -> RequestedListingAlreadyExistsException(listingId = listing.id) else -> ex } }
in case when Listings.id violates a constraint (duplicate). Now ex.sqlState is always null (as well as ex.errorCode is 0).
The text was updated successfully, but these errors were encountered:
#331 sqlState is not working anymore for PostgreSQL
3c5d0d7
Now ExposedSQLException will delegate its sqlState and errorCode to an original exception if it was an instance of SQLException.
Sorry, something went wrong.
f045a59
No branches or pull requests
This code used to report sqlState correctly in version 0.10.2 for PostgreSQL database. Now it is broken in 0.10.3
in case when Listings.id violates a constraint (duplicate). Now ex.sqlState is always null (as well as ex.errorCode is 0).
The text was updated successfully, but these errors were encountered: