kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 7220e608dcd524d26064b32c8c30b8cbf7133a986eeeb970112f268d47f2a037 |
|---|---|
| Author | Andrew Tolbert <andrew.tolbert@datastax.com> · 2015-07-28 16:28 -05:00 |
| Committer | Andrew Tolbert <andrew.tolbert@datastax.com> · 2015-07-28 16:28 -05:00 |
| Parents | e4130353d5fc |
1 file changed
modified driver-core/src/test/java/com/datastax/driver/core/TypeCodecArraysIntegrationTest.java +3 −3
| @@ -59,10 +59,10 @@ | ||
| 59 | 59 | |
| 60 | 60 | @Test(groups = "short") |
| 61 | 61 | 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 (?, ?)"); | |
| 63 | 63 | 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); | |
| 66 | 66 | session.execute(bs); |
| 67 | 67 | |
| 68 | 68 | Row row = session.execute("SELECT l FROM lists WHERE i = 2").one(); |