SQLite Forum

string concatenation issue in prepared statement
Login
Hey, thanks for answering. I also suspected something would be wrong in my code, but i'm confused by the fact that the "printf" version seems to work just fine (and uses the same sqlite3_bind_text call)..

i've tried different operators (+) and types (int), and only string concatenation gives this weird result.

Any clue on what kind of problem to look for ? I'm thinking character encoding, and string nullchar termination, but once again, the fact that the printf version works just fine confuses me.