Search Postgresql Archives

Re: ERROR: cannot cast type text to bit varying

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

 



> > I ended up writing a bunch of code to accomplish what I initially
> > thought would be just some casting and bitops on built-in types.

> I imagine you could have done something involving textout() and
> varbit_in(), like
> 
> alvherre=# select varbit_in(textout(translate('YYNY', 'YN', '10')), 123::oid, 32);
>  varbit_in 
> -----------
>  1101
> (1 fila)

Ah... This is more like it.  Thank you.

I'll explore this more tomorrow.  Are "varbit_in" and "textout"
documented?

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

[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