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 whole thread)
Lists: pgsql-php
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
Autoridad certificadora


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-2015 The PostgreSQL Global Development Group