From: Zoltan B. <zb...@du...> - 2008-08-15 11:37:53
|
Hi, another question. There's two difference between rlib_add_query_pointer_as() and rlib_add_query_as(): - The "sql" parameter string is strdup()ed by rlib_add_query_as() but not by rlib_add_query_pointer_as(). I guess it's intentional, that's why there's a distinction at all. - rlib_add_query_as() returns an error if "input_source" was not yet defined as an input source by one of the rlib_add_datasource_*() calls. But rlib_add_query_pointer_as() doesn't. And there's not a single C source under libsrc where this is rechecked later. This seems to be a bug, fix is attached. Best regards, Zoltán Böszörményi Zoltan Boszormenyi írta: > Hi, > > I was reviewing the function reference and crosschecking it > with the source. Some notes: > I think the source mixes up bitwise AND and logical AND. > * && works on expressions of the same type: > NUMBER && NUMBER (and performs logical AND) > STRING && STRING returns TRUE if both STRINGs are non-NULL > DATE && DATE would return TRUE always by intention > but there's a missing "return TRUE;" in the code, causing > double freeing. > Fix is attached. > * & works on NUMBERs only and performs bitwise or binary AND > but the naming in the source labels it as "logical AND" > I don't intend to change the naming in the source but it's good to know. > The wiki documentation lacked bitwise AND up to now. > Also, some others are also missing: > * N^M, a.k.a. power(N, M) > * chgdateof() > * dtosf() > > Best regards, > Zoltán Böszörményi > > Bob Doan írta: > >> Hi Zoltan, >> >> All patches have been applied. >> >> We're ready for the next round :) >> >> - Bob >> >> On Mon, 2008-08-11 at 15:30 +0200, Zoltan Boszormenyi wrote: >> >> >>> Hi, >>> >>> here are the patches that make RLIB compile on Windows. >>> The patches are split up in a way to contain only one fix. >>> >>> There's one thing that's missing though, namely PHP. >>> PHP on Windows absolutely requires MSVC, the PHP/Win >>> distribution(s) doesn't even contain php.h, etc., only the stub >>> library called php5ts.lib to make it possible to link with php5ts.dll. >>> Making a Zend extension under Windows starts with compiling >>> PHP from source, it seems... >>> >>> Best regards, >>> Zoltán Böszörményi >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ Rlib-devel mailing list Rli...@li... https://lists.sourceforge.net/lists/listinfo/rlib-devel >>> >>> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Rlib-devel mailing list >> Rli...@li... >> https://lists.sourceforge.net/lists/listinfo/rlib-devel >> >> > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Rlib-devel mailing list > Rli...@li... > https://lists.sourceforge.net/lists/listinfo/rlib-devel |