pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
error on Database insert
2+ messages / 2 participants
[nested] [flat]

* error on Database insert
@ 2003-11-27 19:16 Seader, Cameron <CSeader@idahopower.com>
  2003-11-28 02:34 ` Re: error on Database insert Joe Conway <mail@joeconway.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Seader, Cameron @ 2003-11-27 19:16 UTC (permalink / raw)
  To: pgsql-php

Greetings all,
I have been receiveing an error on database inserts  stated below:

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
Thanks,

Cameron Seader
Operations Center Technician II
CSeader@Idahopower.com
1.208.388.2582 Office



[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format.  Thank you.   A2





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: error on Database insert
  2003-11-27 19:16 error on Database insert Seader, Cameron <CSeader@idahopower.com>
@ 2003-11-28 02:34 ` Joe Conway <mail@joeconway.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Joe Conway @ 2003-11-28 02:34 UTC (permalink / raw)
  To: Seader, Cameron <CSeader@idahopower.com>; +Cc: pgsql-php

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-11-28 02:34 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-27 19:16 error on Database insert Seader, Cameron <CSeader@idahopower.com>
2003-11-28 02:34 ` Joe Conway <mail@joeconway.com>

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