Received: from p2272.nsk.ne.jp (p2272.nsk.ne.jp [210.145.18.145]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0IMcHV72485; Fri, 18 Jan 2002 17:38:17 -0500 (EST) (envelope-from Inoue@tpf.co.jp) Received: from mcadnote1 (ppm110.noc.fukui.nsk.ne.jp [61.198.95.10]) by p2272.nsk.ne.jp (8.9.3/3.7W-20000722) with SMTP id HAA01978; Sat, 19 Jan 2002 07:37:38 +0900 (JST) From: "Hiroshi Inoue" To: Cc: "pgsql-odbc" , Subject: Re: odbc error Date: Sat, 19 Jan 2002 07:37:40 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: Importance: Normal X-Archive-Number: 200201/116 X-Sequence-Number: 2974 > -----Original Message----- > From: Samuele Brignoli > > When trying to execute this : > > select select DOC_MAST.MVNUMREG,DOC_MAST.MVDATREG from TESTDOC_MAST > DOC_MAST where DOC_MAST.MVNUMDOC = 57 AND DOC_MAST.MVSERIAL <> > '0000000343' > AND DOC_MAST.MVALFDOC = ' ' AND EXTRACT(YEAR FROM DOC_MAST.MVDATDOC) = > EXTRACT(YEAR FROM {d '2001-11-26'}) AND DOC_MAST.MVPRD = 'DV' AND > DOC_MAST.MVANNDOC = '2001' > > with psqlodbc 7.01.00.09, it sends me an error 'cause the type casting {d > '2001-11-26'} doesn't work. Are you getting the following error ? ERROR: Function 'date_part(unknown, unknown)' does not exist Unable to identify a function that satisfies the given argument types You may need to add explicit typecasts regards, Hiroshi Inoue