Re: [BUGS] BUG #2390: check constraint

2006-04-13 Thread Stephan Szabo
On Thu, 13 Apr 2006, Tom Lane wrote: > Stephan Szabo <[EMAIL PROTECTED]> writes: > > On Wed, 12 Apr 2006, Andreas Kretschmer wrote: > >> i want to add a check constraint like: > >> create table foo (i char(7) CHECK (i ~ '^[0-9]{6,7}$')); > >> > >> i doesn't work, but if works, if i change the typ

Re: [BUGS] BUG #2390: check constraint

2006-04-13 Thread Tom Lane
Stephan Szabo <[EMAIL PROTECTED]> writes: > On Wed, 12 Apr 2006, Andreas Kretschmer wrote: >> i want to add a check constraint like: >> create table foo (i char(7) CHECK (i ~ '^[0-9]{6,7}$')); >> >> i doesn't work, but if works, if i change the type for i to varchar(7). > Well, the regex doesn't

Re: [BUGS] BUG #2390: check constraint

2006-04-13 Thread Stephan Szabo
On Wed, 12 Apr 2006, Andreas Kretschmer wrote: > The following bug has been logged online: > > Bug reference: 2390 > Logged by: Andreas Kretschmer > Email address: [EMAIL PROTECTED] > PostgreSQL version: 8.1.3 > Operating system: Debian Linux > Description:check const