| From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
|---|---|
| To: | Manuel Cano Muñoz <manuel(at)adai-it(dot)com> |
| Cc: | Lista de PostgreSQL <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Referential integrity doesn't work? |
| Date: | 2002-08-01 18:42:38 |
| Message-ID: | 20020801113816.K30534-100000@megazone23.bigpanda.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 1 Aug 2002, Manuel Cano [ISO-8859-1] Muoz wrote:
> liman(at)linux:~/proyectos/cange> psql prueba
> Welcome to psql, the PostgreSQL interactive terminal.
>
> Type: \copyright for distribution terms
> \h for help with SQL commands
> \? for help on internal slash commands
> \g or terminate with semicolon to execute query
> \q to quit
>
> prueba=# select * from conceptos;
> id | id_tabla1 | descripcion | borrado
> ----+-----------+-----------------------------+---------
> 0 | | Este es el primer registro | f
> 1 | | Este es el segundo registro | f
> 2 | | Este es el tercer registro | f
> (3 rows)
It looks to me that it's either treating id_tabla1 as
NULL (which passes the constraint) or 0 (which passes the
constraint). What version are you using?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hannu Krosing | 2002-08-01 18:50:36 | Re: getpid() function |
| Previous Message | Bruce Momjian | 2002-08-01 17:42:47 | Re: getpid() function |