On Tue, Mar 09, 2010 at 07:30:54PM +0100, Jonas Sandman scratched on the wall:
> Doesn't it return an array of sqlite3_stmt pointers?

  No.

> If you prepare this statement:
> 
> "BEGIN; UPDATE something SET this='that'; COMMIT;"
> 
> Then the array will contain the statement handles for the three
> statements BEGIN, UPDATe and COMMIT.

  http://sqlite.org/c3ref/prepare.html

  "If pzTail is not NULL then *pzTail is made to point to the first
  byte past the end of the first SQL statement in zSql. These routines
  only compile the first statement in zSql, so *pzTail is left pointing
  to what remains uncompiled."



  sqlite3_exec() will process multiple statements.  Prepare will not.

   -j

-- 
Jay A. Kreibich < J A Y  @  K R E I B I.C H >

"Our opponent is an alien starship packed with atomic bombs.  We have
 a protractor."   "I'll go home and see if I can scrounge up a ruler
 and a piece of string."  --from Anathem by Neal Stephenson
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to