|
From: Bob D. <bd...@si...> - 2003-12-04 14:01:03
|
Hym.....
Does the breaks bug exist in all database formats or just postgre?
On the subject of RLIB memory checking:
1) Did you compile rlib with/ --enable-memdebug ??
2) If a query fails to run rlib_execute will do nothing.. and return -1
so you should do some error checking for that... but we should keep a
state in RLIB and protect us from crashing/ getting confused..
hey Chet.. can you add a flag to the rlib struct.. and initially set it
to good.. in the add_datasource_* stuff.. if anything fails set it to
bad.. then in execute.. if it is bad just return -1.. but if it is good
execute.. and if execute has problems set it to bad... then in the
spool, rlib_get_output, ect.. make sure we are good before returning
stuff?
But.. you should be doing this anyway:
.
.
.
if(rlib_add_datasource_postgre($rlib, "pgsql", "host=localhost
dbname=rlib_examples_latin user=postgres") == -1)
echo "Could not connect to......"
else {
rlib_add_query_as($rlib, "pgsql", $sql, "jobs");
rlib_add_report($rlib, "jobs.xml");
rlib_set_output_format_from_text($rlib, $format);
if(rlib_execute($rlib) == -1)
echo "faild to run a query, bad xml or something..."
else {
header( rlib_get_content_type($rlib));
rlib_spool($rlib);
}
}
rlib_free($rlib);
- Bob
On Thu, 2003-12-04 at 08:21, Everton Luis Berz wrote:
> I think i found a bug on breaks when records that appears
> in detail repeats. (1.1.4 has the bug too)
>
> *** Example (working):
> Query result:
> Amazon | 6 | Britney
> Amazon | 1 | Everton
> Amazon | 5 | John
> Hellion | 6 | Britney
> SICOM | 4 | Andrew
>
> Rlib result: (company is the breakfield)
> Company: Amazon
> 6 Britney
> 1 Everton
> 5 John
> Company: Hellion
> 6 Britney
> Company: SICOM
> 4 Andrew
>
> *** Example (bug)
> Query result:
> Amazon | 6 | Britney
> Hellion | 6 | Britney
> SICOM | 4 | Andrew
>
> Rlib result: (company is the breakfield)
> Company: Amazon
> 6 Britney
> Company: SICOM
> 4 Andrew
>
>
> Where is 'Hellion' break and detail?
>
>
> I'm sending new jobs.php (from examples), run it and
> you will see that one record does not appear.
>
>
> Other problem.. not serious..
> i think that's a problem on new memory checking because
> when i run a erroneous report (with sql syntax error) my
> computer break, hard disk craze, etc.. some minutes after this
> it's back to normal, but sometimes i need restart linux.
>
>
> thanks.
>
>
> Bob Doan escreveu:
> > Hey all,
> >
> > Chet and I are happy to announce the relase of RLIB 1.1.5 (still
> > beta...)
> >
> > - rlib_add_parameter (chet)
> > - optional memory checking (chet)
> > - reports can span multiple pages (bob)
> > - fix problems w/ postgre and odbc driver (bob)
> > - ability to disable signal handling (chet)
> > - page footer formats correctly now (bob)
> > - pcode compilation fixes (chet, bob)
> > - better xml parsing and error checking (chet)
> > - surpress lines and hr's (bob)
> >
> > Again.. special thanks to Everton Luis Berz.. for all of his bug
> > reports.. pretty soon we will have more examples thanks to him...
> >
> > Known problems:
> > Number formatting w/ i18n still doesn't work
> > HTML page footer might be not be correct
> >
> > Please test it :)
> >
> > - Bob
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by OSDN's Audience Survey.
> > Help shape OSDN's sites and tell us what you think. Take this
> > five minute survey and you could win a $250 Gift Certificate.
> > http://www.wrgsurveys.com/2003/osdntech03.php?site=8
> > _______________________________________________
> > Rlib-users mailing list
> > Rli...@li...
> > https://lists.sourceforge.net/lists/listinfo/rlib-users
> >
>
|