Update of /cvsroot/monetdb/pathfinder/modules/pftijah
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1424/modules/pftijah
Modified Files:
Tag: XQuery_0-16
serialize_pftijah.mx serialize_pftijah_options.mx
Log Message:
Fix of bug [ 1644610 ] Conflict between normal query and XRPC query
To print the XRPC response message, we need the module NS and the name
of called method. Previously, we search for these two values in
'shredBAT'. This is error prone, because (i) we expect shredBAT to be
in the container 1, which is not always true and (ii) shredBAT is not
always added, because of the reuse of MIL tree.
Solution: store these two value explicitly in struct xquery_client.
Changes:
- struct xquery_client get two new variable 'moduleNS' and 'method'
- signature of xquery_print_result_loop is changed, added two new
parameters.
- all calls to the MIL Command print_result have been adapted.
- added two new tests:
conflict_normal_xrpc_queries_nx.SF-1644610: first a normal query with
a function call, then an XRPC query with call to the same function
conflict_normal_xrpc_queries_xn.SF-1644610: first an XRPC query with
a function call, then a normal query with call to the same function
Index: serialize_pftijah.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/serialize_pftijah.mx,v
retrieving revision 1.36.2.1
retrieving revision 1.36.2.2
diff -u -d -r1.36.2.1 -r1.36.2.2
--- serialize_pftijah.mx 5 Feb 2007 08:05:08 -0000 1.36.2.1
+++ serialize_pftijah.mx 8 Feb 2007 18:15:24 -0000 1.36.2.2
@@ -811,11 +811,14 @@
* Default driver initialization function
*/
static bool
-pftijah_init(XqueryCtx* ctx, char* args, char* restag, char* resprefix) {
+pftijah_init(XqueryCtx* ctx, char* args, char* restag, char* resprefix, char*
module, char* method) {
(void) ctx;
(void) args;
(void) restag;
(void) resprefix;
+ (void) module;
+ (void) method;
+
ctx->driverWs = GLOBAL_TJCTX;
#ifdef TJ_TRACE
if ( TJ_TRACE )
stream_printf(GDKout,"C[%s]:pftijah_init()\n",GLOBAL_TJCTX->name);
Index: serialize_pftijah_options.mx
===================================================================
RCS file:
/cvsroot/monetdb/pathfinder/modules/pftijah/serialize_pftijah_options.mx,v
retrieving revision 1.11
retrieving revision 1.11.2.1
diff -u -d -r1.11 -r1.11.2.1
--- serialize_pftijah_options.mx 9 Jan 2007 15:44:39 -0000 1.11
+++ serialize_pftijah_options.mx 8 Feb 2007 18:15:24 -0000 1.11.2.1
@@ -64,10 +64,13 @@
* Definition of the structure containing the functions
*/
static bool
-pftijah_options_init(XqueryCtx* ctx, char* args, char *restag, char
*resprefix) {
+pftijah_options_init(XqueryCtx* ctx, char* args, char *restag, char
*resprefix, char* module, char* method) {
(void) args;
(void) restag;
(void) resprefix;
+ (void) module;
+ (void) method;
+
ctx->driverWs = GLOBAL_PTOS;
GLOBAL_PTOS->errorMessage = NULL;
#ifdef DEBUG
@@ -196,9 +199,11 @@
BATprintf(GDKout,strVAL);
#endif
int returnVal = xquery_print_result_DRIVER(
- "",
- &pftijah_optionsSerializeFun,
- "",
+ "",
+ NULL, /* module */
+ NULL, /* method */
+ &pftijah_optionsSerializeFun,
+ "",
ws,
1, /* niters, */
item, /* loop, */
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins