a patch about rlm_sql