Re: table name - TypeCreate error

Поиск
Список
Период
Сортировка
От Radu-Adrian Popescu
Тема Re: table name - TypeCreate error
Дата
Msg-id 1011879463.3343.51.camel@rpopescu
обсуждение исходный текст
Ответ на table name - TypeCreate error  ("Felipe Nievinski" <fnievinski@terra.com.br>)
Список pgsql-sql
On Thu, 2002-01-24 at 15:20, Felipe Nievinski wrote:
> Hi.
> 
> Please, I would like to know why I can't create a table with a name 
> equal of a type name.
> 
> For example, when a try this:
>     CREATE TABLE time (id int);
> I get the following error message:
>     ERROR:  TypeCreate: type time already defined
> 
> I would expect to be able to create a table with any name different 
> than others tables' name.
> 
> Thank you in advance,
> Felipe.
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

teamsheet=# CREATE TABLE "time" (id int);
ERROR:  type named time already exists
teamsheet=# CREATE TABLE "Time" (id int);
CREATE

:-)

-- 



Radu-Adrian Popescu
CSA, DBA, Programmer



В списке pgsql-sql по дате отправления:

Предыдущее
От: "Felipe Nievinski"
Дата:
Сообщение: table name - TypeCreate error
Следующее
От: Tom Lane
Дата:
Сообщение: Re: table name - TypeCreate error