diff --git a/reference/pgsql/functions/pg-convert.xml b/reference/pgsql/functions/pg-convert.xml index 0b6ebcf794..5dbb81be70 100644 --- a/reference/pgsql/functions/pg-convert.xml +++ b/reference/pgsql/functions/pg-convert.xml @@ -1,11 +1,11 @@ - + pg_convert - Convert associative array value into suitable for SQL statement + Convert associative array values into suitable for SQL statement @@ -23,11 +23,19 @@ assoc_array into suitable values for use in a SQL statement. Precondition for pg_convert is the existence of a table table_name which has at least as many columns - as assoc_array has elements. The fieldnames as well as - the fieldvalues in table_name must match the indices and - values of assoc_array. Returns an array with the converted - values on success, &false; otherwise. + as assoc_array has elements. The fieldnames in + table_name must match the indices in assoc_array + and the corresponding datatypes must be compatible. Returns an array with + the converted values on success, &false; otherwise. + + + If there are boolean fields in table_name don't use the + constant TRUE in assoc_array. It will be converted to the + string 'TRUE' which is no valid entry for boolean fields in PostgreSQL. Use one + of t, true, 1, y, yes instead. + + &warn.experimental.func;