MariaDB Development
  1. MariaDB Development
  2. MDEV-4651

Crash in my_decimal2decimal in a ORDER BY query

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.12
    • Fix Version/s: 10.0.4, 5.5.32, 5.3.13
    • Labels:
      None
    • Global Rank:
      3168

      Description

      This script crashes mysqld:

      set @@time_zone='+00:00';
      drop table if exists t1;
      create table t1 (a datetime(4) not null);
      insert into t1 values ('2001-01-01 00:00:00'),('2000-00-00 00:00:00');
      select unix_timestamp(a) from t1 order by 1;
      

        Activity

        Hide
        Alexander Barkov added a comment - - edited

        The problem seems to be in a missing call for:
        set_persist_maybe_null(1);
        which was added in 5.5.

        Show
        Alexander Barkov added a comment - - edited The problem seems to be in a missing call for: set_persist_maybe_null(1); which was added in 5.5.
        Hide
        Alexander Barkov added a comment -

        Fixed. Pushed into 5.3.13 and 5.5.32.

        Show
        Alexander Barkov added a comment - Fixed. Pushed into 5.3.13 and 5.5.32.

          People

          • Assignee:
            Alexander Barkov
            Reporter:
            Alexander Barkov
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: