ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » difficulty replacing single quote with 2 of it

Post new topic  Reply to topic
 difficulty replacing single quote with 2 of it « View previous topic :: View next topic » 
Author Message
pcelari
PostPosted: Thu Feb 02, 2012 11:52 am    Post subject: difficulty replacing single quote with 2 of it Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

Hello,

in calling a stored procedure, one parameter is a string. But it may contain single quote '. To excape this for the stored procedure call, I need to insert another '. So I use the replace function to do this.

content of strParm: "Bob's Saloon". - the single quote fails stored procedure call.

set strParm=replace(strParm, ''', '''');

But it results in error for the next statement.

What should I do?

thanks a lot.
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Feb 03, 2012 2:29 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
But it results in error for the next statement

What should I do?
Read the error, and fix the problem that the error describes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » difficulty replacing single quote with 2 of it
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.