List:Internals« Previous MessageNext Message »
From:Oliver Block Date:January 23 2006 7:03pm
Subject:problem with argument
View as plain text  
Hello,

I'd like to report the following problem with user defined functions:

When I implement char *xxx(...) (user defined function) and call

SELECT xxx('\b(\w+)\b');

args->args[0] does hold '^H(\w+)^H'. So there must have been occurred some
substitution!?
Otherwise args->args[0] would hold '\b(\w+)\b', wouldn't it?

What exactly did happen? 
Does the substitution depend on the character set of the database?
Is there a predictable way for me to re-substitute, if this is no bug? 

Or to summarize my questions: How do I call

SELECT xxx('\b(\w+)\b');

and get that to

args->args[0]

???

I appreciate your help.

bye,

Oliver Block

P.S. When I substitute \w with [a-zA-Z_0-9] mysql looses the connection.

Schnell und einfach ohne Anschlusswechsel zur Lycos DSL Flatrate wechseln und 3 Monate
kostenlos ab effektiven 5,21 EUR pro Monat im ersten Jahr surfen.
http://www.lycos.de/startseite/online/dsl/index.html?prod=DSL&trackingID=email_footertxt
Thread
problem with argumentOliver Block23 Jan
  • Re: problem with argumentSGreen23 Jan