X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D561B4761BC for ; Thu, 3 Apr 2003 09:23:25 -0500 (EST) Received: from hotmail.com (f60.law11.hotmail.com [64.4.17.60]) by postgresql.org (Postfix) with ESMTP id 0E212475ED4 for ; Thu, 3 Apr 2003 09:23:25 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 3 Apr 2003 06:23:28 -0800 Received: from 217.235.97.141 by lw11fd.law11.hotmail.msn.com with HTTP; Thu, 03 Apr 2003 14:23:27 GMT X-Originating-IP: [217.235.97.141] X-Originating-Email: [imdad_md@hotmail.com] From: "mohamed imdadullah" To: pgsql-sql@postgresql.org Cc: ch@rodos.fzk.de Subject: Re: Syntax problem! Date: Thu, 03 Apr 2003 14:23:27 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 03 Apr 2003 14:23:28.0859 (UTC) FILETIME=[98A8C2B0:01C2F9EC] X-Spam-Status: No, hits=-3.1 required=5.0 tests=BAYES_20 version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/34 X-Sequence-Number: 12735 Hi Christof, Thanx for the reply, I think i had put up the question pretty vauge. I didn't want to get the version of the database. I was just trying to specify an example of the call to the database and the error which i was getting. However, finally i managed to findout the error. Actually, the call to the database was from an application written in 'C'. The parameters used to access the database followed the old ODBC 1.0 standard and SYBASE had no problem understanding it but was promptly refused by postgres with the specified error! thanx again! ---------------------------------------------------------------------- Mohamed Imdadullah M.S student in Information & Communication Systems Technical University Hamburg-Harburg Hamburg, Germany Email: md.imdadullah@tuhh.de or imdad_md@hotmail.com ---------------------------------------------------------------------- ----Original Message Follows---- From: Christoph Haller To: pgsql-sql@postgresql.org CC: imdad_md@hotmail.com Subject: Re: [SQL] Syntax problem! Date: Thu, 03 Apr 2003 10:40:42 +0200 > > I am moving the database from sybase to postgresql.Iam having problem > replacing the following similar syntax from sybase to postgres sql could > anybody help me out? It doesnt seem to recognize the '?' operator though it > works fine in Sybase. > > select * from version where version_nr =?; > ERROR: Unable to identify a postfix operator '=?' for type 'integer' > You may need to add parentheses or an explicit cast > > I am sure there must be some replacement in postgres, i havent been able to > find it though. I would appreciate if anybody could help me out. > There is no such table. Alternatively use SELECT version() ; I am not familiar with sybase. What does the '?' operator do? What are you achieving by this statement? Regards, Christoph _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail