"C S" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> insert << "insert into Images values(NULL, '" << Hello
> World << "')"

As predicted, you don't have any parameters in your SQL, so there's 
nothing to bind. It's also not clear why you use a stream. You probably 
want something like

string insert =
    "insert into Images(imageID, messageID) values (?, 'Hello World');";

Question mark '?' is the parameter placeholder.

> long ID = db.performUpdate(insert2.str(), blobarray,
> 10);

What's the relationship between variables named 'insert' and 'insert2'? 
You initialize one, but then use the other.

Igor Tandetnik 



_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to