@Test
public void caseInsensitiveIndicesTest() throws SqlJetException {
final ISqlJetTable t = db.getTable(db.createTable("create table t(a int)").getName());
db.createIndex("create index i on t(a)");
db.runReadTransaction(new ISqlJetTransaction() {
public Object run(SqlJetDb db) throws SqlJetException {
Assert.assertNotNull(t.getIndexDef("I"));
Assert.assertNotNull(t.order("I"));
Assert.assertNotNull(t.lookup("I", 0));
Assert.assertNotNull(t.scope("I", new Object[] { 0 }, new Object[] { 0 }));
return null;
}
});
db.createIndex("create index II on t(a)");
db.runReadTransaction(new ISqlJetTransaction() {
public Object run(SqlJetDb db) throws SqlJetException {
Assert.assertNotNull(t.getIndexDef("ii"));
Assert.assertNotNull(t.order("ii"));
Assert.assertNotNull(t.scope("ii", new Object[] { 0 }, new Object[] { 0 }));
return null;