Skip site navigation (1) Skip section navigation (2)

PDO, postgre and PHP data types

From: Developer <dev002(at)pas-world(dot)com>
To: pgsql-php(at)postgresql(dot)org
Subject: PDO, postgre and PHP data types
Date: 2009-05-25 19:08:57
Message-ID: 1243278537.18371.16.camel@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-php
Hello,
I have some problem with data type of PDO returned instance, array of
integer (_int4[]) is returned as string.

I read ref.pgsql.php, but nothing said how solve this problem.

I use something like this for it:
$dat=array($k=>explode(',',trim($v,'{}'))); // One dimension array
But it is very slow. Any method to return correct data types from
DATABASE to PHP parsed with high speed code (like C)?
Any postgresql driver version?




-- 














--
--
Publicidad y Servicios http://www.pas-world.com
Directorio http://www.precioventa.com
Tienda http://informatica.precioventa.com/es/
Autoridad certificadora http://ca.precioventa.com/es/
--
--


Responses

pgsql-php by date

Next:From: ChrisDate: 2009-05-25 23:13:47
Subject: Re: PDO, postgre and PHP data types
Previous:From: Luis Esteban de Dios NúñezDate: 2009-05-09 16:56:00
Subject: Me ha costado tanto...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group