add testcase & bug fixed for sql-wall