Introduce ordering in the constant_keyword test for better predictibility. (#61248) (#61252)

(cherry picked from commit 69193f9de8178dbaa1d8467f1686b100dd2b161c)
This commit is contained in:
Andrei Stefan 2020-08-18 12:17:15 +03:00 committed by GitHub
parent 58d07b2ffc
commit ad627c7eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ public abstract class PreparedStatementTestCase extends JdbcIntegrationTestCase
}
try (Connection connection = esJdbc()) {
try (PreparedStatement statement = connection.prepareStatement("SELECT id, text FROM test WHERE text = ?")) {
try (PreparedStatement statement = connection.prepareStatement("SELECT id, text FROM test WHERE text = ? ORDER BY id")) {
statement.setString(1, text);
try (ResultSet results = statement.executeQuery()) {