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 387169DC8E0 for ; Tue, 27 Dec 2005 05:11:56 -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 09410-04 for ; Tue, 27 Dec 2005 05:11:57 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id 8E1749DC81B for ; Tue, 27 Dec 2005 05:11:49 -0400 (AST) Received: (from luf@localhost) by smtp.pzkagis.cz (8.11.6/8.11.6) id jBR9BoV00765 for pgsql-odbc@postgresql.org; Tue, 27 Dec 2005 10:11:50 +0100 Date: Tue, 27 Dec 2005 10:11:50 +0100 From: Ludek Finstrle To: pgsql-odbc@postgresql.org Subject: for psqlodbc developers: [ psqlodbc-Bugs-1000507 ] MSSQL syntax (fwd) Message-ID: <20051227091149.GA741@soptik.pzkagis.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.053 required=5 tests=[AWL=0.053] X-Spam-Score: 0.053 X-Spam-Level: X-Archive-Number: 200512/324 X-Sequence-Number: 6803 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() > > ?????