For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > June 2005 > Re: [PHP-DOC] Activity









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DOC] Activity
Gabor Hojtsy

2005-06-06, 8:55 am

Hi Conni,

> I have a question: At http://www.php.net/manual/en/function.pg-convert.php
> there is a user note : "Why does this function, pg_convert(), reject the
> string 'TRUE' as a valid value for the boolean types? ..."
>
> This is not the fault of pg_convert(). TRUE (in capital letters) is not
> a string but a constant without quotes. If you try to convert it, the
> function puts quotes and then 'TRUE' is not anymore a valid entry for
> boolean fields in PostgreSQL. With the stringa t, true, 1, y, yes
> instead the function works well.
>
> Shall I write a new note or put this hint into the documentation?


This should go into the docs IMHO. Thanks for taking this.

Goba
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com