We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5811
    • 1,717 Posts
    MYSQL Bug #35298 - GROUP_CONCAT with DISTINCT can crash the server

    Description:
    The combination of GROUP_CONCAT, DISTINCT and LEFT JOIN can crash the server when ther are no matching rows in the join_table. Works fine in 5.0.52, 5.0.54. In 5.0.56 it crashes when using MyISAM or MEMORY tables but not with INNODB.

    And MySql Bug #35945 and bug #36024 were marked as duplicates of the bug #35298.
    A MySql patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/45589

    The combination of GROUP_CONCAT(), DISTINCT, and LEFT JOIN could crash the server when the right table is empty.
    Noted also in 5.0.62, 5.1.25, 6.0.6 changelogs.

      • 10612
      • 11 Posts
      to coroico
      my version MySQL 5.0.45-community
      and phpMyAdmin 2.6.1
        • 10612
        • 11 Posts
        results:
        Your SQL-query has been executed successfully (Query took 0.0013 sec) 
        SQL-query: 
        SELECT sc.id, sc.pagetitle, sc.longtitle, sc.description, sc.alias, sc.introtext, sc.menutitle, sc.content, sc.publishedon
        FROM `modx_site_content` sc
        WHERE (
        (
        sc.published =1
        )
        AND (
        sc.searchable =1
        )
        AND (
        sc.deleted =0
        )
        AND (
        sc.type = 'document'
        )
        AND (
        sc.privateweb =0
        )
        )
        GROUP BY sc.id
        HAVING (
        (
        (
        sc.pagetitle LIKE '%deco%'
        )
        OR (
        sc.longtitle LIKE '%deco%'
        )
        OR (
        sc.description LIKE '%deco%'
        )
        OR (
        sc.alias LIKE '%deco%'
        )
        OR (
        sc.introtext LIKE '%deco%'
        )
        OR (
        sc.menutitle LIKE '%deco%'
        )
        OR (
        sc.content LIKE '%deco%'
        )
        )
        )
        ORDER BY sc.publishedon, sc.pagetitle
        LIMIT 0 , 30
          • 5811
          • 1,717 Posts
          @geforcefx

          What is the question ? is it this one ?
          what is it?
          all version of ajaxsearch dont work with modx-0.9.6.3-rc1
          Which version of AS do you use ? Could you explain the issue and results. Thanks.
            • 10612
            • 11 Posts
            ajaxsearch 1.7.1 and 1.8.1 cp1251&utf8 bad work with modx-0.9.6.3-rc1
              • 10612
              • 11 Posts
              when ajax search showing results in ajax popup (russian with utf8)
                • 5811
                • 1,717 Posts
                @geforcefx

                I couldn’t run test with Russian language files. Tests with French and English runs well.
                Could you describe exactly the issue with Russian languages. Did you discuss inside the Russian community to know if an other guy has the same problem ?

                Could you add &debug=`3` in your snippet call and post here your snippet calls and your ajaxSearch_log.txt
                  • 10612
                  • 11 Posts
                  Russian community don want help me