zzzprojects / Dapper-Plus

Dapper Plus - High-Efficient Bulk Actions (Insert, Update, Delete, and Merge) for .NET
https://dapper-plus.net/
383 stars 85 forks source link

Postgresql syntax error at or near #66

Closed buraksecer closed 2 years ago

buraksecer commented 4 years ago

Hello world!

I am using you for bulk insert operation but I updated the other day and now I started getting the error below.

Please support

My code

DapperPlusManager.Entity<TEntity>().Table(typeof(TEntity).Name).Identity("Id").BatchTimeout(12000).BatchSize(50000); using (var connection = new NpgsqlConnection(_connectionString)) { connection.BulkInsert(entityList); } Error Message : ERROR SqlState: 42601 MessageText: syntax error at or near "ORDER" Position: 510 File: scan.lsd Line: 1150 Routine: scanner_yyerror}

Thank you!

szymenn commented 4 years ago

Also having the same issue, tried logging generated query, but I didn't understand what can be wrong with it, I'll try to find it in the logs and paste it later.

JonathanMagnan commented 4 years ago

Hello @buraksecer ,

Thank you for the code, we will try it and hope that it will reproduce the issue.

Best Regards,

Jon

JonathanMagnan commented 4 years ago

Hello @buraksecer , @szymenn ,

Do you think you could provide a runnable project (you can send it in private here: info@zzzprojects.com)?

We tried again today but we fail to reproduce it.

Having a runnable code that already has the issue will allow us to fix this way faster.

buraksecer commented 4 years ago

@JonathanMagnan hello again,

I sent example project.

I hope , fixed my problem :)

Thanks for be interested 👍

JonathanMagnan commented 4 years ago

Hello @buraksecer ,

Thank you for the project, the v3.0.18 has been released.

Could you try it and let us know if everything is now fixed?

buraksecer commented 4 years ago

@JonathanMagnan Of course i will try and i will share the results.

buraksecer commented 4 years ago

Thank You!

My problem fixed!

Congratulations! 💯

JonathanMagnan commented 4 years ago

Awesome @buraksecer ,

We are glad everything is working out for you!

Don't hesitate to contact us for any questions, issues or feedback!

Best regards,

Jon

karolswdev commented 2 years ago

This one could be closed, too :)