|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ESQL feature |
« View previous topic :: View next topic » |
Author |
Message
|
ernest-ter.kuile |
Posted: Wed May 15, 2002 5:32 am Post subject: ESQL feature |
|
|
 Apprentice
Joined: 13 May 2002 Posts: 49 Location: KLM Holland
|
To my great surprise this little code snippet
Code: |
SET the_string = 'hello world' || '
';
|
actually adds a line feed to the string !
This is a Highly unusual way of programing, and is not described (that I can find) in the documentation.
In fact I didn't know (until I tried) if it added a carriage return, a line feed, or both. Neither do I know if changing the OS will not change the result (or even changing the editor I use to edit the code).
My question is :
is this a Bug ?
is this a feature ?
will somebody at IBM notice and remove this ?
Although it's very handy, it smells bad, and I wonder if I should use this in production code.
Can anybody comment on this ? |
|
Back to top |
|
 |
CodeCraft |
Posted: Fri May 17, 2002 11:01 am Post subject: |
|
|
Disciple
Joined: 05 Sep 2001 Posts: 195
|
I'm sure I posted a reply to this already but it seems to have not made it!
The answer, this is not so much a bug, but an oversight, by whomever coded the EUI, that it continues scanning whitespace and including it in the string even though it wraps onto a new line.
My opinion is that this is most likely to be fixed in some future release, so you SHOULD NOT exploit this 'feature' to solve any particular problem.
I'll bring this to the attention of the appropriate C/T in due course. |
|
Back to top |
|
 |
ernest-ter.kuile |
Posted: Mon May 20, 2002 11:51 pm Post subject: |
|
|
 Apprentice
Joined: 13 May 2002 Posts: 49 Location: KLM Holland
|
Right, so there still isn't an easy way to add a LF to string, without changing it to a BLOB first.
Ernest ter Kuile. |
|
Back to top |
|
 |
CodeCraft |
Posted: Sat May 25, 2002 12:12 am Post subject: |
|
|
Disciple
Joined: 05 Sep 2001 Posts: 195
|
I've a feeling I've done this before, long ago, by doing something like:
declare crlf character;
And assigning or casting to get the x'10' into the character field, and then appending the crlf string to the data in question. Unfortunately, when I'm on this board I don't actually have access to a WMQI installation! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|