pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Davis <michael.davis@prevuenet.com>
To: 'pgsql-interfaces@postgreSQL.org' <pgsql-interfaces@postgreSQL.org>
Subject: RE: [INTERFACES] Foreign Keys
Date: Thu, 25 Feb 1999 16:46:44 -0600
Message-ID: <93C04F1F5173D211A27900105AA8FCFC145201@lambic.prevuenet.com> (raw)

The sql.log file is over 5M.  There are no references to foreign keys
anywhere in the log file.  I noticed the following:
	Orders         138:118	ENTER SQLExecDirect 
			HSTMT               0x09072230
			UCHAR *             0x040f10f0 [      -3] "SELECT
Config, nValue FROM MSysConf\ 0"
		SDWORD                    -3

This failed because my Postgres database does not have this table.  Any idea
what MsysConf, what it contains, or how to create it?  Could this have
anything to do with my Access subform problem?

Thanks, Michael

	-----Original Message-----
	From:	Byron Nikolaidis [SMTP:byronn@insightdist.com]
	Sent:	Thursday, February 25, 1999 2:12 PM
	To:	Michael Davis
	Cc:	'pgsql-interfaces@postgreSQL.org'
	Subject:	Re: [INTERFACES] Foreign Keys



	Michael Davis wrote:

	> I have created the following trigger on the parent/master table
(orders):
	>
	> CREATE TRIGGER Orderlines_fkey
	>     BEFORE DELETE OR UPDATE ON Orders FOR EACH ROW
	>     EXECUTE PROCEDURE check_foreign_key ();
	>
	> check_foreign_key() actually deletes rows from the orderlines
table when
	> every a row is deleted from orders.  This triggers works great.
Access,
	> however, is still not recognizing the foreign key relationship
between
	> orders and orderlines.  Any other suggestions?
	>
	> Thanks, Michael
	>

	Yeah, there is more we can try.  First of all, we need to verify
that Access
	is actually calling SQLForeignKeys.   Can you get a "trace" log of
the
	session?  This would be the "sql.log" file which contains all api
calls to
	odbc.  Make sure the file is clear beforehand.  Then run the test.
Quit
	Access, turn tracing off and there's your logfile.  You can send it
to me.

	It might also be helpful to have the commlog file (produced by the
	driver)...usually "psqlodbc.log".   It may have a process id number
appended
	to the filename so make sure you get the right one.

	Byron

	



view thread (24+ messages)  latest in thread

Message-ID: <93C04F1F5173D211A27900105AA8FCFC145201@lambic.prevuenet.com>
Permalink:  ../93C04F1F5173D211A27900105AA8FCFC145201@lambic.prevuenet.com/
Also on:    postgresql.org/message-id/93C04F1F5173D211A27900105AA8FCFC145201@lambic.prevuenet.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-interfaces@postgresql.org
  Cc: michael.davis@prevuenet.com
  Subject: Re: [INTERFACES] Foreign Keys
  In-Reply-To: <93C04F1F5173D211A27900105AA8FCFC145201@lambic.prevuenet.com>
  References: <93C04F1F5173D211A27900105AA8FCFC145201@lambic.prevuenet.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