mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge branch 'ticket/13268' into prep-release-3.1.1
* ticket/13268: [ticket/13268] Properly append ternary result in get_existing_indexes()
This commit is contained in:
commit
2cc9fe5267
1 changed files with 2 additions and 2 deletions
|
@ -2643,7 +2643,7 @@ class tools
|
|||
AND cols.id = ix.id
|
||||
WHERE ix.id = object_id('{$table_name}')
|
||||
AND cols.name = '{$column_name}'
|
||||
AND INDEXPROPERTY(ix.id, ix.name, 'IsUnique') = " . ($unique) ? '1' : '0';
|
||||
AND INDEXPROPERTY(ix.id, ix.name, 'IsUnique') = " . ($unique ? '1' : '0');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2657,7 +2657,7 @@ class tools
|
|||
AND cols.object_id = ix.object_id
|
||||
WHERE ix.object_id = object_id('{$table_name}')
|
||||
AND cols.name = '{$column_name}'
|
||||
AND ix.is_unique = " . ($unique) ? '1' : '0';
|
||||
AND ix.is_unique = " . ($unique ? '1' : '0');
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue