cursor.query is parameter adapted
raise error on commit