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

Custom types support through extensions

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Duplicate
    • N/A
    • OTHER
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.