stainless-steel / sqlite3-sys

Bindings to SQLite
Other
19 stars 6 forks source link

Upset succeeds on Mac and fails on ubuntu #3

Closed ta3pks closed 5 years ago

ta3pks commented 5 years ago

How do I upgrade sqlite version the code is built against ?

IvanUkhov commented 5 years ago

It’s not here. It’s in the sqlite3-src package. You need to update the source directory there.

IvanUkhov commented 5 years ago

It might also be helpful to find our the difference between your setup and the one on Travis CI:

https://travis-ci.org/stainless-steel/sqlite3-src

https://travis-ci.org/stainless-steel/sqlite3-sys

ta3pks commented 5 years ago

code is built alright that's not the problem on runtime the sql syntax throws error from sqlite inside

IvanUkhov commented 5 years ago

If I’m not mistaken, we build version 3.28.0, which is the latest one at the moment.

ta3pks commented 5 years ago

3.28 supports upserts however in my case it works fine on arch linux and Mac but on ubuntu it gives syntax error for on conflict clause

ta3pks commented 5 years ago

so it doesn't seem to be the latest version

IvanUkhov commented 5 years ago

Try updating Cargo‘s cache via cargo update. It might be the case that you still have the old version.

ta3pks commented 5 years ago

im using a docker container to build the project so there's no cache every time it fetches the new packages

IvanUkhov commented 5 years ago

The OS distribution might have an older version installed, and it gets picked up. Try the bundled feature to prevent this from happening:

[dependencies.sqlite3-src]
version = "0.2"
features = ["bundled"]

See also sqlite/#20.

ta3pks commented 5 years ago

thanks