pg_field_size

From: Kevin Gordon <kgordon(at)paradise(dot)net(dot)nz>
To: pgsql-php(at)postgresql(dot)org
Subject: pg_field_size
Date: 2003-01-04 03:05:09
Message-ID: 1041649533.16040.12.camel@kg15.kgdomain.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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.

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Kevin Gordon 2003-01-04 03:27:26 SQL to determine Tablenames, Primarykeys & Foreignkeys
Previous Message Keary Suska 2003-01-03 04:20:12 Re: pg_pconnect+PostgreSQL cursors