Re: BIN()

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Tino Wildenhain <tino(at)wildenhain(dot)de>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: BIN()
Date: 2005-11-30 07:03:11
Message-ID: 20051130070311.GA73957@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Nov 30, 2005 at 07:42:36AM +0100, Tino Wildenhain wrote:
> In python, I usually go like this:

In Ruby (and therefore in PL/Ruby) you could do this:

10.to_s(2)
=> "1010"

10.to_s(16)
=> "a"

--
Michael Fuhr

In response to

  • Re: BIN() at 2005-11-30 06:42:36 from Tino Wildenhain

Responses

  • Re: BIN() at 2005-11-30 07:16:18 from Tino Wildenhain

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-11-30 07:05:41 Re: slow IN() clause for many cases
Previous Message Tino Wildenhain 2005-11-30 06:42:36 Re: BIN()