Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SQLite] Model.save({ignore: true}) throws error #1

Open
claudiopro opened this issue Jan 4, 2017 · 0 comments
Open

[SQLite] Model.save({ignore: true}) throws error #1

claudiopro opened this issue Jan 4, 2017 · 0 comments

Comments

@claudiopro
Copy link
Member

claudiopro commented Jan 4, 2017

Apparently INSERT IGNORE is not supported by SQLite:

  base model
    save
      ✓ persists a new model
      ✓ updates an existing model (38ms)
      ✓ opts.force inserts a model when primary key is set
{ [Error: SQLITE_ERROR: near "IGNORE": syntax error] errno: 1, code: 'SQLITE_ERROR' }
      1) opts.ignore inserts ignore a model

Steps to reproduce:

DEBUG=true npm run test-sqlite

@claudiopro claudiopro changed the title [SQLite] Model.save({ignore: true}) throws error [SQLite] Model.save({ignore: true}) throws error Jan 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant