[sqlite] sqlite3_bind_text and SQLITE_STATIC

2012-05-22 Thread Artyom Beilis
Hello, One of the things that is useful is sqlite3_bind_text is SQLITE_STATIC that allows to reduce memory copy. I assumed that I need to keep the value valid until I execute that statement, however I discovered it does not work this way: Following simple program prints "xbcd" instead of

Re: [sqlite] sqlite3_bind_text and SQLITE_STATIC

2012-05-22 Thread Pavel Ivanov
> I'd expect that after sqlite3_step is done I can safely change > that buffers, but it seems not. > Is it a bug? Feature or incorrect use of SQLITE_STATIC It's an incorrect use of SQLITE_STATIC. Only call to sqlite3_finalize() can guarantee you that buffer won't be used again. Probably a pair of

Re: [sqlite] Licence

2012-05-22 Thread Net Surfer
2012/5/19 Net Surfer > Hi All, > > Just a quick question. To sell an application that uses SQLite, do i need > to include in the software any reference to public domain Licence? > ___ sqlite-users mailing list sqlite-users@sqlite.org

Re: [sqlite] Licence

2012-05-22 Thread Simon Slavin
On 22 May 2012, at 9:48pm, Net Surfer wrote: >> Just a quick question. To sell an application that uses SQLite, do i need >> to include in the software any reference to public domain Licence? No. Just use the code, and don't claim you

[sqlite] Fwd: Re: Licence

2012-05-22 Thread Oliver Schneider
Re-sending because the list still complains about PGP signatures. Original Message Subject: Re: [sqlite] Licence Date: Tue, 22 May 2012 20:55:06 + On 2012-05-22 20:48, Net Surfer wrote: >> Just a quick question. To sell an application that uses SQLite, do i need >> to