未验证 提交 80773268 编写于 作者: S SteNicholas 提交者: GitHub

remove long sql (#4678)

上级 f9d84f4c
......@@ -154,14 +154,9 @@ public final class SQLParserParameterizedTest {
@Test
public void assertSupportedSQL() {
SQLParserTestCase expected = SQL_PARSER_TEST_CASES_REGISTRY.get(sqlCaseId);
if (expected.isLongSQL() && Boolean.parseBoolean(PROPS.getProperty("long.sql.skip", Boolean.TRUE.toString()))) {
return;
}
String databaseType = "H2".equals(this.databaseType) ? "MySQL" : this.databaseType;
String sql = SQL_CASES_LOADER.getSQL(sqlCaseId, sqlCaseType, SQL_PARSER_TEST_CASES_REGISTRY.get(sqlCaseId).getParameters());
SQLStatement actual = SQLParserEngineFactory.getSQLParserEngine(databaseType).parse(sql, false);
if (!expected.isLongSQL()) {
SQLStatementAssert.assertIs(new SQLCaseAssertContext(sqlCaseId, sqlCaseType), actual, expected);
}
SQLStatementAssert.assertIs(new SQLCaseAssertContext(sqlCaseId, sqlCaseType), actual, expected);
}
}
......@@ -38,9 +38,6 @@ public abstract class SQLParserTestCase {
@XmlAttribute(name = "sql-case-id")
private String sqlCaseId;
@XmlAttribute(name = "long-sql")
private boolean longSQL;
@XmlAttribute
private String parameters;
......
......@@ -14,5 +14,3 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
long.sql.skip=true
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册