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

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.6.5
    • N/A
    • Documentation
    • None
    • 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

            greenman Ian Gilfillan
            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.