note 52006 added to function.pg-field-prtlen

From: Date: Mon, 18 Apr 2005 16:06:08 +0000
Subject: note 52006 added to function.pg-field-prtlen
Groups: php.notes 
Request: Send a blank email to php-notes+get-88172@lists.php.net to get a copy of this message
... is there no way to get the real- max-length of a field in postgreSQL? how do i determine a field length (count of chars or size in byte) when i will know how the field is set in the database if its a varchar or bpchar to make a info in php? pg_field_prtlen ... gives the actual size of the field back (it counts the content inside - thats not needed) pg_filed_size ... can't be used for varchar or bpchar fields (allways -1) has got somebody any useable answers to this (little) problem? ---- Manual Page -- http://www.php.net/manual/en/function.pg-field-prtlen.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52006 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52006&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52006&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52006&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52006&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52006&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52006&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88172) next »