package net.sourceforge.mayfly.acceptance;

public class IndexTest extends SqlTestCase {
    
    public void testMysqlSyntax() throws Exception {
        String sql = "create table foo(a integer, index(a))";
        if (dialect.createTableCanContainIndex()) {
            execute(sql);
            execute("create table bar(b integer, index named_index(b))");
        }
        else {
            expectExecuteFailure(sql, "expected data type but got '('");
        }
    }
    
    // TODO: Also consider Hypersonic/Derby syntax: CREATE INDEX, etc

}

package net.sourceforge.mayfly.acceptance;

public class IndexTest extends SqlTestCase {
    
    public void testMysqlSyntax() throws Exception {
        String sql = "create table foo(a integer, index(a))";
        if (dialect.createTableCanContainIndex()) {
            execute(sql);
            execute("create table bar(b integer, index named_index(b))");
        }
        else {
            expectExecuteFailure(sql, "expected data type but got '('");
        }
    }
    
    /* TODO: Might want to insist that the index be on a NOT NULL
       column the way that MySQL 5.1 does */

    // TODO: Also consider Hypersonic/Derby syntax: CREATE INDEX, etc
    
}

Add TODO comment for one more case we might test.
Add TODO comment for one more case we might test.


git-svn-id: 23fe82866435bfad55a63e1848058f1c8ce5423e@453 97720ae0-9849-0410-b17a-8398f3d9df07
