Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't support jdbc transaction? #42

Closed
xsi640 opened this issue May 28, 2018 · 2 comments
Closed

don't support jdbc transaction? #42

xsi640 opened this issue May 28, 2018 · 2 comments
Assignees

Comments

@xsi640
Copy link

xsi640 commented May 28, 2018

i try insert 100 record. use transaction.
sqlconnection close function, catch error.

error:
java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use, syntax error at position 9 near 'rollback'

@xsi640
Copy link
Author

xsi640 commented May 29, 2018

add:
change code, no error!
but, insert many record, rollback.
it' can't work.

@BohuTANG
Copy link
Contributor

@xsi640

Hi there,

radon does not support multi-statement(including transaction), in order to compatible with myloader, we only support the statement parse but do nothing:
https://github.com/radondb/radon/blob/master/src/proxy/query.go#L232

By the way, radon supports distributed transaction between the backends:
https://github.com/radondb/radon/blob/master/src/proxy/execute.go#L24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants