issue #20868: keepSql option in build_all