bug in refactoring parseSqlAll