From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Richard Broersma <richard.broersma@gmail.com>
Cc: pgsql-odbc <pgsql-odbc@postgresql.org>
Subject: Re: UPDATE statement value mutation
Date: Fri, 09 Jul 2010 06:29:35 +0900
Message-ID: <4C36433F.5050004@tpf.co.jp> (raw)
In-Reply-To: <AANLkTilG7bdKKMnRX_uEqUHEP0OTwmepD2mF2l_aZXWm@mail.gmail.com>
References: <AANLkTim185wvZLTbkE9_SjzQSx2VKYygPDd3qxykXhd4@mail.gmail.com>
<AANLkTilG7bdKKMnRX_uEqUHEP0OTwmepD2mF2l_aZXWm@mail.gmail.com>
Richard Broersma wrote:
> I stripped the .bmp attachment since it seems emails with attachments
> aren't distributed.
>
> On Mon, Jul 5, 2010 at 3:24 PM, Richard Broersma
> <richard.broersma@gmail.com> wrote:
>> Notice the attached bitmap image. I'm trying to change a value from
>> my MS-Access front-end from 0 to 99 using an update-able query.
Could you send me the Mylog output?
regards,
Hiroshi Inoue
>> However, when the actual update statement reaches PostgreSQL the value
>> of 99 is some how changed to 11. Is this a bug in Access or the ODBC
>> driver?
>>
>>
>>
>> Postgresql Version:
>> version
>> -------------------------------------------------------------
>> PostgreSQL 8.4.4, compiled by Visual C++ build 1400, 32-bit
>>
>>
>> ODBC driver version:
>> ------------------------------
>> [0.002]Driver Version='08.04.0200,200912260001' linking 1500 static
>> Multithread library
>> [0.003]Global Options: fetch=100, socket=4096, unknown_sizes=0,
>> max_varchar_size=255, max_longvarchar_size=8190
>> [0.003] disable_optimizer=0, ksqo=1, unique_index=1,
>> use_declarefetch=0
>> [0.004] text_as_longvarchar=1,
>> unknowns_as_longvarchar=0, bools_as_char=1 NAMEDATALEN=64
>> [0.005] extra_systable_prefixes='dd_', conn_settings=''
>> conn_encoding=''
>> [0.087] [ PostgreSQL version string = '8.4.4' ]
>> [0.087] [ PostgreSQL version number = '8.4' ]
>> [0.090]conn=088A4008, query='select oid, typbasetype from pg_type
>> where typname = 'lo''
>> [0.099] [ fetched 0 rows ]
>> [0.101] [ Large Object oid = -999 ]
>> [0.102] [ Client encoding = 'UTF8' (code = 6) ]
>>
>>
>> MS-Access 2002 (10.6771.6858) SP3
>>
>>
>> Here is the statement that reaches Postgresql.
>>
>> 2010-07-05 15:21:26 PDTLOG: statement: BEGIN;UPDATE
>> "public"."drawings" SET "drawing_type"=11 WHERE "drawingnbr" =
>> E'E-4400-60429D-S1' AND "xmin" = 23018
>> 2010-07-05 15:21:26 PDTERROR: insert or update on table "drawings"
>> violates foreign key constraint "drawings_drawing_type_fkey"
>> 2010-07-05 15:21:26 PDTDETAIL: Key (drawing_type)=(11) is not present
>> in table "drawing_types".
>> 2010-07-05 15:21:26 PDTSTATEMENT: BEGIN;UPDATE "public"."drawings"
>> SET "drawing_type"=11 WHERE "drawingnbr" = E'E-4400-60429D-S1' AND
>> "xmin" = 23018
>> 2010-07-05 15:21:26 PDTLOG: statement: ROLLBACK
>>
>> --
>> Regards,
>> Richard Broersma Jr.
>>
>> Visit the Los Angeles PostgreSQL Users Group (LAPUG)
>> http://pugs.postgresql.org/lapug
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: inoue@tpf.co.jp, richard.broersma@gmail.com
Subject: Re: UPDATE statement value mutation
In-Reply-To: <4C36433F.5050004@tpf.co.jp>
References: <AANLkTim185wvZLTbkE9_SjzQSx2VKYygPDd3qxykXhd4@mail.gmail.com> <AANLkTilG7bdKKMnRX_uEqUHEP0OTwmepD2mF2l_aZXWm@mail.gmail.com> <4C36433F.5050004@tpf.co.jp>
* 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