simple problem - Mailing list pgsql-sql

From Daniel Ordobas Bortolas
Subject simple problem
Date
Msg-id Pine.A41.4.05.10203050836490.34602-100000@onix.inf.ufsm.br
Whole thread Raw
List pgsql-sql
Hello!
I am having problems creating a table and i'd like some help.

-->create table loco( id_loco int4 not null, primary key (id_loco), check(
(select count(*) from loco ) < 3 ) );

I guess the statment is right, but when:
->insert into loco values(1);

the result is: ERROR:  ExecEvalExpr: unknown expression type 108

How can I fix this problem?

Thanks.



pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: in-date news items
Next
From: Ismail Bouabdallah
Date:
Subject: function error: ERROR:  fmgr_info: function 56664:cache lookup failed