[MDEV-7931] Custom types support through extensions Created: 2015-04-07  Updated: 2015-04-20  Resolved: 2015-04-20

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Fix Version/s: N/A

Type: Task Priority: Minor
Reporter: Petr Assignee: Unassigned
Resolution: Duplicate Votes: 1
Labels: None

Issue Links:
Duplicate
is duplicated by MDEV-4912 Data type plugin API version 1 Closed

 Description   

I propose to add support for extensions (written in C++) which define custom types. It can be implemented as follows. Extension translates custom type value (for example, fraction) to sequency of bytes in order to store it. Storage engine stores this sequncy of bytes (i.e. BLOB). Extension also supports the presentation of the value in a string form (in order to display it). Also extension can support operations for custom type (for example, arithmetical operations for fractions).
I think that this approach will be better than definition of types using SQL (MariaDB doesn't support it) for nonstandard math types, such as multiprecision floating point numbers, fractions.



 Comments   
Comment by Sergei Golubchik [ 2015-04-20 ]

Yes, it's a good idea. It is so good that we have even started working on it — see MDEV-4912

Generated at Thu Feb 08 07:23:22 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.