X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id F09F3D1B44A for ; Fri, 28 Nov 2003 02:37:14 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 71091-05 for ; Thu, 27 Nov 2003 22:36:47 -0400 (AST) Received: from joeconway.com (66-146-172-86.skyriver.net [66.146.172.86]) by svr1.postgresql.org (Postfix) with ESMTP id 888A5D1B455 for ; Thu, 27 Nov 2003 22:36:42 -0400 (AST) Received: from [192.168.5.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 675508; Thu, 27 Nov 2003 18:34:35 -0800 Message-ID: <3FC6B449.1000606@joeconway.com> Date: Thu, 27 Nov 2003 18:34:49 -0800 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Seader, Cameron" Cc: pgsql-php@postgresql.org Subject: Re: error on Database insert References: <71B8A8BEC516CF46835CA629156CF21163F6A9@bedford.idacorp.local> In-Reply-To: <71B8A8BEC516CF46835CA629156CF21163F6A9@bedford.idacorp.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/50 X-Sequence-Number: 2443 Seader, Cameron wrote: > Bad int8 external representation "0x000000000002" > > what is this all about, why won't it insert this data into my bigint > field in my Database? What does it mean by external representation? > Does anyone have any suggestions You are apparently trying to insert a hex string "0x000000000002" (notice it starts with '0x') into an int8 field -- don't do that. Convert the hex to integer before inserting, or cast it, like so: regression=# select x'000000000002'::int8; int8 ------ 2 (1 row) Joe