Re: PG12 change to DO UPDATE SET column references
От | Tom Lane |
---|---|
Тема | Re: PG12 change to DO UPDATE SET column references |
Дата | |
Msg-id | 3013697.1705773558@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: PG12 change to DO UPDATE SET column references (James Coleman <jtc331@gmail.com>) |
Ответы |
Re: PG12 change to DO UPDATE SET column references
|
Список | pgsql-hackers |
James Coleman <jtc331@gmail.com> writes: > I do wonder if it's plausible (and sufficiently easy) to improve the > error message here. "column 'foo' of relation 'foo'" makes one thing > that you've written foo.foo, (in my real-world case the error message > also cut off the sql past "foo.", and so I couldn't even tell if the > sql was just malformed). At the very least it'd be nice to have a HINT > here (perhaps just when the relation and column name match). > Before I look at where it is, Is such an improvement something we'd be > interested in? A HINT if the bogus column name (1) matches the relation name and (2) is field-qualified seems plausible to me. Then it's pretty likely to be a user misunderstanding about whether to write the relation name. regards, tom lane
В списке pgsql-hackers по дате отправления: