The line of code causing this looks like this. Publish and button are int8
res = @db.exec("
Update pages set
title = ?, parent_id = ?, template = ?, publish = ?, button = ?,`order` = ?,
meta = ?, created_at = ?, updated_at = ?
where id = ?
", title, parent_id, template, publish, button, order, meta, created_at, updated_at, id)