zotonic/zotonic — Issue #229: z_installer.erl causing SQL ERROR and site crash due to integer value on boolean field
Author: trigeek38
Created: 2011-10-18 10:34:21+00:00
State: open

=INFO REPORT==== 14-Oct-2011::10:23:00 ===
SQL error {error,{error,error,<<"42804">>,
<<"column \"is_active\" is of type boolean but expression is of type integer">>,
[{position,<<"19">>},
{hint,<<"You will need to rewrite or cast the expression.">>}]}} : "update module set is_active = 1 where name = $1"(zotonic001@localhost)1>

Function ensure_module_active/2 - by changing the 1 to true, the error goes away.