Re: BUG #5839: pgAdmin makes bad query for creating a table when default value specified - Mailing list pgsql-bugs

From Dave Page
Subject Re: BUG #5839: pgAdmin makes bad query for creating a table when default value specified
Date
Msg-id AANLkTikAwSw0rqoY-jZOP2CJ4L=V_UGG1MZyhhbx-R49@mail.gmail.com
Whole thread Raw
In response to Re: BUG #5839: pgAdmin makes bad query for creating a table when default value specified  (John R Pierce <pierce@hogranch.com>)
List 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 by date:

Previous
From: John R Pierce
Date:
Subject: Re: BUG #5839: pgAdmin makes bad query for creating a table when default value specified
Next
From: Tim Uckun
Date:
Subject: Problems with adding a is not null to a query.