Fix SQL for GRANT on a sequence

Report from liuyuanyuan.