Skip to content

Commit

Permalink
Fix SQL error in z_installer.
Browse files Browse the repository at this point in the history
Fixes #229
(cherry picked from commit 0a25ba0)
  • Loading branch information
Arjan Scherpenisse committed Oct 18, 2011
1 parent 56b397c commit d55c2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/install/z_installer.erl
Expand Up @@ -225,7 +225,7 @@ ensure_module_active(C, Module) ->
{ok, _, [{true}]} ->
ok;
{ok, _, [{false}]} ->
{ok, 1} = pgsql:equery(C, "update module set is_active = 1 where name = $1", [Module]);
{ok, 1} = pgsql:equery(C, "update module set is_active = true where name = $1", [Module]);
_ ->
{ok, 1} = pgsql:equery(C, "insert into module (name, is_active) values ($1, true)", [Module])
end.

0 comments on commit d55c2c2

Please sign in to comment.