- 
                Notifications
    You must be signed in to change notification settings 
- Fork 38.8k
          Detect Informix error codes as DuplicateKeyException
          #35400
        
          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
  
    Detect Informix error codes as DuplicateKeyException
  
  #35400
              Conversation
a7add32    to
    5df704c      
    Compare
  
    Signed-off-by: Lukáš Kvídera <[email protected]>
5df704c    to
    1df688a      
    Compare
  
    DuplicateKeyException
      | Hi @sgflt, Congratulations on submitting your first PR for the Spring Framework! 👍 This is indeed related to #29950, especially this comment (#29950 (comment)). In  spring-framework/spring-jdbc/src/main/resources/org/springframework/jdbc/support/sql-error-codes.xml Lines 154 to 156 in 942fbf3 
 The first two are still documented as error codes for Informix 15. Thus, if we were to make this change, I believe we should do it for  In addition, we would want to do this not only for  We will discuss within the team whether we wish to make these changes to  Note, however, that we would only implement this change for  For  
 | 
| We have decided to proceed with this. @sgflt, please update this PR as outlined below. Thanks 
 | 
…ctoryUtils Signed-off-by: Lukáš Kvídera <[email protected]>
Signed-off-by: Lukáš Kvídera <[email protected]>
Signed-off-by: Lukáš Kvídera <[email protected]>
Signed-off-by: Lukáš Kvídera <[email protected]>
808d810    to
    b7757bf      
    Compare
  
    Signed-off-by: Lukáš Kvídera <[email protected]>
| Fixed via db9e938 | 
This fix is related to #29950 and #29699 .
After migration from Spring Boot 2 to Spring Boot 3 spring-jdbc changed behavior and now throws
DataIntegrityViolationExceptioninstead ofDuplicateKeyException.