[MDEV-20016] Add MariaDB_DATA_TYPE_PLUGIN Created: 2019-07-10 Updated: 2020-03-13 Resolved: 2019-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types, Plugins |
| Fix Version/s: | 10.5.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Description |
|
Let's add a new plugin type: MariaDB_DATA_TYPE_PLUGIN. plugin->data of such plugin will point to a single Type_handler implementation. So looking up a pluggable data type by name should be done very easy, by this code block:
Note, as the above comment states, for now we assume we have:
Under terms of this task let's implement a simple test plugin implementing an alias for an existing data type, to demonstrate that the plugin data type is understood in various contexts:
|
| Comments |
| Comment by Alexander Barkov [ 2019-08-05 ] |
|
serg, please review. The patch is here: |
| Comment by Alexander Barkov [ 2019-09-17 ] |
|
serg A new patch is here: https://github.com/MariaDB/server/commit/17eeab8b470c237ce93d7ba9b5ecc6c4317d46e5 I.e. the top patch in this branch: |