-
Notifications
You must be signed in to change notification settings - Fork 124
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
Bug: Incorrect syntax near the keyword 'WITH' BulkMergeAsync #640
Comments
Hey, thanks for reporting, we will look into this. When do you need the fix? |
Not urgent; just wanted to report; I removed the hints for now as it's not crucial at the moment. |
@stefandevo - I had investigated this one. The fix is very simple, we just have to switch the line 526 and line 527 from the Would you be able to provide a PR for this? Your help is highly appreciated - that matters and counts. TIA |
Hi @mikependon no problem, but investigated the source and I see same for GetBulkUpdateSqlText, GetBulkDeleteSqlText. The Insert statement is the only one where the table alias is not place, and so the hints are added after the tableName. |
Cool and thanks for sleuthing around ;) - see my Tweet here. Therefore, you do not need to worry the other methods IMO. Also, the |
The fixes for this is now available on the version >= RepoDb.SqlServer.BulkOperations v1.1.2-beta1. Please upgrade your copy by simply typing the command below in your PCM.
Thank you for the PR in relation to this issue. |
Closing this one now. |
I tried
This caused
If I remove the hints then it worked. Note that I used the same hint for the BulkInsert command with success.
Is there an option to get the last generated SQL statement in such cases to further see what could be wrong?
BTW: Great lib!
The text was updated successfully, but these errors were encountered: