Elffuss BraidHub

kikocis/java-driver public

1.2 compatibility in TypeCodecArraysIntegrationTest.
Changeset7220e608dcd524d26064b32c8c30b8cbf7133a986eeeb970112f268d47f2a037
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-07-28 16:28 -05:00
CommitterAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-07-28 16:28 -05:00
Parentse4130353d5fc

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/TypeCodecArraysIntegrationTest.java +3 −3
@@ -59,10 +59,10 @@
5959
6060 @Test(groups = "short")
6161 public void should_set_list_column_with_array() {
62- PreparedStatement pst = session.prepare("INSERT INTO lists (i, l) VALUES (:i, :l)");
62+ PreparedStatement pst = session.prepare("INSERT INTO lists (i, l) VALUES (?, ?)");
6363 BoundStatement bs = pst.bind()
64- .setInt("i", 2)
65- .set("l", new int[]{ 2, 3, 4 }, int[].class);
64+ .setInt(0, 2)
65+ .set(1, new int[]{ 2, 3, 4 }, int[].class);
6666 session.execute(bs);
6767
6868 Row row = session.execute("SELECT l FROM lists WHERE i = 2").one();