[sqlite] SQLITE_STATIC and temporary data

2012-08-01 Thread Yose Widjaja
Dear Friends, So SQLITE_STATIC is meant to be used for data that is static. However, would it still be safe when it is used with data that expires after the sqlite3_step() function? For example: string hello = hello world; sqlite3_bind(statement, 1, hello.c_str(), hello.size(), SQLITE_STATIC);

Re: [sqlite] SQLITE_STATIC and temporary data

2012-08-01 Thread Jay A. Kreibich
On Wed, Aug 01, 2012 at 08:49:19PM +1000, Yose Widjaja scratched on the wall: Dear Friends, So SQLITE_STATIC is meant to be used for data that is static. However, would it still be safe when it is used with data that expires after the sqlite3_step() function? For example: string hello

Re: [sqlite] SQLITE_STATIC and temporary data

2012-08-01 Thread Rob Richardson
...@sqlite.org] On Behalf Of Jay A. Kreibich Sent: Wednesday, August 01, 2012 12:16 PM To: General Discussion of SQLite Database Cc: c...@iki.fi Subject: Re: [sqlite] SQLITE_STATIC and temporary data On Wed, Aug 01, 2012 at 08:49:19PM +1000, Yose Widjaja scratched on the wall: Dear Friends, So

Re: [sqlite] SQLITE_STATIC and temporary data

2012-08-01 Thread Yuriy Kaminskiy
Jay A. Kreibich wrote: On Wed, Aug 01, 2012 at 08:49:19PM +1000, Yose Widjaja scratched on the wall: Dear Friends, So SQLITE_STATIC is meant to be used for data that is static. However, would it still be safe when it is used with data that expires after the sqlite3_step() function? For

Re: [sqlite] SQLITE_STATIC and temporary data

2012-08-01 Thread Jay A. Kreibich
, August 01, 2012 12:16 PM To: General Discussion of SQLite Database Cc: c...@iki.fi Subject: Re: [sqlite] SQLITE_STATIC and temporary data On Wed, Aug 01, 2012 at 08:49:19PM +1000, Yose Widjaja scratched on the wall: Dear Friends, So SQLITE_STATIC is meant to be used for data