[jOOQ/jOOQ#16237] SQL Server is also affected

This commit is contained in:
Lukas Eder 2024-02-08 10:50:50 +01:00
parent b70b53a9bc
commit a2d1aaa49f
6 changed files with 6 additions and 0 deletions

View File

@ -352,6 +352,7 @@ public class FirebirdDatabase extends AbstractDatabase implements ResultQueryDat
final boolean unique = index.get(i.RDB$UNIQUE_FLAG, boolean.class);
// [#6310] [#6620] Function-based indexes are not yet supported
// [#16237] Alternatively, the column could be hidden or excluded
for (Record column : columns)
if (table.getColumn(column.get(s.RDB$FIELD_NAME)) == null)
continue indexLoop;

View File

@ -257,6 +257,7 @@ public class H2Database extends AbstractDatabase implements ResultQueryDatabase
final boolean unique = !index.get(INDEXES.NON_UNIQUE, boolean.class);
// [#6310] [#6620] Function-based indexes are not yet supported
// [#16237] Alternatively, the column could be hidden or excluded
for (Record column : columns)
if (table.getColumn(column.get(INDEXES.COLUMN_NAME)) == null)
continue indexLoop;

View File

@ -206,6 +206,7 @@ public class HSQLDBDatabase extends AbstractDatabase implements ResultQueryDatab
final boolean unique = !index.get(SYSTEM_INDEXINFO.NON_UNIQUE, boolean.class);
// [#6310] [#6620] Function-based indexes are not yet supported
// [#16237] Alternatively, the column could be hidden or excluded
for (Record column : cols)
if (table.getColumn(column.get(SYSTEM_INDEXINFO.COLUMN_NAME)) == null)
continue indexLoop;

View File

@ -209,6 +209,7 @@ public class MySQLDatabase extends AbstractDatabase implements ResultQueryDataba
final boolean unique = !index.get(STATISTICS.NON_UNIQUE, boolean.class);
// [#6310] [#6620] Function-based indexes are not yet supported
// [#16237] Alternatively, the column could be hidden or excluded
for (Record column : columns)
if (table.getColumn(column.get(STATISTICS.COLUMN_NAME)) == null)
continue indexLoop;

View File

@ -262,6 +262,7 @@ public class PostgresDatabase extends AbstractDatabase implements ResultQueryDat
// [#6310] [#6620] Function-based indexes are not yet supported
// [#11047] Even without supporting function-based indexes, we might have to parse
// the column expression, because it might be quoted
// [#16237] Alternatively, the column could be hidden or excluded
if (table.getColumn(columns[k]) == null && table.getColumn(columns[k] = tryParseColumnName(columns[k])) == null)
continue indexLoop;

View File

@ -201,6 +201,7 @@ public class SQLiteDatabase extends AbstractDatabase implements ResultQueryDatab
final boolean unique = index.get(fUnique);
// [#6310] [#6620] Function-based indexes are not yet supported
// [#16237] Alternatively, the column could be hidden or excluded
for (Record column : columns)
if (table.getColumn(column.get(fColumnName)) == null)
continue indexLoop;