Search Postgresql Archives

Re: Is there a way to return "true"/"false" string for boolean type?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 7, 2014 at 10:11 AM, ChoonSoo Park <luispark@xxxxxxxxx> wrote:
Hello Gurus,

I have several tables with lots of boolean columns.
When I run select query for the tables, I always get 't' or 'f' for boolean types.

Is there a way to return 'true' or 'false' string for boolean type except using CASE WHEN ... clause?
I mean global postgres configuration setting to return 'true'/'false' instead of t/f.

Question for others..

hstore(record) doesn't seem to cast the rows to text using the normal text cast, right? Why is that? 

If I have a table with a boolean column and I call hstore(table), I see 't', not 'true'. 

But true::text is 'true' and false::text is 'false'. 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux