I'm using sqlite3_bind_text
to bind text parameters to my queries, with the SQLITE_STATIC
flag, since I know the text pointer remains valid at least up until the query is executed.
Recently I've made changes so that the queries are executed in the transaction mode (many such queries in a single transaction). Should the text buffer remain valid up until the transaction is finished?
I mean, my text buffers are valid for the duration of a single query, but no the whole transaction. Should I specify the SQLITE_TRANSIENT
flag?