Map ORA-30006 to CannotAcquireLockException as well

ORA-00054 is already mapped to CannotAcquireLockException and is
described as

  "resource busy and acquire with NOWAIT specified"

As pointed out in the associated JIRA issue, ORA-30006 is quite similar
being described as

  "resource busy; acquire with WAIT timeout expired"

This commit maps ORA-30006 to CannotAcquireLockException as well.

Issue: SPR-9141
master
Chris Beams 13 years ago
parent 4df2a14b13
commit b2291ff814
  1. 2
      spring-jdbc/src/main/resources/org/springframework/jdbc/support/sql-error-codes.xml

@ -181,7 +181,7 @@
<value>17002,17447</value> <value>17002,17447</value>
</property> </property>
<property name="cannotAcquireLockCodes"> <property name="cannotAcquireLockCodes">
<value>54</value> <value>54,30006</value>
</property> </property>
<property name="cannotSerializeTransactionCodes"> <property name="cannotSerializeTransactionCodes">
<value>8177</value> <value>8177</value>

Loading…
Cancel
Save