Re: PDO, postgre and PHP data types

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: PDO, postgre and PHP data types
Дата
Msg-id gvglfk$8vs$5@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на PDO, postgre and PHP data types  (Developer <dev002@pas-world.com>)
Список pgsql-php
On 2009-05-25, Developer <dev002@pas-world.com> wrote:
> Hello,
> I have some problem with data type of PDO returned instance, array of
> integer (_int4[]) is returned as string.

yes.

> 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)?

php will never be "fast like c"

if you are not using the arrays with postgres stored procedures,
perhaps you could store them in a format that PHP is handles better
(eg: serialize)


В списке pgsql-php по дате отправления:

Предыдущее
От: Chris
Дата:
Сообщение: Re: PDO, postgre and PHP data types
Следующее
От: Carol Walter
Дата:
Сообщение: Begin block