On Fri, Jul 3, 2015 at 1:39 PM, Kumar Suraj <surajnitk at gmail.com> wrote:

> #define INSERT_DN "BEGIN TRANSACTION; INSERT INTO TBL (dn) VALUES (?);
> SELECT last_insert_rowid(); COMMIT;"
>
>
prepare() expects a _single_ statement. You're giving it 4 statements and
then trying to bind to part of that, which won't work.


>         snprintf(command, 512, INSERT_DN);
>

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf

Reply via email to