From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Alexei A(dot)Romanenko" <A(dot)A(dot)Romanenko(at)inp(dot)nsk(dot)su> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: |
Date: | 2000-07-03 14:51:10 |
Message-ID: | 19284.962635870@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
"Alexei A.Romanenko" <A(dot)A(dot)Romanenko(at)inp(dot)nsk(dot)su> writes:
> It seems to me there is a problem with regular expressions.
> When i create table and try to insert some restriction for
> a fields, system accept it. Then, whem i insert something, which
> dont match to regexp, it inserted anyway or backwards.
No bug there. You've forgotten that a char(N) field value will be
space-padded to N characters. For variable-length strings you
ought to be using varchar(N) instead. If you really want to use
char(N), you can match with regexps like 'foo *$'.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Matías Giovannini | 2000-07-03 15:10:39 | Re: \d* won't work in 7.0.2? |
Previous Message | Tom Lane | 2000-07-03 14:39:37 | Re: \d* won't work in 7.0.2? |