From: James Ahlborn Date: Wed, 18 Mar 2015 21:07:46 +0000 (+0000) Subject: better index setup call X-Git-Tag: jackcess-2.0.9~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=535fc3dac52f86895c1970fca4beb84423e3d013;p=jackcess.git better index setup call git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@922 f203690c-595d-4dc9-a70b-905162fa7fd2 --- diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java index 2823f62..91ad213 100644 --- a/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java +++ b/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java @@ -1516,7 +1516,7 @@ public class DatabaseImpl implements Database { try { return table.newCursor() - .setIndexByColumns(table.getColumn(colName)) + .setIndexByColumnNames(colName) .setSpecificEntry(colValue) .toCursor(); } catch(IllegalArgumentException e) {