Received: from u1.abs.net (root@u1.abs.net [207.114.0.131]) by hub.org (8.8.8/8.8.8) with ESMTP id JAA03020 for ; Fri, 18 Sep 1998 09:40:09 -0400 (EDT) (envelope-from byronn@insightdist.com) Received: from insightdist.com (root@localhost) by u1.abs.net (8.9.0/8.9.0) with UUCP id JAA29043 for pgsql-hackers@postgreSQL.org; Fri, 18 Sep 1998 09:32:39 -0400 (EDT) Received: from ceodev by insightdist.com (AIX 3.2/UCB 5.64/4.03) id AA13922; Fri, 18 Sep 1998 09:23:52 -0400 Received: from byronn by ceodev (AIX 4.1/UCB 5.64/4.03) id AA48344; Fri, 18 Sep 1998 09:23:51 -0400 Message-Id: <36025ECD.1DC5CE75@insightdist.com> Date: Fri, 18 Sep 1998 09:23:26 -0400 From: Byron Nikolaidis X-Mailer: Mozilla 4.05 [en] (Win95; I) Mime-Version: 1.0 To: "Billy G. Allie" Cc: pgsql-interfaces@postgreSQL.org, pgsql-hackers@postgreSQL.org Subject: Re: [HACKERS] Re: [INTERFACES] Odbc parser error References: <199809172337.TAA25897@bgalli.mug.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Billy G. Allie wrote: > How about subsitution any occurance of /=[ \t]*?/ with "IS NULL". This should > work for both select and update statements. > -- Yes, sure, it could be done, assuming I could get a regex library for VC++. But I think it would be more of a kludge than a solution. Even the current substitution of the ? with the parameter data is a kludge. The frontend shouldn't be rewriting the sql string to stick parameters in. The real point of the whole thing is that if the backend recognized parameters and there was a protocol for passing the data over, we would be able to do some cool things we have never been able to do. Not just passing NULL, but also passing larger parameter data without worrying about running into the upper limit of the statement string. It would also be easier to send binary data. And, assuming the protocol allowed it, you could retrieve information from the backend about a particular parameter, such as its precision, data type, nullablity, etc. And its not just ODBC that would benefit. JDBC has the same semantics. And I believe Embedded SQL does too. Byron