Skip site navigation (1) Skip section navigation (2)

Re: Inserting bit-type value into integer-type column

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org, "Riho Maisa" <riho(at)centrum(dot)ee>
Subject: Re: Inserting bit-type value into integer-type column
Date: 2006-08-29 13:03:17
Message-ID: 3209.1156856597@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Am Dienstag, 29. August 2006 10:32 schrieb Riho Maisa:
>> I cannot rewrite SQL INSERT because it's in compiled application.

> Either fix your application or patch the PostgreSQL server or stick with 7.2 
> (not recommended, because 7.2 is not maintained anymore).

The patch would be pretty easy though: just tweak the pg_cast entry for
bit to int casting so that it's "assignment" rather than "explicit".

			regards, tom lane

In response to

pgsql-admin by date

Next:From: Mr. DanDate: 2006-08-29 14:33:49
Subject: pgsql.v814 - BLCKSZ
Previous:From: Peter EisentrautDate: 2006-08-29 08:44:29
Subject: Re: Inserting bit-type value into integer-type column

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group