[XQZone General] Problem in Setting Xquery Variable Values

Sandesh Pai meetpai at gmail.com
Fri Dec 9 07:03:49 PST 2005


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



More information about the General mailing list