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;