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

UDF (user defined function) plugin SDK model(dll) not working properly(for aggregated function)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.6.5
    • Fix Version/s: N/A
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      Windows11 64bit, visual studio 2022, MariaDB 10.6\bin\mysql.exe Ver 15.1 Distrib 10.6.5-MariaDB, for Win64 (AMD64), source revision 109fc67d4da46d52d2a96528eaea3b0ef6275692

      Description

      For the UDF aggregate model that calling 'x_init > x_clear > x_add > xxx > x_deinit' as the guide said,
      but actually not calls 'x_clear > x_add' both on windows platform
      only rest of functions(x_init > xxx > x_deinit) are called. but above two. So that canNOT implement aggregated plugin.
      How to fix it?
      (sample code at https://github.com/mysqludf/lib_mysqludf_ta/blob/master/src/ta_tr_win.c)

      reference doc : https://mariadb.com/kb/en/creating-user-defined-functions/

        Attachments

          Activity

            People

            Assignee:
            greenman Ian Gilfillan
            Reporter:
            npdmailing@gmail.com Mitchell Lee
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.