[XQZone General] Problem in Setting Xquery Variable Values
Jason Hunter
jhunter at marklogic.com
Fri Dec 9 09:16:41 PST 2005
Hi Sandesh,
It would help if you included the query and names. My blind guess is
that your variable is in a namespace, and you're not taking that into
account when assigning it by name. Namespaces are an intrinsic part of
names.
-jh-
Sandesh Pai wrote:
> Hi,
> I am using XDBC api's in our application.
> I have a xquery file which I read at runtime and get the content as string.
> and I do the follwing part
>
> xdbcStatement = connection.createStatement();
> XDBCXName varName = new XDBCXName(name1);
> xdbcStatement.setString(varName,variableValue1);
> varName = new XDBCXName(name2);
> xdbcStatement.setInteger(varName,variableValue2);
> XDBCResultSequence xdbcResult = xdbcStatement.executeQuery(query);
>
>
> But I get the exception saying
> Undefined variable name1
>
> I dont know what is the problem..please help me on this
> Regards
> meetpai at gmail.com
> _______________________________________________
> General mailing list
> General at xqzone.marklogic.com
> http://xqzone.com/mailman/listinfo/general
>
More information about the General
mailing list