Hello,

I am a little confused, below is my code, a bit taken out of its
context but anyway, all variables are present and it compiles okay.

m_stmt = NULL;
m_pTail = NULL;
sqlite3_prepare16_v2(m_db, L"BEGIN IMMEDIATE", -1, &m_stmt, (const
void**)&m_pTail);
int err = sqlite3_step(m_stmt);
assert(err == SQLITE_DONE);
sqlite3_finalize(m_stmt);

It have worked pretty well, or at least I think. I started adding
asserts to my code and this part of the code apparently
have been acting up (always?). In any case, the variable 'err' is 1
meaning that I get SQLITE_ERROR. Why is BEGIN IMMEDIATE
returning an error? Can it return error if another transaction is
currently present?

Thanks for any input!

/Jonas
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to