db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Pendleton <bpendle...@amberpoint.com>
Subject Re: [jira] Updated: (DERBY-960) Client xa prepare returns XA_OK instead of XA_RDONLY for a read only transaction
Date Wed, 15 Feb 2006 00:13:36 GMT
> Here is a preliminary patch for this issue.

Hi Kathey,

The server change looks great.

I don't understand the client change, though:

              // read the reply to the prepare
              rc = netAgent.netConnectionReply_.readXaPrepare(conn_);
-            if ((callInfo.xaRetVal_ != XARETVAL_XAOK) &&
+            if ((callInfo.xaRetVal_ != XARETVAL_XAOK && callInfo.xaRetVal_ != XA_RDONLY)
&&
                      (callInfo.xaRetVal_ != XARETVAL_XARDONLY)) { // xaRetVal has possible
error, format it
                  callInfo.xaFunction_ = XAFUNC_PREPARE;
                  rc = xaRetValErrorAccumSQL(callInfo, rc);

What is the difference between XARETVAL_XARDONLY and XA_RDONLY?

thanks,

bryan




Mime
View raw message