use rescanParserWithExceptionAndTrash interface in sql.c

Signed-off-by: Masatake YAMATO <yamato@redhat.com>