Permalink
Browse files

Adjust XAException return codes for better compatibility with XA spec…

…ification (#782)

There are three main adjustments
* XAException.XAER_RMFAIL is used when some connection error happens
  and it is expected that reconnection of RM could occur
* XAException.XAER_NOTA is used when RM does not know anything about the
  provided Xid
* XAException.XAER_PROTO is used when some wrong sequence of method
  calls is invoked

Fixes #236, #510, #683
  • Loading branch information...
ochaloup authored and vlsi committed Mar 11, 2018
1 parent 61e1c30 commit e5aab1cd3e49051f46298d8f1fd9f66af1731299
Showing with 17,689 additions and 15,328 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 CHANGELOG.md
  3. +1,123 −983 pgjdbc/src/main/java/org/postgresql/translation/bg.po
  4. +1,100 −978 pgjdbc/src/main/java/org/postgresql/translation/cs.po
  5. +1,128 −997 pgjdbc/src/main/java/org/postgresql/translation/de.po
  6. +977 −874 pgjdbc/src/main/java/org/postgresql/translation/es.po
  7. +1,102 −974 pgjdbc/src/main/java/org/postgresql/translation/fr.po
  8. +1,109 −982 pgjdbc/src/main/java/org/postgresql/translation/it.po
  9. +1,121 −984 pgjdbc/src/main/java/org/postgresql/translation/ja.po
  10. +910 −825 pgjdbc/src/main/java/org/postgresql/translation/messages.pot
  11. +1,040 −944 pgjdbc/src/main/java/org/postgresql/translation/nl.po
  12. +1,083 −979 pgjdbc/src/main/java/org/postgresql/translation/pl.po
  13. +1,110 −976 pgjdbc/src/main/java/org/postgresql/translation/pt_BR.po
  14. +1,143 −1,015 pgjdbc/src/main/java/org/postgresql/translation/ru.po
  15. +1,093 −953 pgjdbc/src/main/java/org/postgresql/translation/sr.po
  16. +1,110 −975 pgjdbc/src/main/java/org/postgresql/translation/tr.po
  17. +1,049 −928 pgjdbc/src/main/java/org/postgresql/translation/zh_CN.po
  18. +1,049 −928 pgjdbc/src/main/java/org/postgresql/translation/zh_TW.po
  19. +8 −0 pgjdbc/src/main/java/org/postgresql/util/PSQLState.java
  20. +89 −31 pgjdbc/src/main/java/org/postgresql/xa/PGXAConnection.java
  21. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_bg.class
  22. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_cs.class
  23. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_de.class
  24. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_es.class
  25. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_fr.class
  26. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_it.class
  27. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_ja.class
  28. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_nl.class
  29. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_pl.class
  30. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_pt_BR.class
  31. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_ru.class
  32. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_sr.class
  33. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_tr.class
  34. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_zh_CN.class
  35. BIN pgjdbc/src/main/resources/org/postgresql/translation/messages_zh_TW.class
  36. +343 −2 pgjdbc/src/test/java/org/postgresql/test/xa/XADataSourceTest.java
@@ -1,6 +1,7 @@
.classpath
.settings
.project
.checkstyle
.DS_Store
.externalToolBuilders
build
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Avoid failure for `insert ... on conflict...update` for `reWriteBatchedInserts=true` case [PR 1130](https://github.com/pgjdbc/pgjdbc/pull/1130)
- fix: allowEncodingChanges should allow set client_encoding=... [PR 1125](https://github.com/pgjdbc/pgjdbc/pull/1125)
- Wrong data from Blob/Clob when mark/reset is used [PR 971](https://github.com/pgjdbc/pgjdbc/pull/971)
- Adjust XAException return codes for better compatibility with XA specification [PR 782](https://github.com/pgjdbc/pgjdbc/pull/782)

## [42.2.1] (2018-01-25)
### Known issues

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit e5aab1c

Please sign in to comment.