WebReflection / dblite

sqlite for node.js without gyp problems
MIT License
209 stars 34 forks source link

Fixed wrong argument call on Mac OSX #12

Closed hoffi closed 10 years ago

hoffi commented 10 years ago

I fixed a problem occured on mac osx. I always got an error when executing a query. This was caused in a wrong call of sqlite3.

Non working call:

sqlite3 :memory: -csv -header

Working call:

sqlite3 -csv -header :memory:

Otherwise it does not work on mac osx.

WebReflection commented 10 years ago

first of all, thanks! … but … :-)

the whole test suite is based on :memory: database and headers flag or not. Which version of OS X and which version of SQLite3 is causing this problem?

I'll comment more inline.

hoffi commented 10 years ago

I have used SQLite 3.7.12 installed with Homebrew. OSX 10.8.4

WebReflection commented 10 years ago

I've reversed the arguments order and tested locally. Please let me know if the latest/current version works fine for you too.

Thanks again!

hoffi commented 10 years ago

This worked for me :)

WebReflection commented 10 years ago

Thanks. Btw, I have SQLite version 3.7.15.2 2013-01-09 11:53:05 on OSX 10.8.5 and not a problem with the first line and the order you wrote. Apologies for the inconvenient.