Dapper-Plus icon indicating copy to clipboard operation
Dapper-Plus copied to clipboard

Postgresql syntax error at or near

Open buraksecer opened this issue 3 years ago • 8 comments

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!

buraksecer avatar Aug 04 '20 22:08 buraksecer

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.

szymenn avatar Aug 05 '20 10:08 szymenn

Hello @buraksecer ,

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

Best Regards,

Jon

JonathanMagnan avatar Aug 05 '20 13:08 JonathanMagnan

Hello @buraksecer , @szymenn ,

Do you think you could provide a runnable project (you can send it in private here: [email protected])?

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.

JonathanMagnan avatar Aug 05 '20 18:08 JonathanMagnan

@JonathanMagnan hello again,

I sent example project.

I hope , fixed my problem :)

Thanks for be interested 👍

buraksecer avatar Aug 08 '20 11:08 buraksecer

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?

JonathanMagnan avatar Aug 11 '20 20:08 JonathanMagnan

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

buraksecer avatar Aug 12 '20 06:08 buraksecer

Thank You!

My problem fixed!

Congratulations! 💯

buraksecer avatar Aug 12 '20 08:08 buraksecer

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

JonathanMagnan avatar Aug 12 '20 12:08 JonathanMagnan

This one could be closed, too :)

karolswdev avatar Sep 06 '22 19:09 karolswdev