If the array-name in a [db eval arrayname ...] command isn't actually an array,
sqlite silently fails.  The script is evaluated but the variable doesn't
contain values from the query:


    package require sqlite3
    sqlite3 db :memory:
    db eval {
        create table t (f)
        ; insert into t values ("h") , ("he")
    }
    set record 2
    db eval {select * from t} record {
        puts [list row [array get record]]
    }

Of course, one reasonable answer is, "Then don't do that!", but it would be
less surprising if the underlying error propagated in this case.


--
Poor Yorick


_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to