Re: [Cppcms-users] Bizarre prepared statement problem
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-05-23 07:46:18
|
> Fixed in svn trunk in chageneset 2178. > > Please take it and see if it solve the problem (it should) > > I switched from using SQLITE_STATIC to full copy. > > I think I'm going to release a hot fix release for cppdb > because some assumptions on the scope of the statement > were incorrect. > Thanks Artyom, I will test the patch ASAP, (although Im not at home right now), so I will report back tomorrow. Can you tell me what you changed? Is returning cppdb::result without calling next() expected to work now? I did also want to ask you why did you not design cppdb::result as an STL-like container with iterators? The way it is now I find it a little strange. For example if I run a query and terminate with cppdb::row, calling next() will return false even if a row exists. Thanks, petr |