possible bug in rlm_sql.c