Re: BUG #5839: pgAdmin makes bad query for creating a table when default value specified

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: BUG #5839: pgAdmin makes bad query for creating a table when default value specified
Дата
Msg-id AANLkTikAwSw0rqoY-jZOP2CJ4L=V_UGG1MZyhhbx-R49@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #5839: pgAdmin makes bad query for creating a table when default value specified  (John R Pierce <pierce@hogranch.com>)
Список pgsql-bugs
On Sat, Jan 15, 2011 at 4:36 AM, John R Pierce <pierce@hogranch.com> wrote:
> On 01/14/11 8:12 PM, Aren Cambre wrote:
>>
>> This came from pgAdmin's *Default value* field. This field is supposed to
>> accept anything other than a string?
>
> default value can be any valid expression

Exactly. pgAdmin doesn't have any way to know whether what you've
entered is a plain string or an expression of some kind, so it leaves
it to you to provide the quoting in this case.


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

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