You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: InsertAllAsync throws an exception (SQLite) #1210
Trying to insert a list of entities using InsertAll() or InsertAllAsync() ends up throwing exception. I am using SQLite. Since this is a playground project, feel free to poke around it: bug sample repository.
Simply run the project, and open in browser http://localhost:5157/seed endpoint (or curl postman, whatever). This should reproduce the exception.
Interestingly MergeAll and MergeAllAsync work correctly. I'm yet to test transactional behavior. Maybe I'm just missing some detail here.
P.S.
Very cool project :)
Exception Message:
System.Data.SQLite.SQLiteException: 'SQL logic error
near "(": syntax error'
-- generated SQLINSERT INTO [Author] ( [Name], [Id] ) SELECT [Name], [Id] FROM ( VALUES ( @Name, @Id , @__RepoDb_OrderColumn_0 ) , ( @Name_1, @Id_1 , @__RepoDb_OrderColumn_1 ) ) AS T ( [Name], [Id] , [__RepoDb_OrderColumn] ) ORDER BY [__RepoDb_OrderColumn] ; SELECT CAST(@Id ASTEXT) AS [Result], @__RepoDb_OrderColumn_0 AS [OrderColumn] ;
Activity
mikependon commentedon Jul 1, 2026
Are you able to replicate the issue using v1.14.0?