Re: ERROR CODE - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: ERROR CODE
Date
Msg-id Pine.LNX.4.21.0005011511410.389-100000@localhost.localdomain
Whole thread Raw
In response to ERROR CODE  (Ray Alba <ralba@dotsperinch.com>)
List pgsql-general
Ray Alba writes:

> create table patienttype (
> id INT DEFAULT nextval ('category_seq'),
> parent id INT DEFAULT '0',
  ^^^^^^^^^
The system interprets this as field name `parent', datatype `id'. You need
to double quote the field name if you want spaces in it.

> type varchar(50));
>
> Here is the error? What is that all about?
> ERROR:  Unable to locate type name 'id' in catalog

It means there is no datatype 'id'.

--
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden



pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pgsql DATE
Next
From: Peter Eisentraut
Date:
Subject: Re: referencial integrity constraint bug in version 7.0 beta 5