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

MSSQL using transactions error: token error: 'Incorrect syntax near 'begin'.' on server MSSQL2016 executing on line 1 (code: 102, state: 1, class: 15) #488

Closed
wl416195 opened this issue Feb 1, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@wl416195
Copy link

wl416195 commented Feb 1, 2024

I tried to use the begin and commit methods in my code, but it reported an error

image

And I've used the intercept
image

Can you give me some advice? Thank you.

@zhuxiujia zhuxiujia added the help wanted Extra attention is needed label Feb 2, 2024
@zhuxiujia
Copy link
Member

zhuxiujia commented Feb 2, 2024

just run cargo update and remove your Intercept . it's will be success

Note: The latest version of rbatis has moved the start statement of transactions to the driver layer implementation, so the transaction start statement of rbdc mssql is start tran

@wl416195
Copy link
Author

wl416195 commented Feb 2, 2024

just run cargo update and remove your Intercept . it's will be success

Note: The latest version of rbatis has moved the start statement of transactions to the driver layer implementation, so the transaction start statement of rbdc mssql is start tran

It's working. Thank you for your support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants