set sql "select foo, bar from foobars where bat='asdf' limit 1"
db_0or1row get_ns_sockets $sql
If I execute this in a plain tcl file under the www directory of the
openacs installation, it works just fine. However I have the code
executing within a tcl proc that gets called via the ns_sockcallback
function when a certain socket becomes readable. When the code gets
executed I get the error below. I'm guessing that calling the db api
from within a socket callback is screwing up its execution. Does
anybody have any experience with this? Know a work around?
[11/Sep/2002:16:07:59][28490.3076][-socks-] Error: can't
read "rest": no such variable
can't read "rest": no such variable while
executing "db_qd_make_absolute_path "${rest}.${proc_name}."
$local_name" (procedure "db_qd_get_fullname" line 151)
invoked from within "db_qd_get_fullname $statement_name"
(procedure "db_0or1row" line 5)
invoked from within "db_0or1row get_ns_sockets $sql"
(procedure "mas_callbackfromServer" line 15)
invoked from within "mas_callbackfromServer sock16 r"
Request notifications