X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 0DAFED1E2B7 for ; Tue, 16 Mar 2004 13:36:58 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 66212-03 for ; Tue, 16 Mar 2004 09:36:56 -0400 (AST) Received: from marvin.harmless.hu (marvin.harmless.hu [195.70.51.173]) by svr1.postgresql.org (Postfix) with ESMTP id C504DD1E2CD for ; Tue, 16 Mar 2004 09:36:50 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by marvin.harmless.hu (Postfix) with ESMTP id 5D19010001297; Tue, 16 Mar 2004 14:36:46 +0100 (CET) Received: from marvin.harmless.hu ([127.0.0.1]) by localhost (marvin [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31565-02; Tue, 16 Mar 2004 14:36:46 +0100 (CET) Received: from marvin.harmless.hu (marvin.harmless.hu [195.70.51.173]) by marvin.harmless.hu (Postfix) with ESMTP id E5BE010001296; Tue, 16 Mar 2004 14:36:45 +0100 (CET) Date: Tue, 16 Mar 2004 14:36:45 +0100 (CET) From: Gergely Czuczy X-X-Sender: phoemix@localhost To: Jan Klostermann Cc: pgsql-interfaces@postgresql.org Subject: Re: DataType OID for PQexecParams-call in libpq In-Reply-To: <001601c40b39$1c7f9060$f564a8c0@BARCELONA> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at harmless.hu X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/13 X-Sequence-Number: 4792 hello please take a look at the documentation at http://www.postgresql.org/docs/7.4/static/libpq-exec.html at the point "PQftype", where it's said: " The OIDs of the built-in data types are defined in the file src/include/catalog/pg_type.h in the source tree." Bye, Gergely Czuczy mailto: phoemix@harmless.hu PGP: http://phoemix.harmless.hu/phoemix.pgp The point is, that geeks are not necessarily the outcasts society often believes they are. The fact is that society isn't cool enough to be included in our activities. On Tue, 16 Mar 2004, Jan Klostermann wrote: > Hello all! > > I would be very thankful, if you could help me out! > > To call the PQexecParams() function I need to provide a field with the > data types of the parameters as type OID. OID is a number, but which > numbers correspond to with datatype ? > Where are they documented? Or how can I find out about this data type > codes? > > I scanned trough almost the whole documentation but could not find > anything. The examples just skip the problem by using simple strings and > auto-detection. > > Any help would be very appreciated! Thanks in advance. > > Jan Klostermann > > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match >