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 #2127: Regular Expression Limits Do Not Work



The following bug has been logged online:

Bug reference:      2127
Logged by:          Kyril Alyoshin
Email address:      kyrill(at)technolog(dot)ca
PostgreSQL version: 8.0.3
Operating system:   Windows XP
Description:        Regular Expression Limits Do Not Work
Details: 

I am writing a regex to verify US zipcodes. The expression is very simple,
in a trigger function it looks like this:

IF (NEW.postal_code_name !~ '\\d{5}')
THEN
    RAISE EXCEPTION 'error';
END IF;

The bug description is:

If postal_code_name is > 5 digits, the expression would still evaluate to
false, and the error will not be raised. 

Please correct this.

Thank you.

Kyrill



Home | Main Index | Thread Index

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