On 2/14/2012 11:34 AM, Marc L. Allen wrote:
I'm trying to write my own function that takes a set of SQL, parses into
statements, executes and returns the results set(s).
Without examining the SQL itself, is it possible to determine whether
an SQL statement returned no results because no rows matched the
criteria or because the statement doesn't return rows?
sqlite3_column_count should do the trick: SELECT would always have at
least one, while UPDATE and such would have zero.
--
Igor Tandetnik
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users