Received: from bologna.nettuno.it (bologna.nettuno.it [193.43.2.1]) by hub.org (8.9.3/8.9.3) with ESMTP id JAA61764 for ; Tue, 4 May 1999 09:31:09 -0400 (EDT) (envelope-from jose@sferacarta.com) 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 PAA17421; Tue, 4 May 1999 15:22:13 +0200 (MDT) Received: from rosso.sferacarta.com (sferacarta.com) [10.20.30.5] by proxy.sferacarta.com with esmtp (Exim 2.05 #1 (Debian)) id 10egOY-00021T-00; Tue, 4 May 1999 14:42:02 +0000 Message-ID: <372EEB13.3318B1E8@sferacarta.com> Date: Tue, 04 May 1999 14:41:55 +0200 From: =?iso-8859-1?Q?Jos=E9?= Soares X-Mailer: Mozilla 4.5 [it] (Win95; I) X-Accept-Language: it MIME-Version: 1.0 To: JT Kirkpatrick , hackers Subject: Re: [INTERFACES] error message References: <01BE956D.B317AE00.jt-kirkpatrick@mpsllc.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit JT Kirkpatrick ha scritto: > hi, i'm using access97 linked to postgres(6.4.2) tables through the new > v.6.4 odbc. i can open a form, it shows me data for an initial record, and > then bombs. here is the message in the log file -- i can't figure out why > it is bombing. does anyone have a clue?? do those "-" or "/" in various > "vinvnum" fields cause problems?? it shows valid data first, waits for a > second, and then bombs! > I had a similar error when I tried to order retrieved data by a field not in the table or a calculated field. Seems that Access request an order by a field with an unknown type. I can emulate a similar message as: select 'AAAAAA' union select 'ZZZZZZ' order by 1 asc; ERROR: Unable to identify a binary operator '>' for types unknown and unknown select 'aaaaaa' union select 'zzzzzz' order by 1; ERROR: Unable to identify a binary operator '<' for types unknown and unknown May be we need a default for UNKNOWN types (what do you think Thomas, if we make unknown type = text type?) Any way. Try these functions: create function unknown_lt(unknown,unknown) returns bool as 'declare i1 text; i2 text; begin i1:= $1; i2:= $2; return (i1 < i2); end; ' language 'plpgsql'; CREATE create operator < ( leftarg=unknown, rightarg=unknown, procedure=unknown_lt, commutator='<', negator='>=', restrict=eqsel, join=eqjoinsel ); CREATE create function unknown_gt(unknown,unknown) returns bool as 'declare i1 text; i2 text; begin i1:= $1; i2:= $2; return (i1 > i2); end; ' language 'plpgsql'; CREATE create operator > ( leftarg=unknown, rightarg=unknown, procedure=unknown_gt, commutator='>', negator='<=', restrict=eqsel, join=eqjoinsel ); CREATE select 'AAAAAA' union select 'ZZZZZZ' order by 1 asc; ?column? -------- AAAAAA ZZZZZZ (2 rows) select 'aaaaaa' union select 'zzzzzz' order by 1 desc; ?column? -------- zzzzzz aaaaaa (2 rows) EOF ______________________________________________________________ PostgreSQL 6.5.0 on i586-pc-linux-gnu, compiled by gcc 2.7.2.3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jose'