Re: mysql problem with sql transformer

2006-05-28 Thread Yves Vindevogel
I can do even more with the generator, I found out ... I extended my stored procedure to return 2 resultsets: 1 with the data, and one with the "dashboard" data. For instance, when I create my report on "Jobs per day", I have a little box below my report stating how many days we have, how many

Re: mysql problem with sql transformer

2006-05-28 Thread Yves Vindevogel
I don't know if it makes any difference, but we always use the SQL escape syntax described in the CallableStatement javadocs[1]. Does it make any difference if you use {call spJobsperday 0, 2, '', '', '', '', '', '', '', '', ''} ? Your suggestion gives this error You have an error in your S

Re: mysql problem with sql transformer

2006-05-27 Thread Andrew Stevens
From: Yves Vindevogel <[EMAIL PROTECTED]> Date: Sat, 27 May 2006 13:14:05 +0200 Ok, here's some more copy and pasting This is the command line executed in putty or ssh with the results (which are correct) (0 means offset 0, 2 means limit 2) [EMAIL PROTECTED]:~# mysql pdt2 --execute "call

Re: esql stored proc call (WAS mysql problem with sql transformer (and esql too))

2006-05-27 Thread Yves Vindevogel
Retry with CALL call spJobsperday(0, 2, '', '', '', '', '', '', '', '', '') (ResultSet)column="1"/>

Re: mysql problem with sql transformer (and esql too)

2006-05-27 Thread Yves Vindevogel
XSP with ESQL seems to give the same problem http://apache.org/xsp"; xmlns:xsp-request="http://apache.org/xsp/request/2.0"; xmlns:esql="http://apache.org/cocoon/SQL/v2"; xmlns:xsp-session="http://apache.org/xsp/session/2.0"; create-session="true"> pdt10010

Re: mysql problem with sql transformer

2006-05-27 Thread Yves Vindevogel
Ok, here's some more copy and pasting This is the command line executed in putty or ssh with the results (which are correct) (0 means offset 0, 2 means limit 2) [EMAIL PROTECTED]:~# mysql pdt2 --execute "call spjobsperday(0, 2, '', '', '', '', '', '', '', '', '')" ++--+--

RE: mysql problem with sql transformer

2006-05-26 Thread Andrew Stevens
From: Yves Vindevogel <[EMAIL PROTECTED]> Date: Sat, 27 May 2006 03:12:45 +0200 Hi, This is my call to the db in the shell mysql pdt2 --execute "call spjobsperday(0, 2, '', '', '', '', '', '', '', '', '')" ++--+---+--+--+ | EventDate | Jobs | Pages | Fi

Re: mysql problem with sql transformer

2006-05-26 Thread Yves Vindevogel
Just tried to put my simple select query instead of my "call" and that works. Is this a jdbc problem with calling stored procs ? Or is this a sql transformer problem ? Yves Vindevogel wrote: Hi, This is my call to the db in the shell mysql pdt2 --execute "call spjobsperday(0, 2, '', '',

mysql problem with sql transformer

2006-05-26 Thread Yves Vindevogel
Hi, This is my call to the db in the shell mysql pdt2 --execute "call spjobsperday(0, 2, '', '', '', '', '', '', '', '', '')" ++--+---+--+--+ | EventDate | Jobs | Pages | FirstJob | LastJob | ++--+---+--+--+ | -00-