On Sat, Jan 9, 2016 at 5:57 PM, Simon Slavin <slavins at bigfraud.org> wrote:
> > On 9 Jan 2016, at 1:18pm, Bart Smissaert <bart.smissaert at gmail.com> wrote: > > >> but only after at least one sqlite3_step() occurred. > > > > It will work before any step, but indeed the statement needs to be > prepared. > > I need to know before stepping, but it can do that. > > For a SELECT which returns no rows I presume it returns the number of > columns asked for. It does. i use this in a db abstraction layer to fetch column names without needing to fetch data. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf