varchar length... PHP - Mailing list pgsql-general

From Constantin Khatsckevich
Subject varchar length... PHP
Date
Msg-id 40F3C7B6.9070807@const.ru
Whole thread Raw
Responses Re: varchar length... PHP  (mike g <mike@thegodshalls.com>)
List pgsql-general
Hello!

Can I get ordered length of the varchar field? I need it in PHP script.

For example,
CREATE TABLE t1
(
   id int,
   str varchar(40)
);

PHP function pg_FieldSize() returns me -1 for field str, because this is
variable length field, but I need got 40 (in the my example). May be
like sizeof() ?????


--
Best regards,
Constantin Khatskevich.


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: moving an installation
Next
From: Jean-Luc Lachance
Date:
Subject: Re: change the last bit