Re: Moto drops Mysql connection

Jack <[email protected]> 25 Feb 2003 23:28:28 -0700
Newsgroups gmane.comp.lang.moto.user
Message-ID <[email protected]>
Glad Im not the only one.  Even more glad its not a stupid config error
on my part ;)

On Tue, 2003-02-25 at 23:11, Cory Wright wrote:
> > There have been problems with Moto on Debian in the past.  My laptop runs
> > Debian so I will try out your code tonight and see if I get the same results.
> 
> Well, the story gets more interesting.  In the process of trying to reproduce
> Jack's problems I keep getting the following error:
> 
> corz@dandolo:/var/www$ moto jack.moto
> Feb 26 01:04:19    ERROR    dl.c             /usr/local/moto/mx/codex/db/mysql/libmx_codex_db_mysql.so: undefined symbol: uncompress
> Feb 26 01:04:19    ERROR    dl.c             moto: undefined symbol: __MOTO_codex_db_mysql_get_record
> Segmentation fault
> 
> The jack.moto file contains the following:
> 
> $use("codex.db.mysql")
> $use("codex.util")
> $use("codex.http")
> 
> <html>
> 
> <body BGCOLOR = #FFFFFF TEXT = #000000 marginheight="0" marginwidth="0"
> topmargin="0" leftmargin="0" onLoad="Startup()">
> 
> ${
> MySQLConnection conn = new
> MySQLConnection("localhost","db","user","pass");
> String tableName = "transactions";
> String query = "select * from " + tableName;
> MySQLResultSet rset = conn.query(query);
> }$
> 
> $declare(int cols=rset.getColumns())
> $declare(int i)
> $for(i=0;i<cols;i++)
> $(rset.getColumnName(i))
> $endfor
> 
> 
> This is on a Debian Woody box.  Other moto files are working fine, but 
> connecting to the database is giving me issues.  Maybe the two problems
> are related?  Any thoughts?
> 
> (Sorry Jack, I was trying to solve your problem!)
> 
> Cory
> 
> --
> Cory Wright
> Stand Blue Technology
> http://www.standblue.net/