pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Calabrese <m2calabr@yahoo.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Error when accessing tables with deleted columns
Date: Wed, 29 Jan 2003 14:19:51 -0800 (PST)
Message-ID: <20030129221951.37439.qmail@web10703.mail.yahoo.com> (raw)
In-Reply-To: <03AF4E498C591348A42FC93DEA9661B8259B7B@mail.vale-housing.co.uk>

Thank you for the fast responce WOW.  I could not ask
for better. Sorry David I accidently sent the reponce
just to your, hopefully this will goto the list.
Here is what I am doing:
Running MS Access 97
Using ODBC dlls that I just got.
Linking tables into Access 97

Now I am getting the error:
Runtime error 3409
Invalid Field definition 'UNKNOWN' in definition of
index or relationship.

There is no error in the PSQL log, then end of it look
like:
PGAPI_Columns:
table='contacts',field_name='bsendemail',type=16,name='bool'
PGAPI_Columns:
table='contacts',field_name='vendcustid',type=1043,name='varchar'
PGAPI_Columns:
table='contacts',field_name='defaulttermid',type=23,name='int4'
PGAPI_Columns:
table='contacts',field_name='statreferral',type=700,name='float4'
PGAPI_Columns:
table='contacts',field_name='statpurchased',type=700,name='float4'
PGAPI_Columns:
table='contacts',field_name='statallbikepur',type=700,name='float4'
PGAPI_Columns:
table='contacts',field_name='statreferralpur',type=700,name='float4'
PGAPI_Columns:
table='contacts',field_name='statage',type=700,name='float4'
PGAPI_Columns:
table='contacts',field_name='statcurbikes',type=700,name='float4'
PGAPI_Columns:
table='contacts',field_name='statoverall',type=700,name='float4'
PGAPI_Columns:
table='contacts',field_name='brecfoldflyer',type=16,name='bool'
PGAPI_Columns:
table='contacts',field_name='donotuse',type=23,name='int4'
PGAPI_Columns:
table='contacts',field_name='associd',type=23,name='int4'
PGAPI_Columns:
table='contacts',field_name='uniqueid',type=1043,name='varchar'
PGAPI_Columns:
table='contacts',field_name='emailid',type=1043,name='varchar'
conn=87554308, query='select c.relname, i.indkey,
i.indisunique, i.indisclustered, a.amnam
e, c.relhasrules, n.nspname from pg_index i, pg_class
c, pg_class d, pg_am a, pg_namespace
 n where d.relname = 'contacts' and n.nspname =
'public' and n.oid = d.relnamespace and d.
oid = i.indrelid and i.indexrelid = c.oid and c.relam
= a.oid order by i.indisprimary desc
, i.indisunique, n.nspname, c.relname'
    [ fetched 13 rows ]
conn=87554308, PGAPI_Disconnect
conn=87535000, PGAPI_Disconnect
conn=87490680, PGAPI_Disconnect
conn=87509988, PGAPI_Disconnect

So the new dll did take out the delete column.  I
assume that if you do a drop column that it removes
the associated index. If not could I have an index
that still is trying to point to the deleted column?

Any suggestions?
--- Dave Page <dpage@vale-housing.co.uk> wrote:
> 
> 
> > -----Original Message-----
> > From: Michael Calabrese
> [mailto:m2calabr@yahoo.com] 
> > Sent: 29 January 2003 19:06
> > To: pgsql-odbc@postgresql.org
> > Subject: Re: [ODBC] Error when accessing tables
> with deleted columns 
> > 
> > 
> > I have discovered today that I have the same
> problem. 
> > I do not have MS C to compile the driver. Can
> someone
> > please compile for me so I can use/test the fix? 
> I
> > would be very gratefull as I need it to complete a
> > project that I am working on.  Just give me a url
> (or
> > ftp), if possible, if you can compile.
> 
> A recent build can be found at
> http://postgresql.social-housing.org/psqlodbc.zip -
> this just contains
> updated dlls.
> 
> I do not recommend you use this unless you
> specifically need the updated
> build (as Michael does).
> 
> Regards, Dave.
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



view thread (8+ messages)  latest in thread

Message-ID: <20030129221951.37439.qmail@web10703.mail.yahoo.com>
Permalink:  ../20030129221951.37439.qmail@web10703.mail.yahoo.com/
Also on:    postgresql.org/message-id/20030129221951.37439.qmail@web10703.mail.yahoo.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: m2calabr@yahoo.com
  Subject: Re: Error when accessing tables with deleted columns
  In-Reply-To: <20030129221951.37439.qmail@web10703.mail.yahoo.com>
  References: <03AF4E498C591348A42FC93DEA9661B8259B7B@mail.vale-housing.co.uk> <20030129221951.37439.qmail@web10703.mail.yahoo.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