[Typo3-dev] Strange MYSQL behaviour / type casting with boolean

Dmitry Dulepov typo3 at fm-world.ru
Mon Oct 17 07:56:49 CEST 2005


Hi!

Robert Lemke wrote:
> Imagine $clearCacheOnLoad is (boolean) TRUE, then what I see in the database
> afterwards is (integer) 0 ! However, if I change the code like this:

Do you have any way to check what query is generated? It probably
contains "true" instead of 1 for that field. If MySQL uses atoi() to
convert it to number, it will definitely get "0" as a result.

Dmitry.




More information about the TYPO3-dev mailing list