Skip to content

Bug: InsertAllAsync throws an exception (SQLite) #1210

Open

Description

@qfilip

Bug Description

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 SQL
INSERT 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 AS TEXT) AS [Result], @__RepoDb_OrderColumn_0 AS [OrderColumn] ;

Library Version:

RepoDb v1.13.2-alpha1

Activity

  1. added
    bug
    on Oct 9, 2025
  2. mikependon commented on Jul 1, 2026

    @mikependon
    Owner

    Are you able to replicate the issue using v1.14.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions