bug with RE

From: Тучков Михаил <mtuchkov(at)ntrlab(dot)ru>
To: pgsql-bugs(at)postgresql(dot)org
Subject: bug with RE
Date: 2007-07-26 05:58:56
Message-ID: 46A83820.5080506@ntrlab.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Please, help me!
My code:
"IF char_length(substring(str from '^[a-zA-Z]*://'))=0 THEN
str:= 'http://'||str;
END IF;"

If str= http://www.msn.com then nothing happen
(all is OK), but if str= just www.msn.com then nothing happen too!

Why?

Then I experimen with that:
I change '=' to '<>'
results:
str=http://www.msn.com -> http://http://www.msn.com
str=www.msn.com -> http://www.msn.com

Thank you.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message sreenair 2007-07-26 06:01:23 BUG #3488: exporting data
Previous Message Mikhail 2007-07-26 05:53:54 BUG #3487: regular exp