Hi, I'm using SBCL + KPAX + CLSQL + MYSQL and I have a problem with my lisp files:<br><br>if I define a file like this:<br><br>(in-package :kpax-user)<br>(defwebapp :q_main<br> (:index 'q_main-index)<br> (:unsecure t))
<br><br><br>(defun q_main-index (request-response)<br> (in-package :clsql-user)<br> (html-part (out request-response)<br> (:div<br> (clsql:connect '("localhost" "quotes" "root" "pass") :if-exists :new :database-type :mysql)
<br> (clsql:do-query ((user) "select USERNAME from USER")<br> (fmt "<p>~A</p>" user)))))<br><br>I get a page listing all users for my USER table.<br> <br>Now I'm trying to combine lsp's with clsql code getting an lisp page similar to the
lsp.lisp example and a q_index.lsp that has:<br><br>...<br><br><div class="indexTable" align="center"><br><br /><br /> <br><%<br> (in-package :clsql-user)<br> (html-part (out request-response)
<br> (:div :class "indexTable" :align "center")<br> (clsql:connect '("localhost" "quotes" "root" "") :if-exists :new :database-type :mysql)<br> (clsql:do-query ((user) "select USERNAME from USER")
<br> (fmt "<p>~A</p>" user)))<br>%><br><br>...<br><br>I'm getting an error:<br><br>;; S-HTTP-SERVER: [1] Handling #<S-HTTP-SERVER:HTTP-REQUEST GET "/kpax/dynamic/lsp/show-lsp/q_index" {B370D11}>
<br>;; S-HTTP-SERVER: Running KPAX s-http-server-handler<br>;; KPAX 20070216T180518 INFO handling /kpax/dynamic/lsp/show-lsp/q_index<br>;; KPAX 20070216T180518 INFO created new session 2PQCITWJPIRUX [12863637235009421961]
<br>;; KPAX 20070216T180518 ERROR error deleting unreachable code<br><br>debugger invoked on a CODE-DELETION-NOTE in thread<br>#<THREAD "connection-handler-1" {AA6F001}>:<br> deleting unreachable code<br>
<br>any help?<br><br><br clear="all"><br>-- <br>I would never die for my beliefs because I might be wrong.<br><br>Bertrand Russell