]> source.dussan.org Git - jackcess.git/commitdiff
better index setup call
authorJames Ahlborn <jtahlborn@yahoo.com>
Wed, 18 Mar 2015 21:07:46 +0000 (21:07 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Wed, 18 Mar 2015 21:07:46 +0000 (21:07 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@922 f203690c-595d-4dc9-a70b-905162fa7fd2

src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java

index 2823f629dba3f0d445bbe6bdd775e6fe20d23d46..91ad213fbabb8fe1f087df93adc58886f7730dd7 100644 (file)
@@ -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) {