X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0CEA4D7CD7 for ; Fri, 26 Aug 2005 18:02:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90625-07 for ; Fri, 26 Aug 2005 21:02:29 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by svr1.postgresql.org (Postfix) with ESMTP id BB903D7CC6 for ; Fri, 26 Aug 2005 18:02:27 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 55so227084wri for ; Fri, 26 Aug 2005 14:02:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SNnl50phvRSCQyKIkUcYuysmbkvteM+9dtD+BrEGfk49edgtqRD3b7WHW96LRiVa41WJP5lY4KH13AUWIgzAKV6NPptMpk++rTtZUtlIEw+r9bVE7PMtjtTo2kwzkI+LrMSNqpqEK8xjY9y8h8fH+X6ANuKpJIJYdUn7b3ECPwU= Received: by 10.54.82.19 with SMTP id f19mr3849693wrb; Fri, 26 Aug 2005 14:02:30 -0700 (PDT) Received: by 10.54.78.1 with HTTP; Fri, 26 Aug 2005 14:02:30 -0700 (PDT) Message-ID: Date: Fri, 26 Aug 2005 17:02:30 -0400 From: Timothy Reed To: Jeff Eckermann Subject: Re: MS Access 2000 w/ PGSQL 8.0.x Cc: pgsql-odbc@postgresql.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 required=5 tests=[RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200508/213 X-Sequence-Number: 5852 I have a solution!=20 Problem #1: The table I was trying to delete from did not have a primary key defined! Add primary key fixed that. Problem #2: THe "cache lookup failed" comes from if a form has a hardcoded SQL statement in it that is looking where a boolean is true (SELECT * FROM WHERE ;). That is valid in Access, but does not seem to fly to well between the ODBC driver and Postgres. Resolutions: Add primary keys (which should have been there anyway).=20 Check all forms to see if there is an SQL statement in the RecordSource property. I do not have "Bools as Char' checked and everything (for now) seems to be running fine. Thanks for the help! Tim On 8/23/05, Jeff Eckermann wrote: > "Timothy Reed" wrote in message > news:dc53e53005082204126f08654f@mail.gmail.com... > > Yes I always relink the tables after an ODBC change (found that one > > out the hardway). > > > > If the driver is configured to use Bools as Chars they show as Text. > > > > if it is configure to NOT use Bools as Chars they show as Yes/No > > > > I am using Jet for the time being, just trying to get the application > > to work as-is for now. >=20 > In principle, if your query references the values that are shown in your > Access table, you should have no problem. The "cache lookup failed" erro= r > is still mysterious. >=20 > > > > On 8/22/05, Jeff Eckermann wrote: > >> "Timothy Reed" wrote in message > >> news:dc53e530050819151357b5be95@mail.gmail.com... > >> >I am having some issues when trying to query for booleans from Access > >> > to Postgres 8.0.x. If I change to use Bools as Chars then I am > >> > unable to delete from a table with a boolean in it, as postgres cann= ot > >> > convert from boolean to char. If I do not use bools as chars then I > >> > get "cache lookup failed for function 0" > >> > >> When you made the change, did you relink the table(s) affected? When = you > >> do, what datatype does Access show for that column? > >> > >> What query are you using to do the delete? Is it a Jet or passthrough > >> query? > >> > >> > > >> > I have followed what the tech docs have recommended to do with addin= g > >> > the new msaccessbool function and =3D operator > >> > (http://techdocs.postgresql.org/v2/Guides/Using%20Microsoft%20Access= %20with%20PostgreSQL/view#55) > >> > > >> > But to no avail! > >> > > >> > Any help would be greatly appreciated. > >> > > >> > > >> > ODBC Driver settings: > >> > Disable Genetic Optimizer: YES > >> > KSQO: YES > >> > Recognize Unique Indexes: YES > >> > Declare/Fetch : NO > >> > Parse Statements: NO > >> > Cancel As FreeStmt: NO > >> > Unknown Sizes: Max > >> > Text as LongVarChar: YES > >> > Unknows as LongVarChar: NO > >> > Bools as Char : NO > >> > Read Only: NO > >> > Show System Tables: NO > >> > LF <-> CR/LF: YES > >> > Updatable Cursors: NO > >> > bytea as LO: NO > >> > Row Versioning: NO > >> > Disallow Premature: NO > >> > True as -1: YES > >> > Server side prepare: NO > >> > > >> > > >> > Table Stucture: > >> > Column Type > >> > Employee ID integer > >> > First Name text > >> > Last Name text > >> > Clocker boolean > >> > Labor Type ID bigint > >> > PC Handle text > >> > On Payroll boolean > >> > Address 1 text > >> > Address 2 text > >> > City text > >> > State text > >> > Zip Code text > >> > Hire Date timestamp without time zone > >> > Pay Type text > >> > Status text > >> > Pay Rate Old money > >> > Social Security text > >> > Phone Number text > >> > Shift Start text > >> > Shift End text > >> > Sign Off boolean > >> > Hire Date Temp timestamp without time zone > >> > Stop Date Temp timestamp without time zone > >> > Stop Date timestamp without time zone > >> > Rehire Date timestamp without time zone > >> > Continuous Date timestamp without time zone > >> > Direct Labor boolean > >> > Agency boolean > >> > Active boolean > >> > Agency2 boolean > >> > Payroll ID bigint > >> > EMail text > >> > ADP Employee ID integer > >> > > >> > > >> > SQL STATEMENT: > >> > > >> > SELECT "public"."Employees"."Employee ID" FROM "public"."Employees" > >> > WHERE NOT ("Active" =3D 0) ORDER BY "public"."Employees"."Last Name= " > >> > ,"public"."Employees"."First Name"; > >> > > >> > > >> > RESULT: > >> > ERROR: cache lookup failed for function 0 > >> > > >> > > >> > TIA, > >> > > >> > -- > >> > -------- > >> > Timothy Reed > >> > > >> > tareed@gmail.com > >> > > >> > "I reject your reality, and substitue my own" - Adam Savage > >> > > >> > ---------------------------(end of > >> > broadcast)--------------------------- > >> > TIP 3: Have you checked our extensive FAQ? > >> > > >> > http://www.postgresql.org/docs/faq > >> > > >> > >> > >> > >> ---------------------------(end of broadcast)-------------------------= -- > >> TIP 3: Have you checked our extensive FAQ? > >> > >> http://www.postgresql.org/docs/faq > >> > > > > > > -- > > -------- > > Timothy Reed > > > > tareed@gmail.com > > > > "I reject your reality, and substitue my own" - Adam Savage > > > > ---------------------------(end of broadcast)--------------------------= - > > TIP 6: explain analyze is your friend > > >=20 >=20 >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend >=20 --=20 -------- Timothy Reed tareed@gmail.com "I reject your reality, and substitue my own" - Adam Savage