Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

bug with RE


  • From: Тучков Михаил <mtuchkov(at)ntrlab(dot)ru>
  • To: pgsql-bugs(at)postgresql(dot)org
  • Subject: bug with RE
  • Date: Thu, 26 Jul 2007 13:58:56 +0800
  • Message-id: <46A83820.5080506@ntrlab.ru> <text/plain>

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.



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group