X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id F0E3D9DC835 for ; Tue, 27 Dec 2005 06:03:48 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 25505-09 for ; Tue, 27 Dec 2005 06:03:50 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by postgresql.org (Postfix) with ESMTP id 6E9F69DC81E for ; Tue, 27 Dec 2005 06:03:45 -0400 (AST) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 4.42) id 1ErBYj-000IvI-58 for pgsql-odbc@postgresql.org; Tue, 27 Dec 2005 09:55:57 +0000 Received: from 84.13.65.72 ([84.13.65.72]) by ratbert.vale-housing.co.uk ([192.168.1.106]) with Microsoft Exchange Server HTTP-DAV ; Tue, 27 Dec 2005 10:03:44 +0000 User-Agent: Microsoft-Entourage/11.2.1.051004 Date: Tue, 27 Dec 2005 10:03:43 +0000 Subject: Re: for psqlodbc developers: [ psqlodbc-Bugs-1000507 ] From: Dave Page To: Ludek Finstrle , Message-ID: Thread-Topic: [ODBC] for psqlodbc developers: [ psqlodbc-Bugs-1000507 ] MSSQL syntax Thread-Index: AcYKzNFvECig2nbAEdq26wARJHpWaA== In-Reply-To: <20051227091149.GA741@soptik.pzkagis.cz> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.317 required=5 tests=[AWL=0.064, RCVD_NUMERIC_HELO=1.253] X-Spam-Score: 1.317 X-Spam-Level: * X-Archive-Number: 200512/325 X-Sequence-Number: 6804 This would require fully parsing statements and would lead to an endless stream of similar requests for rewriting other quirky syntaxes IMHO. This is not something we can support. Regards, Dave On 27/12/05 9:11 am, "Ludek Finstrle" wrote: > I ask other developers: what's your opinion? > > I know the man may need it but I don't think we want it. We > have to support Oracle, Informix, MySQL, ... special commands than. > > I hope we don't need parse statements before execute them > in new development version so it could be slowdown in the future. > > Regards, > > Luf > >> Summary: MSSQL syntax >> >> Initial Comment: >> MSSQL have a command that Postgresql don't support: >> >> @@spid >> >> This command returns MSSQL connection pid. >> >> I've a application that uses this query. I can't change code, but >> i need that psqlodbc ignore this command. >> >> ---------------------------------------------------------------------- >> >>> Comment By: Ludek Finstrle (luf) >> Date: 2005-12-27 10:01 >> >> Message: >> I don't know if we want this behaviour. When you move to other DB >> do you think they will add support for this? >> >> I need to talk about it with other developers. I'm againist this >> kind of support. >> >> @@spid is whole command or is it located inside statements? >> >> If you're a little bit familiar with C you can hack it into psqlodbc >> code yourself (I think in PGAPI_Prepare and PGAPI_ExecDirect). >> >> ---------------------------------------------------------------------- >> >> Comment By: Nobody (None) >> Date: 2005-12-27 02:25 >> >> Message: >> can psqlodbc to transform all "@@xyz" syntax in: >> >> xyz() >> >> ????? > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend Regards, Dave