Bug #38297 aggregate UDF xxx_init / deinit only called once for aggregation with rollup
Submitted: 22 Jul 2008 20:04 Modified: 23 Jul 2008 15:56
Reporter: Ron Saad Email Updates:
Status: Verified Impact on me:
Category:MySQL Server: User-defined functions ( UDF ) Severity:S3 (Non-critical)
Version:5.0, 5.1 OS:Microsoft Windows (Vista Ultimat)
Assigned to: CPU Architecture:Any
Tags: aggregate, rollup, udf
Triage: Triaged: D2 (Serious)

File: Maximum allowed size is 3MB.

If the data you need to attach is more than 3MB, you should create a compressed archive of the data and a README file that describes the data with a filename that includes the bug number (recommended filename: mysql-bug-data-38297.zip) and upload one to sftp.oracle.com. A free Oracle Web (SSO) account (the one you use to login bugs.mysql.com) and a client that supports SFTP are required in order to access the SFTP server.

To upload the file to sftp.oracle.com:

  1. Open an SFTP client and connect to sftp.oracle.com. Specify port 2021 and remote directory /support/incoming/.
  2. Log in with your newly created Oracle Web account (email address) and password.
  3. Upload the archive to /support/incoming.
  4. Once you have uploaded the file, add a comment to this bug to notify us about it.
Example: sftp -oPort=2021 -oUser=email sftp.oracle.com:/support/incoming

Usage Notes: This directory is unlistable, which means that once you have uploaded your file, you will not be able to see it. A file cannot be uploaded more than once with the same filename. The filename must be changed before attempting to upload the file again. The filename should always start with mysql-bug- prefix. Files are retained on the SFTP server for 7 days and then permanently removed.

[22 Jul 2008 20:05] Ron Saad
Code for udf_count functions

Attachment: udf_count.cpp (text/plain), 4.39 KiB.

[23 Jul 2008 15:40] Hartmut Holzgraefe
autotoolized UDF project

Attachment: UDF-bug38297-0.0.1dev.tar.gz (application/gzip, text), 314.61 KiB.

[20 Jun 2010 19:28] Sven Wegener
Patch for 5.1, I don't know if it has correct error handling, this was hacked up for personal use.

Attachment: mysql-5.1-udf-rollup.patch (application/octet-stream, text), 4.13 KiB.

[21 Dec 2014 2:41] Daniel Black
diff against  UDF-bug38297-0.0.1dev

Attachment: bug38297.cc.diff (text/x-patch), 4.46 KiB.

[21 Dec 2014 3:15] Daniel Black
correction to previous

Attachment: bug38297.cc.diff (text/x-patch), 4.46 KiB.