raise error for old sqlite versions when "INSERT INTO ... DEFAULT VALUES" is required

Issue #909 resolved
Former user created an issue

Using a secondaryjoin condition on a relation triggers the use of the INSERT INTO ... DEFAULT VALUES construct. This syntax is not available with SQLite 3.2.8 (the default on Ubuntu Dapper). Works fine against SQLite 3.4.2.

Comments (6)

  1. Former user Account Deleted

    jek on IRC noted that single-column auto-increment tables are problematic on older versions of SQLite. Adding a dummy column fixed it.

    Another solution is to explicitly insert a NULL for auto-increment columns: INSERT INTO ... VALUES (NULL). Works for me on 3.2.8 and 3.4.2.

  2. Michael Trier
    • changed milestone to 0.5.xx
    • assigned issue to
    • changed component to sqlite

    I emailed D. Richard Hipp:

    First appearance seems to be version 3.3.8. 2006-10-09.

  3. Former user Account Deleted

    I'm the original reporter, and FWIW I'd be perfectly happy with your current solution.

  4. Log in to comment