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 F18C0D1B44B for ; Fri, 19 Dec 2003 14:50:46 +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 04449-10 for ; Fri, 19 Dec 2003 10:50:00 -0400 (AST) Received: from Ariel2.idahopower.com (unknown [204.76.195.72]) by svr1.postgresql.org (Postfix) with SMTP id 3D1BBD1B45C for ; Fri, 19 Dec 2003 10:49:56 -0400 (AST) Received: from 204.76.195.33 by Ariel2.idahopower.com with ESMTP (IPCo Mail Relay at your service (MMS v4.7);); Fri, 19 Dec 2003 07:45:09 -0700 X-Server-Uuid: c4da1ae6-7048-11d2-bc8e-00a083360239 Received: from bedford.idacorp.local ([172.18.201.66]) by midway.idacorp.local with Microsoft SMTPSVC(5.0.2195.6713); Fri, 19 Dec 2003 07:42:55 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Subject: int8 and PHP problems Date: Fri, 19 Dec 2003 07:42:55 -0700 Message-ID: <71B8A8BEC516CF46835CA629156CF21163F6CA@bedford.idacorp.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: int8 and PHP problems Thread-Index: AcPGPmNbaKhqVOxFQbaRFsIluGoOZg== From: "Seader, Cameron" To: pgsql-php@postgresql.org X-OriginalArrivalTime: 19 Dec 2003 14:42:55.0626 (UTC) FILETIME=[638246A0:01C3C63E] X-WSS-ID: 13FDD17E2465200-11-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/52 X-Sequence-Number: 2498 I have a database with two int8 fields that don't seem to be working proper= ly. I want it too be able to store the values of 0x000000000002, but it won= 't. MySQL seems too. Strange. PHP does not handle 64 bit integers so that w= ill not work either. How can i deal with this kind of value useing PHP and = PostgreSQL. One Reply i had made sense, but not sure how to do it. You are apparently trying to insert a hex string "0x000000000002"=20 >(notice it starts with '0x') into an int8 field -- don't do that.=20 >Convert the hex to integer before inserting, or cast it, like so: >regression=3D# select x'000000000002'::int8; How do you do the above casting as explained before inserting, or how do yo= u convert it to an integer when PHP will not handle the 64 bit integers at = all.=20 Can someone please help on this? 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 int= ended recipient, you are hereby notified that any disclosure, copying, dist= ribution, or use of the information contained herein (including any relianc= e thereon) is STRICTLY PROHIBITED. If you received this transmission in err= or, please immediately contact the sender and destroy the material in its e= ntirety, whether in electronic or hard copy format. Thank you. A2