fix sql test.