On 17 Aug 2011, at 11:39pm, Kees Nuyt wrote:

> On Wed, 17 Aug 2011 14:45:22 +0100, Simon Slavin
> <[email protected]> wrote:
> 
>> Parsing a long string containing many SQL commands to
>> find out where the commands are separated is non-trivial.  [snip]
> 
> It is built in. The first sqlite3_prepare*() on a multiple
> statement string parses until the first statement delimiter, ';',
> and returns a pointer to the rest of the string (pzTail), so if
> properly used, the next sqlite3_prepare*() parses the next
> statement in the same multiple statement string.

Oh that's neat.  Thanks, Nees.

Simon.
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to