"Downey, Shawn" <[EMAIL PROTECTED]> wrote: > Does anyone know if it is possible to determine if data is string or > numeric inside a callback in C++? I am using sqlite 3.2.7. >
sqlite3_exec() converts everything to a string before the callback is invoked, of course. You could modify the existing sqlite3_exec() implementation to do something different if you want. (The source code is contained in the file called "legacy.c") If all you want to do is know the internal storage type but do not mind accessing the data as a string, then use the typeof() function. SELECT typeof(x), x FROM table; -- D. Richard Hipp <[EMAIL PROTECTED]>