-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing 'commit' option in XML SQL statement does NOT work #44
Comments
@ngson2000 My network is blocked to the link you pointed out. But I searched '<options ' in the document source. I noticed all examples having ahead of . That is correct. Can you reference a piece of text from that webpage where it tells a wrong usage. BTW, I don't think that webpages will be maintained even if things are corrected in here. All will go Github. |
@jimobit The link points to the wiki I dumped in to the docs directory. The local text is https://github.com/IBM/xmlservice/blob/master/docs/wiki-dump/functions.txt#L1270-L1293 |
Reminds me I should work to get #40 merged |
Thanks @kadler |
So from what I gather, an options template is basically an object which gets instantiated. In order to use it, you must have already declared and instantiated it, so the order of the tags matters. From what I can tell, it doesn't matter the order of the attributes within the options tag, however. It seems like options objects stick around between calls in stateful XMLSERVICE, so you can instantiate one once and re-use it on subsequent calls. For normal stateless XMLSERVICE, you wouldn't be able to do this though. This means you must also free the options object after you are done with it, just like other SQL objects. |
We should definitely work on documenting these restrictions and obligations better. |
Yes you are correct. Looking at the cacScanOpt(), 'options' cache is designed to be common to all other tags with 'options' elements. For stateless, the cache should also work before cache is cleared out when the call is ended. |
Hi All,
To set the transaction-isolation level to NO COMMIT in a XML SQL document, I created the following XML:
I got the error:
Member <...> not journaled to journal *N
. It looked like the optioncommit='none'
did not work.After doing lots of trying, the following XML worked for me:
I'd say there is a bug in parsing options in XML document and the developer guide http://yips.idevcloud.com/wiki/index.php/XMLService/XMLSERVICEQuick is not right.
The text was updated successfully, but these errors were encountered: