Received: from bologna.nettuno.it (bologna.nettuno.it [193.43.2.1]) by hub.org (8.9.2/8.9.1) with ESMTP id IAA04145 for ; Wed, 3 Mar 1999 08:22:20 -0500 (EST) (envelope-from sferac@bo.nettuno.it) Received: from proxy.sferacarta.com (mail@sfcabop1.nettuno.it [193.207.10.213]) by bologna.nettuno.it (8.8.6/8.8.6/NETTuno 3.1) with ESMTP id OAA00067; Wed, 3 Mar 1999 14:22:12 +0100 (MET) Received: from rosso.sferacarta.com (bo.nettuno.it) [10.20.30.5] by proxy.sferacarta.com with esmtp (Exim 2.05 #1 (Debian)) id 10ICQy-0001Cz-00; Wed, 3 Mar 1999 14:15:36 +0000 Message-ID: <36DD3669.3A62A57F@bo.nettuno.it> Date: Wed, 03 Mar 1999 14:17:30 +0100 From: "jose' soares" Organization: Sferacarta Software X-Mailer: Mozilla 4.5 [it] (Win95; I) X-Accept-Language: it MIME-Version: 1.0 To: Valerio Santinelli CC: "'pgsql-interfaces@postgreSQL.org'" , Michael Davis Subject: Re: [INTERFACES] Foreign Keys References: <93C04F1F5173D211A27900105AA8FCFC145219@lambic.prevuenet.com> <36DC61D6.6DF4E87D@insightdist.com> <36DD1FD2.11561615@mediacom.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Valerio Santinelli ha scritto: > Byron Nikolaidis wrote: > > > Michael Davis wrote: > > > > > Here is the psqlodbc.log file. The first time the form opens, it correctly > > > opens the first rentalorder. I immediately moved to the new record in > > > Access which opens a message box with an ODBC error (no description). I the > > > blank rental order looks okay but the rental order lines records all have > > > errors. Even if I move back to a valid record, the order lines will show > > > only errors. > > > > > The second problem is this: > > > > conn=153237224, query='SELECT "RentalOrders"."rentalorderlinesid" FROM "rentalorderlines" > > "RentalOrders" WHERE ("rentalorderid" = NULL ) ' > > ERROR from backend during send_query: 'ERROR: parser: parse error at or near "null"' > > STATEMENT ERROR: func=SC_execute, desc='', errnum=1, errmsg='Error while executing the query' > > > > Since postgres will not recognize the syntax (where 'col' = null)... it only recognizes > > "isnull". I was hoping someone would have added the ability for the parser to handle this at > > some point (Hey Dave, maybe you could contribute something here man :-). > > The second problem is affecting my system as well.. do you think that there's a way around it without waiting for someone to patch the PostgreSQL code ? > > -- > > > Valerio Santinelli a.k.a. TANiS > [tanis@mediacom.it]+:+[http://www.mediacom.it/~tanis] When I started to use Access97 with PostgreSQL I had this problem too and I made a change to ./src/backend/parser/gram.y to make Access recognize the syntax "column_name" = NULL and it works fine now. Here attached the patch to gram.y. Buona fortuna. -Jose'- "No other success in life can compensate for failure in the home" (David O. McKay)