Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 36C8E9FB949 for ; Mon, 12 Mar 2007 17:55:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 62639-01 for ; Mon, 12 Mar 2007 17:55:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from yucaipaco.com (yucaipaco.com [82.165.181.113]) by postgresql.org (Postfix) with ESMTP id 068899FB93E for ; Mon, 12 Mar 2007 17:55:45 -0300 (ADT) Received: (qmail 12205 invoked by uid 210); 12 Mar 2007 13:58:24 -0700 Received: from 10.23.112.225 by yucmail (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.88.2/1624. f-prot: 4.6.5/3.16.13. spamassassin: 3.1.3. perlscan: 1.25st. Clear:RC:1(10.23.112.225):. Processed in 0.290768 secs); 12 Mar 2007 20:58:24 -0000 Received: from unknown (HELO ?10.23.112.225?) (yucrelay@10.23.112.225) by yucaipaco.com with ESMTPA; 12 Mar 2007 13:58:23 -0700 Message-ID: <45F5BE06.8010102@yucaipaco.com> Date: Mon, 12 Mar 2007 13:54:30 -0700 From: David Gardner User-Agent: Thunderbird 1.5.0.10 (X11/20070305) MIME-Version: 1.0 To: Paul Lambert CC: pgsql-odbc@postgresql.org Subject: Re: Access violation - probably not the fault of Postgres References: <45EF749F.5030107@autoledgers.com.au> <45F04B57.9010401@yucaipaco.com> <45F08759.7010207@autoledgers.com.au> <45F4A712.8090105@autoledgers.com.au> In-Reply-To: <45F4A712.8090105@autoledgers.com.au> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/77 X-Sequence-Number: 8755 Paul, Some questions come to mind. 1) Do these errors appear to be coming from the PG server, the odbc driver, VB or DAO? 2) When you manually create the data, what are you using? 3) Have you tried replacing the Recordset.AddNew() function with the database object's .execute() function? What I am basicly asking is, is it possible to change the load_xxx_to_db() subroutine to return a SQL query string. 4) Could you turn on the CommLog option in the ODBC driver, and send that log to the mailing list along with your current VB logs? David Paul Lambert wrote: > Paul Lambert wrote: >> David Gardner wrote: >>> Could you post the code in question? How are you initializing your >>> recordset object? Have you tried feeding the database object an >>> insert statement via the execute() function? >>> >>> >> > > A few more case examples to go with the previously posted code... > > > Record does not exist in the database, the following is therefore trying > to add it. > > I then manually added an empty record with the 5 primary key fields > having the same value as > what my program has been trying to add and then piped the data into my > program to try > again. > > Success! > > Would this be some sort of permissions problem? > > To make matters more interesting, my program was adding two records into > another table, said table was empty, thus adding new records in both > cases. The first one worked but the second one caused an access violation. > > > The first example points to a possible permissions problem, can update > but not add - but the second example counters that by being able to add > one record but not another which would point to something in the data... > both completely contradicting each other. :( > > I'm tearing my hair out here (which is not really a problem since I'm > shaving it all off for charity on Friday) trying to get this thing > working... it's got me completely boggled. > > I'm in the process of setting up a small test case to rule out or > confirm the data as being the problem. But that will have to wait until > tomorrow to finish so I'll let you know what I find then, but if anyone > has any other thoughts between now and then, I'd love to hear them. > > Thanks, > Paul. > > -- > Paul Lambert > Database Administrator > AutoLedgers > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match >