Escapestring not escaping ^

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Oct 31 18:08:59 CST 2005


On 10/31/05 5:47 PM, "jda" <jda at his.com> wrote:

> OK, I can do that (already done, in fact). But what exactly does
> .escapestring do now?

It escapes 

    single apostrophe        '

    and back slash          \


> If we have to manually escape every affected character, what purpose does it
> serve?

It prepare string for SQL query.
 
> I liked it when it did all the necessary escaping for us (if I wanted the user
> to do the escaping, I wouldn't call .escapestring, would I)?

Well, just only it seems I have understand source of problem in original
function. It have try escape fro RegEX AND SQL. This cause problems.

We have remove now REGEX escaping.

So MAY BE we instead can have other function

    s1 

    s2 = Valentina.EscapeForRegex( s1 )

    s3 = Valentina.EscapeString( s2 )




-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina-beta mailing list