[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
[sqr-users] Re: Single quote issue
- Subject: [sqr-users] Re: Single quote issue
- From: David Donnelly <Dave@isisbio.com>
- Date: Sat, 29 Oct 2005 07:56:17 -0700
- Delivery-date: Sat, 29 Oct 2005 09:58:19 -0500
- In-reply-to: <E1EVoW3-0003or-00@seldon.sqrug.org>
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
When I have this problem, I use a translate on all the input strings to
translate the quote character ($27) to the reverse quote character
($B4). They look nearly the same, but Oracle doesn't recognize the latter
as a quote. You'll also have to do it to data accepted for update before it
goes into the database.
This requires that you are using an appropriate 8-bit ASCII character set
in the database, which most Oracle users do. This may not work if you have
a character set for supporting an accented language; the B4 slot maybe used
for something else.
encode <180> into $revquote
let $newstring = translate($original,'''',$revquote)
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users