hdbc / hdbc-sqlite3

Sqlite v3 driver for HDBC
BSD 3-Clause "New" or "Revised" License
21 stars 6 forks source link

Odd behaviour for long queries with an integer argument #13

Open FredrikKarlssonSpeech opened 9 years ago

FredrikKarlssonSpeech commented 9 years ago

Hi,

I've posted a question on Stack Overflow that I suspect is actually a bug in either HDBC or HDBC-sqlite3. So, I deeply apologize for the cross posting of this problem, and hope you'll be able to forgive me.

http://stackoverflow.com/questions/29040880/generating-long-sqlite3-queries-in-haskell-hdbc

The problem is related to an integer argument to a longer query. When the integer is passed as an argument to the query, the result is an empty set. When the integer is hard coded in the actual query instead, the result is what is expected. Please have a look if there could be an issue in handling of SqlInt64 in parameters. I am on OSX 10.10.

Fredrik