OPENJPA-1969 - Decode HYT00 to LockTimeoutException

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1087028 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Albert Lee 2011-03-30 17:58:32 +00:00
parent 1f139e4013
commit fd197214a9
2 changed files with 3 additions and 3 deletions

View File

@ -291,7 +291,7 @@ public class SQLServerDictionary extends AbstractSQLServerDictionary {
public boolean isFatalException(int subtype, SQLException ex) { public boolean isFatalException(int subtype, SQLException ex) {
String errorState = ex.getSQLState(); String errorState = ex.getSQLState();
if ((subtype == StoreException.LOCK || subtype == StoreException.QUERY) if ((subtype == StoreException.LOCK || subtype == StoreException.QUERY)
&&("1222".equals(errorState) || "HY008".equals(errorState))) &&("1222".equals(errorState) || "HY008".equals(errorState) || "HYT00".equals(errorState)))
return false; return false;
return super.isFatalException(subtype, ex); return super.isFatalException(subtype, ex);
} }

View File

@ -47,12 +47,12 @@
</dictionary> </dictionary>
<dictionary class="org.apache.openjpa.jdbc.sql.SQLServerDictionary"> <dictionary class="org.apache.openjpa.jdbc.sql.SQLServerDictionary">
<lock>1204,1205,1222,HY008,40001</lock> <lock>1204,1205,1222,HY008,HYT00,40001</lock>
<referential-integrity>544,2601,2627,8114,8115</referential-integrity> <referential-integrity>544,2601,2627,8114,8115</referential-integrity>
<object-exists>23000</object-exists> <object-exists>23000</object-exists>
<object-not-found></object-not-found> <object-not-found></object-not-found>
<optimistic>1205</optimistic> <optimistic>1205</optimistic>
<query>HY008</query> <query>HY008,HYT00</query>
</dictionary> </dictionary>
<dictionary class="org.apache.openjpa.jdbc.sql.SybaseDictionary"> <dictionary class="org.apache.openjpa.jdbc.sql.SybaseDictionary">