- Mailing list pgsql-bugs

From Ana Claudia
Subject
Date
Msg-id 25CCC6566D01D411885B00A024559FB7011FE03F@EXCHANGE_GERAL
Whole thread Raw
Responses Re:
Re:
List pgsql-bugs
Hello,

Usually, I use Oracle for develop database application. However, I
change my computer to Linux system (Mandrake 8) and I decide change database
to Postgresql.
In Oracle when I create a table where a colum is a char(n) or varchar(n), if
I try to insert in this table value bigger than n , I get an error. That
doesn't happen in Postgresql, if I try to insert a value bigger than n, it's
accept because trunk the value. I don't want that, if the value is bigger I
want an error. I created a check constraint with the function [char_length
(parameter) < (n+1)] but still not working. Can you help me to resolve this
problem? The version of Postgresql that I have is 7.1.2.

Best Regards,
Cláudia

Portugal

pgsql-bugs by date:

Previous
From: Hans-Juergen Schoenig
Date:
Subject: Re: Vacuums and bad process status
Next
From: srinivas
Date:
Subject: is there any substitution for cursors