Re: UPDATE statement value mutation
am 06.07.2010 20:24:55 von Richard BroersmaI stripped the .bmp attachment since it seems emails with attachments
aren't distributed.
On Mon, Jul 5, 2010 at 3:24 PM, Richard Broersma
> Notice the attached bitmap image. =A0I'm trying to change a value from
> my MS-Access front-end from 0 to 99 using an update-able query.
> However, when the actual update statement reaches PostgreSQL the value
> of 99 is some how changed to 11. =A0Is this a bug in Access or the ODBC
> driver?
>
>
>
> Postgresql Version:
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 version
> ------------------------------------------------------------ -
> =A0PostgreSQL 8.4.4, compiled by Visual C++ build 1400, 32-bit
>
>
> ODBC driver version:
> ------------------------------
> [0.002]Driver Version=3D'08.04.0200,200912260001' linking 1500 static
> Multithread library
> [0.003]Global Options: fetch=3D100, socket=3D4096, unknown_sizes=3D0,
> max_varchar_size=3D255, max_longvarchar_size=3D8190
> [0.003] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0disable_optimizer=3D0, ksqo=3D1, u=
nique_index=3D1,
> use_declarefetch=3D0
> [0.004] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0text_as_longvarchar=3D1,
> unknowns_as_longvarchar=3D0, bools_as_char=3D1 NAMEDATALEN=3D64
> [0.005] =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0extra_systable_prefixes=3D'dd_', c=
onn_settings=3D''
> conn_encoding=3D''
> [0.087] =A0 =A0[ PostgreSQL version string =3D '8.4.4' ]
> [0.087] =A0 =A0[ PostgreSQL version number =3D '8.4' ]
> [0.090]conn=3D088A4008, query=3D'select oid, typbasetype from pg_type
> where typname =3D 'lo''
> [0.099] =A0 =A0[ fetched 0 rows ]
> [0.101] =A0 =A0[ Large Object oid =3D -999 ]
> [0.102] =A0 =A0[ Client encoding =3D 'UTF8' (code =3D 6) ]
>
>
> MS-Access 2002 (10.6771.6858) SP3
>
>
> Here is the statement that reaches Postgresql.
>
> 2010-07-05 15:21:26 PDTLOG: =A0statement: BEGIN;UPDATE
> "public"."drawings" SET "drawing_type"=3D11 =A0WHERE "drawingnbr" =3D
> E'E-4400-60429D-S1' AND "xmin" =3D 23018
> 2010-07-05 15:21:26 PDTERROR: =A0insert or update on table "drawings"
> violates foreign key constraint "drawings_drawing_type_fkey"
> 2010-07-05 15:21:26 PDTDETAIL: =A0Key (drawing_type)=3D(11) is not present
> in table "drawing_types".
> 2010-07-05 15:21:26 PDTSTATEMENT: =A0BEGIN;UPDATE "public"."drawings"
> SET "drawing_type"=3D11 =A0WHERE "drawingnbr" =3D E'E-4400-60429D-S1' AND
> "xmin" =3D 23018
> 2010-07-05 15:21:26 PDTLOG: =A0statement: ROLLBACK
>
> --
> Regards,
> Richard Broersma Jr.
>
> Visit the Los Angeles PostgreSQL Users Group (LAPUG)
> http://pugs.postgresql.org/lapug
--=20
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc