Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Executing a delete without a TableMapping results in failure during close #35

Closed
timheuer opened this Issue Apr 19, 2012 · 3 comments

Comments

2 participants
Collaborator

timheuer commented Apr 19, 2012

Maybe I'm missing something but the following will fail during Close on the foreach insertcommand:

    using (var db = new SQLiteConnection("northwind.sqlite"))
    {
        db.Trace = true;
        //db.Table<Employees>(); uncommenting this line allows this to succeed
        var affected = db.Execute("delete from Employees where EmployeeID = ?", 3);
    }
Owner

praeclarum commented Apr 19, 2012

Thanks for the info, I'll look into it. Is that db publically available anywhere?

Collaborator

timheuer commented Apr 19, 2012

sure, it is part of the SQLite download, but here for ease http://db.tt/8pcwiDqA

Owner

praeclarum commented Apr 19, 2012

Fixed.

@praeclarum praeclarum closed this Apr 19, 2012

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