From: Kevin Gordon <kgordon@paradise.net.nz>
To: pgsql-php@postgresql.org
Subject: pg_field_size
Date: 04 Jan 2003 16:05:09 +1300
Message-ID: <1041649533.16040.12.camel@kg15.kgdomain.com> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: kgordon@paradise.net.nz
Subject: Re: pg_field_size
In-Reply-To: <1041649533.16040.12.camel@kg15.kgdomain.com>
References: <1041649533.16040.12.camel@kg15.kgdomain.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox