Repository navigation
Commit 2132831
committed
fix(indexes): fail unique index creation over duplicate rows
Database::createIndex() now rethrows UniqueException instead of swallowing it with the "index already exists" DuplicateException, so a unique index over duplicate rows fails without leaving metadata behind. Memory and Redis throw UniqueException for that case, and oversized index rows map to LimitException on Postgres (54000) and MariaDB/MySQL (1071) instead of a raw PDOException.1 parent 1c99c21 commit 2132831
5 files changed
Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1893 | 1893 | | |
1894 | 1894 | | |
1895 | 1895 | | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
1896 | 1901 | | |
1897 | 1902 | | |
1898 | 1903 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
| 1008 | + | |
| 1009 | + | |
1012 | 1010 | | |
1013 | 1011 | | |
1014 | 1012 | | |
| |||
1026 | 1024 | | |
1027 | 1025 | | |
1028 | 1026 | | |
1029 | | - | |
| 1027 | + | |
1030 | 1028 | | |
1031 | 1029 | | |
1032 | 1030 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2198 | 2198 | | |
2199 | 2199 | | |
2200 | 2200 | | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
2201 | 2206 | | |
2202 | 2207 | | |
2203 | 2208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2728 | 2728 | | |
2729 | 2729 | | |
2730 | 2730 | | |
2731 | | - | |
| 2731 | + | |
2732 | 2732 | | |
2733 | 2733 | | |
2734 | 2734 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
4830 | 4831 | | |
4831 | 4832 | | |
4832 | 4833 | | |
| 4834 | + | |
| 4835 | + | |
| 4836 | + | |
4833 | 4837 | | |
4834 | 4838 | | |
4835 | 4839 | | |
| |||
0 commit comments