update lugar set nombre= ?, # pname direccion= ?, # paddr observacion= ?,# pobs municipio= ?, # pto federativa= ?, # pst pais= ?, # pco lat=?, # plat lng=?, # plng estado = case ? when "on" then 1 else 0 end # pen where id = ?; # pprev ;