• Resolved Andrew Hutchings

    (@l1nuxjedi)


    In the code you check for the MariaDB version using this:

     if ( $isMaria && $results->major >= 10 && $results->minor >= 3 ) {
          $results->unconstrained = 1;
    
          return ImfsQueries::makeNumeric( $results );
        }
     /* mariadb 10.2 ar before */
     if ( $isMaria && $results->major >= 10 ) {
          $results->unconstrained = ImfsQueries::hasLargePrefix();
    
          return ImfsQueries::makeNumeric( $results );
        }

    We just released 11.0 GA which means the first “if” will fail because the minor is < 3. Given that 10.2 hasn’t been supported for over a year I recommend just doing if ( $isMaria ) and dropping the second case.

    Thanks!
    Andrew Hutchings
    MariaDB Foundation

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author OllieJones

    (@olliejones)

    Thanks! Update coming soon.

    One wishes MariaDB (and MySQL) had a reliable and permanent have_barracuda server variable, to avoid all that monkey business about server versions just to know whether the maximum indexable utfmb4 string is 191 or 768. But it doesn’t.

    Plugin Author OllieJones

    (@olliejones)

    Corrected in version 1.4.13. Thanks again for the defect report.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘MariaDB version check issue’ is closed to new replies.