Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixed issue CONJ-489.
Caused by: javax.transaction.xa.XAException: (conn:41252) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '0x
at org.mariadb.jdbc.MariaXaResource.mapXaException(MariaXaResource.java:123)
at org.mariadb.jdbc.MariaXaResource.execute(MariaXaResource.java:137)
at org.mariadb.jdbc.MariaXaResource.start(MariaXaResource.java:314)
at com.atomikos.datasource.xa.XAResourceTransaction.resume(XAResourceTransaction.java:297)
The hexdump implementation is creating an XA statement as followed:
XA PREPARE 0x 31 39 32 2E 31 36 38 2E 32 35 31 2E 32 2E 74 6D 192.168.251.2.tm
31 34 39 36 36 30 31 31 37 38 38 32 35 30 32 35 1496601178825025
34 31 41
,0x
31 39 32 2E 31 36 38 2E 32 35 31 2E 32 2E 74 6D 192.168.251.2.tm
32 30 34 37 2047
,1096044365
This leads to an exception.
The provided implementation is corresponding to the mysql implementation or atomikos implementation.
The result would be:
XA PREPARE 0x3139322E3136382E3235312E322E746D313439363630313137383832353032353431,0x3139322E3136382E3235312E322E746D32303437,1096044365