From 1deff0ba31c10a9af1b8e35472cfa57fa0e49f41 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sun, 4 Jul 2004 09:10:50 +0000 Subject: [PATCH] fix #28994: fix proto in field_prtlen and add note about upper-case identifiers git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@162614 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pgsql/functions/pg-field-prtlen.xml | 12 +++++++++--- reference/pgsql/reference.xml | 9 ++++++++- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/reference/pgsql/functions/pg-field-prtlen.xml b/reference/pgsql/functions/pg-field-prtlen.xml index f7f979923b..b21f80659f 100644 --- a/reference/pgsql/functions/pg-field-prtlen.xml +++ b/reference/pgsql/functions/pg-field-prtlen.xml @@ -1,5 +1,5 @@ - + @@ -11,8 +11,8 @@ intpg_field_prtlen resourceresult - introw_number - stringfield_name + introw_number + mixedfield_name_or_number pg_field_prtlen returns the actual printed @@ -20,6 +20,12 @@ result. Row numbering starts at 0. This function will return -1 on an error. + + field_name_or_number can be passed either as an + integer or as a string. If it is passed as an + integer, PHP recognises it as the field number, otherwise as + field name. + See the example given at the pg_field_name page. diff --git a/reference/pgsql/reference.xml b/reference/pgsql/reference.xml index b4be7a5335..72f7cde0a1 100644 --- a/reference/pgsql/reference.xml +++ b/reference/pgsql/reference.xml @@ -1,5 +1,5 @@ - + PostgreSQL Functions PostgreSQL @@ -263,6 +263,13 @@ export PGHOST PGPORT PGDATABASE PGUSER PGPASSWORD PGDATESTYLE PGTZ PGCLIENTENCOD ]]> + + + PostgreSQL automatically folds all identifiers (e.g. table/column names) + to lower-case values. To get it to recognize upper-case values, you must + always wrap the identifier in quotes. + + &reference.pgsql.constants;