Hi all,
Before I go digging into the APM and QD code deeper I thought I'd ask here.
I have some namespace'd procs declared like this:
namespace eval ::logan_apartments {}
namespace eval ::logan_apartments::user {}
ad_proc -public ::logan_apartments::user::new
In the "new" procedure above, I have a query named "user_insert". My corresponding .xql my queries are being named like this:
<fullquery name="logan_apartments::user::new.user_insert">
However, the QD can't seem to be able to find these queries. I put things in Debug (which became a non-intuitive thing since you have to modify 2 lines of 40-db-query-dispatcher-procs.tcl _and_ turn on debugging in AOLserver) and this is what the QD is telling me:
[26/Jan/2003:19:08:32][5250.163846][-conn1-] Notice: dbinit: sql(localhost::loganapartments): 'begin transaction'
[26/Jan/2003:19:08:32][5250.163846][-conn1-] Debug: calling namespace = logan_apartments::user
[26/Jan/2003:19:08:32][5250.163846][-conn1-] Debug: proc_name is -logan_apartments::user::new-
[26/Jan/2003:19:08:32][5250.163846][-conn1-] Debug: there is no documented proc with name logan_apartments::user::new -- we used default SQL
[26/Jan/2003:19:08:32][5250.163846][-conn1-] Notice: Querying 'abort transaction;'
[26/Jan/2003:19:08:32][5250.163846][-conn1-] Notice: Ns_PgExec: Rolling back transaction
[26/Jan/2003:19:08:32][5250.163846][-conn1-] Notice: dbinit: sql(localhost::loganapartments): 'abort transaction'
[26/Jan/2003:19:08:32][5250.163846][-conn1-] Error: Problem creating a new user: No fullquery for dbqd..NULL and default SQL empty - query for statement missing
So it seems th QD is hitting the point where it does: "if {![nsv_exists api_proc_doc $proc_name]}" and the test is failing.
But the question is why would this test fail? Looking through the logs, there are no errors in the tcl file (this is a -procs file) that could have cause it to not be parsed.
Thanks in advance.
-Roberto