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

Map "Foreign key constraint violation occurred" Sybase error code to DataIntegrityViolationException [SPR-11097] #15723

Closed
spring-projects-issues opened this issue Nov 18, 2013 · 1 comment
Assignees
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: backported An issue that has been backported to maintenance branches type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Andrew Clemons opened SPR-11097 and commented

As described in the ASE documentation (http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc00729.1500/html/errMessageAdvRes/BABCCECF.htm), a foreign key violation can result in error code 546 or 547. Currently only 547 is mapped.

This results in the exception being incorrectly translated by the fallback translator.


Affects: 3.1.4

Referenced from: commits c3907cd, 2d2226b

Backported to: 3.2.6

@spring-projects-issues
Copy link
Collaborator Author

Andrew Clemons commented

Small test project to demonstrate:
https://github.com/aclemons/spring-jdbc-ase-test.git

@spring-projects-issues spring-projects-issues added in: data Issues in data modules (jdbc, orm, oxm, tx) status: backported An issue that has been backported to maintenance branches type: enhancement A general enhancement labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.0 GA milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: backported An issue that has been backported to maintenance branches type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants