The following sequence gives an incorrect result value:

(ramsan) package require sqlite3
3.6.22
(ramsan) 2 % sqlite3 db :memory:
(ramsan) 3 % db authorizer myauth
(ramsan) 4 % proc myauth { cmd args } {
return SQLITE_OK
}
(ramsan) 6 % db eval { create table t(a,b) }
(ramsan) 7 % db onecolumn { select a from t }
SQLITE_OK


The error is probably due to the fact that the onecolumn TCL code,
in some cases (if there are no results), does not store a void string
as result. Then, a previous not valid TCL result (SQLITE_OK) is
returned as result of the onecolumn method.
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to