Search Postgresql Archives

Re: Regular expression. How to disable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2005-04-20 at 13:05, David Gagnon wrote:
> Hi Scott,
> 
> 
> >I would generally scrub the input before it go to postgresql.  Basically
> >do a simple string_replace type function that replaces anything that
> >ISN'T alphanum with nothing.
> >
> >  
> >
> If I change the original string the user may not get what he expects as 
> result.  abc[d]  is not the samething than abcd...  am I right?

Then replace it with properly escaped strings:

abc[d] becomes abc\[d\]

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux