Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7931

Custom types support through extensions

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Fix Version/s: N/A
    • Component/s: OTHER
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                PAleksandrov Petr
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: