#3 XUpdate conflict with empty check

closed
nobody
None
5
2006-06-08
2006-05-03
Anonymous
No

I have my version of query-exist working now. I have
fixed the code in the beginning of the xquery function
in exist.php

I have changed the code between the curl-try-brackets
to:
//$queryBase64 = base64_encode($query);
//$queryResponse = $this->_soapClient->xquery($this-
>_session, $queryBase64);
$parameters = array('sessionId' => $this-
>_session , 'xquery' => $query );
$queryResponse = $this->soapCall('xquery',
$parameters);

As i read about it in a fixed bug. Note the $query
instead of $queryBase64.

Another thing I would like to notice to you, is that
XUpdate queries are supported, but when executed, the
error is fired "No data". This is a perfect check for
XQuery's but it should make difference between Xupdate
and Xquery.

Great script though! Thanks!

Discussion

  • Logged In: YES
    user_id=1239048

    Thanks for the comments.
    Version 0.4 already checks PHP version (>= 5.1 or not) to
    create the $query variable and base 64 encoding when needed.

    Oscar.

     
    • status: open --> closed