Re: [BUGS] BUG #2395: Can't get right type oid by PQftype.

2006-04-16 Thread 姜维
Tom Lane 写道: > > Yeah, this is considered a feature not a bug. In fact the original > > implementation just returned the domain's OID, and that was objected > > to because most client programs wouldn't recognize it. > > > > > How to disable this feature ? ---(end

Re: [BUGS] BUG #2395: Can't get right type oid by PQftype.

2006-04-15 Thread Tom Lane
Volkan YAZICI <[EMAIL PROTECTED]> writes: > On Apr 14 06:30, wangshj wrote: >> In my database,the type oid of testdomainoid is 16385. But PQftype return 23 >> for testdomainoid's type oid. > PQftype() returns the OID of the actual _type_ used in the domain. > Therefore, you get 23, OID of the int4

Re: [BUGS] BUG #2395: Can't get right type oid by PQftype.

2006-04-15 Thread Volkan YAZICI
On Apr 14 06:30, wangshj wrote: > In my database,the type oid of testdomainoid is 16385. But PQftype return 23 > for testdomainoid's type oid. PQftype() returns the OID of the actual _type_ used in the domain. Therefore, you get 23, OID of the int4/int type, in the above query. > How could I get

[BUGS] BUG #2395: Can't get right type oid by PQftype.

2006-04-15 Thread wangshj
The following bug has been logged online: Bug reference: 2395 Logged by: wangshj Email address: [EMAIL PROTECTED] PostgreSQL version: 8.1.3 Operating system: CentOS release 4.3 (Final) Description:Can't get right type oid by PQftype. Details: I create a domain type