pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Timothy Reed <tareed@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: MS Access 2000 w/ PGSQL 8.0.x
Date: Fri, 19 Aug 2005 18:13:42 -0400
Message-ID: <dc53e530050819151357b5be95@mail.gmail.com> (raw)

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 cannot
convert from boolean to char.  If I do not use bools as chars then I
get  "cache lookup failed for function 0"

I have followed what the tech docs have recommended to do with adding
the new msaccessbool function and = 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" = 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



view thread (5+ messages)  latest in thread

Message-ID: <dc53e530050819151357b5be95@mail.gmail.com>
Permalink:  ../dc53e530050819151357b5be95@mail.gmail.com/
Also on:    postgresql.org/message-id/dc53e530050819151357b5be95@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: tareed@gmail.com
  Subject: Re: MS Access 2000 w/ PGSQL 8.0.x
  In-Reply-To: <dc53e530050819151357b5be95@mail.gmail.com>
  References: <dc53e530050819151357b5be95@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox