sql = "select sysindexes.idxname, sysindexes.idxtype, systables.tabname "
+ "from sysindexes, systables "
+ "where sysindexes.tabid = systables.tabid "
+ "and sysindexes.idxtype ='U'";
if (tableName != null) {
sql += " AND systables.tabname = '" + database.correctObjectName(tableName, Table.class) + "'";
}
} else if (database instanceof SybaseDatabase) {
LogFactory.getLogger().warning("Finding unique constraints not currently supported for Sybase");
return null; //TODO: find sybase sql
} else if (database instanceof SybaseASADatabase) {