Search code examples
sqliteclojurekorma

When I make a call to insert with multiple rows in korma I get the exception


When I make a call to insert with multiple rows in korma I get the exception...

Failure to execute query with SQL:
 ...snip...
SQLException:
 Message: near ",": syntax error
 SQLState: null
 Error Code: 0

What is going on?

Extra details: I am using sqlite as my database.


Solution

  • Korma doesn't attempt to cover every little kink in every database. In this case sqlite3 doesn't support the syntax that is generated by korma.

    See this question for the root of the problem: Is it possible to insert multiple rows at a time in an SQLite database?.

    See this discussion on Korma's discussion group for Korma's stance on the issue: https://groups.google.com/forum/?fromgroups#!msg/sqlkorma/t7lwpD5np9w/Vf-T52fQrSwJ