Skip to content

Commit 06755d5

Browse files
nicktorwaldTotktonada
authored andcommitted
AbstractJdbcIT test got broken by Tarantool server rework
According to tarantool/tarantool#3505 and tarantool/tarantool#3506 'box.sql.execute' is no longer supported in new Tarantool releases. Fix AbstractJdbcIT class which used the obsolete expression. Now SQL init scripts are performed by 'box.execute' statement superseded old version. Fixes: #149 See also: tarantool/tarantool#3505, tarantool/tarantool#3506
1 parent 9e3245d commit 06755d5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: src/test/java/org/tarantool/jdbc/AbstractJdbcIT.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.junit.jupiter.api.BeforeAll;
66
import org.junit.jupiter.api.BeforeEach;
77
import org.tarantool.TarantoolConnection;
8+
import org.tarantool.TarantoolControl;
89

910
import java.io.IOException;
1011
import java.net.InetSocketAddress;
@@ -20,8 +21,6 @@
2021
import static org.tarantool.TestUtils.makeInstanceEnv;
2122
import static org.tarantool.jdbc.SqlTestUtils.getCreateTableSQL;
2223

23-
import org.tarantool.TarantoolControl;
24-
2524
//mvn -DtntHost=localhost -DtntPort=3301 -DtntUser=test -DtntPass=test verify
2625
public abstract class AbstractJdbcIT {
2726
private static final String host = System.getProperty("tntHost", "localhost");
@@ -87,7 +86,7 @@ protected static void sqlExec(String... text) {
8786
TarantoolConnection con = makeConnection();
8887
try {
8988
for (String cmd : text)
90-
con.eval("box.sql.execute(\"" + cmd + "\")");
89+
con.eval("box.execute(\"" + cmd + "\")");
9190
} finally {
9291
con.close();
9392
}

0 commit comments

Comments
 (0)