pg_field_size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,
I wish to set on screen field sizes by using pg_field_size().
I have been successful with odbc_field_len() connected to Postgres but
wish to convert to pg_ functions.
Problem: all of these fields return -1 (indicating variable length):
CREATE TABLE menu_lines (
	systemcode char (2) ,
	menuname char (32) ,
	menuline char (2) ,
	description varchar (32) ,
	accesscode char (1) ,
	accesstype char (1) ,
	programname varchar (32) ,
	formatfile varchar (32) ,
With char(2) should pg_field_size() return 2?
odbc_field_len() does return 2!
I am using PHP 4.2.3.
Any comments please.
Kevin Gordon.




[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux