Eloy Lafuente (stronk7)
848ec32df0
MDL-74143 database: Make get_indexes() to return original column names
...
Sometimes, in order to provide a cross-db behaviour of unique indexes
mixing null and not null columns, we create, under the hood, some
function based indexes.
When that happens get_indexes() is returning the name of the
expression objects used to calculate that function index. But we need
the original column names to be able to compare indexes and get
column dependencies properly.
So, this patch just looks, when the index is unique and function based,
to the expressions (pretty standard CASE statements) and gets the
original column name from it.
Covered with tests.
2022-03-23 23:16:53 +01:00
..
2022-03-05 14:19:50 +01:00
2021-11-15 11:49:35 +08:00
2022-03-16 11:45:40 +08:00
2021-04-16 07:57:00 +01:00
2022-03-16 22:29:20 +08:00
2019-11-16 20:03:08 +01:00
2022-03-21 12:41:10 +01:00
2022-03-18 15:30:19 -04:00
2021-11-18 17:53:00 +11:00
2022-03-23 23:16:53 +01:00
2021-10-26 17:19:11 +02:00
2022-03-18 12:00:23 +08:00
2022-01-10 10:36:23 +01:00
2022-01-14 16:18:39 +01:00
2020-10-21 12:45:59 +02:00
2021-12-21 09:24:00 +08:00
2022-03-17 13:11:47 +01:00
2022-02-01 18:10:36 +01:00
2022-01-20 14:48:22 +01:00
2021-12-16 00:10:13 +08:00
2021-12-19 12:22:14 +01:00
2020-11-25 21:35:14 +00:00
2021-01-22 11:30:38 +08:00
2020-09-18 10:01:09 +08:00
2022-01-11 12:07:20 +01:00
2022-02-11 10:07:39 +08:00
2019-11-19 10:03:12 +01:00
2021-01-18 09:30:02 +08:00
2021-08-10 09:37:31 +01:00
2022-01-11 10:41:08 +01:00
2022-03-03 12:19:30 +01:00
2022-03-08 12:35:01 +01:00
2022-02-01 18:10:36 +01:00
2022-02-01 18:10:36 +01:00
2021-12-09 16:11:14 +02:00
2022-02-11 10:07:39 +08:00
2022-03-08 10:04:20 +01:00
2022-01-14 12:45:54 +01:00
2022-03-09 16:26:13 +01:00
2021-03-19 10:19:10 +02:00
2021-06-21 12:03:58 +10:00
2021-10-27 06:24:55 +02:00
2022-01-11 12:07:20 +01:00
2022-02-01 18:10:36 +01:00
2022-02-01 18:10:36 +01:00
2020-11-25 20:44:03 +00:00
2021-10-05 08:04:47 +01:00
2022-02-23 08:55:20 +08:00
2021-04-20 11:53:54 +02:00
2022-03-22 10:22:45 +08:00
2022-02-11 11:01:26 +08:00
2022-03-18 22:12:38 +00:00
2021-12-17 14:21:02 +01:00
2021-12-21 09:24:00 +08:00
2021-12-09 14:19:33 +02:00
2021-02-17 20:59:19 +01:00
2022-02-23 08:53:54 +08:00
2021-03-17 09:30:04 +07:00
2020-09-17 14:16:59 +08:00
2022-03-04 14:36:25 +10:00
2022-01-28 09:32:08 +07:00
2021-04-28 11:39:04 +02:00
2021-10-28 17:43:49 +02:00
2022-03-10 16:46:03 +08:00
2020-11-06 09:30:08 +08:00
2022-03-01 10:20:46 +08:00
2022-02-03 19:14:28 +08:00
2021-05-26 13:51:46 +08:00
2020-11-30 17:25:19 +01:00
2019-09-09 11:18:05 +02:00
2021-06-30 15:04:16 +01:00
2020-05-04 16:01:12 +01:00
2021-11-22 23:48:19 +00:00
2022-03-17 15:34:26 +07:00
2021-12-03 14:29:59 +02:00
2021-02-26 13:07:59 +01:00
2021-11-16 10:31:42 +08:00
2021-11-23 16:15:08 +01:00
2022-02-11 23:50:05 +01:00
2020-02-11 10:26:57 +01:00
2021-06-03 10:49:50 +07:00
2022-03-01 12:01:59 +01:00
2021-02-28 19:43:37 +01:00
2021-09-17 10:46:10 +02:00
2022-03-03 12:19:02 +01:00
2021-06-21 08:41:48 +02:00
2021-06-14 09:31:30 +01:00
2022-01-04 22:48:40 +11:00
2021-09-21 10:10:02 +08:00
2020-04-24 15:56:38 +02:00
2021-10-26 17:19:11 +02:00
2020-09-15 10:37:06 +02:00
2020-01-19 18:47:07 +01:00
2022-01-27 15:22:15 +01:00
2022-03-17 15:34:26 +07:00
2022-03-18 22:12:38 +00:00
2021-04-21 11:22:25 +02:00
2022-03-19 22:00:16 +08:00
2021-03-03 12:03:40 +08:00
2022-02-25 11:39:55 +08:00
2019-09-12 20:58:10 +08:00
2022-03-16 13:57:59 +06:00
2022-03-10 17:07:32 +01:00
2022-02-11 12:01:26 +08:00
2022-03-16 13:57:59 +06:00
2021-06-25 12:57:20 +12:00
2021-12-13 09:49:35 +08:00
2022-03-02 17:12:19 +08:00
2019-12-12 15:58:19 +08:00
2021-02-15 16:53:37 +01:00
2021-11-17 20:56:36 +01:00
2022-03-09 12:11:14 +00:00
2021-11-11 13:55:31 +01:00
2022-03-10 15:34:21 +08:00
2022-03-18 00:35:11 +08:00
2022-01-28 09:32:08 +07:00
2021-10-17 21:52:05 +07:00
2021-02-16 12:46:58 +08:00
2019-10-25 17:41:10 +02:00