Fixed sql(pg) test.