[CONJ-364] executeBatch won't return an array of update counter when allowMultiQueries=true. Created: 2016-10-10 Updated: 2019-08-30 Resolved: 2019-08-30 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | aurora |
| Affects Version/s: | 1.5.2, 1.5.3 |
| Fix Version/s: | 2.0.0-RC, 1.6.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Seonmi Anderson | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
AWS RDS Aurora 5.6.10a |
||
| Issue Links: |
|
||||||||
| Description |
|
When the app is executed in main, it stuck and won't return updateCounts. However, eclipse debugger is used to debug the issue, it works and returns an array of update counts. The old version of mariadb connector 1.4.6 and 1.4.4 return update counts as expected. |
| Comments |
| Comment by Diego Dupin [ 2016-11-07 ] | |||||||||||||||||||||||||||||||||||||
|
hi, I failed to reproduced your issue :
return good results. | |||||||||||||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2016-11-07 ] | |||||||||||||||||||||||||||||||||||||
|
reproduced using aurora. | |||||||||||||||||||||||||||||||||||||
| Comment by Seonmi Anderson [ 2016-11-07 ] | |||||||||||||||||||||||||||||||||||||
|
Thanks Diego looking at this! I was able to retrieve good results when it connects local server 'jdbc:mariadb://localhost:3306/'. However, it won't return results and hangs when it tried to connect aurora instance endpoint or cluster endpoint. | |||||||||||||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2016-11-08 ] | |||||||||||||||||||||||||||||||||||||
|
As a workaround, you can add option useBatchMultiSend=false. | |||||||||||||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2019-08-30 ] | |||||||||||||||||||||||||||||||||||||
|
corrected with https://jira.mariadb.org/browse/CONJ-477 in 1.6.0 and 2.0.0 |