Re: [bug] keyword commit being accepted for column name

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [bug] keyword commit being accepted for column name
Дата
Msg-id CAKFQuwYhaCTVc1AASYq1N4HhrYCtwraLyyxoA4YU6-E3EqNfuw@mail.gmail.com
обсуждение исходный текст
Ответ на [bug] keyword commit being accepted for column name  (Vinícius Abrahão <vinnix.bsd@gmail.com>)
Список pgsql-bugs
On Saturday, May 31, 2025, Vinícius Abrahão <vinnix.bsd@gmail.com> wrote:
postgres=# create table postgres_git_repository(commit text, first_line_commit text);
CREATE TABLE
postgres=# create table postgres_git_repository2("commit" text, first_line_commit text);
CREATE TABLE
postgres=# create table postgres_git_repository3("COMMIT" text, first_line_commit text);
CREATE TABLE


Only the first of those is even valid here, if you double-quote an identifier it never is even possibly considered a keyword that could conflict.  As for the first one, our reserved words specification doesn’t claim commit as one of them.  Bugs need to things where we claim one thing and implement something different.  Not relative to some external specification.

David J.

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