EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB484511: Memory corruption may occur when parameterized query is enabled for MySQL against certain MySQL 8.0 ODBC driver versions


Yuwei Yang

Quality Engineer, Senior • MicroStrategy


This article explains why after enabling parameterized query, memory corruption may occur for MySQL against certain MySQL 8.0 driver versions. This article also provides a workaround to avoid this issue.

Description 


In the Strategy 2021 release, parameterized query is enabled by default for all newly created database connections against a list of Strategy certified Diamond and Platinum Gateways. With the parameterized query option enabled, reports containing text filters and prompts are executed using parameter markers during SQL execution.
However, some SQL query can cause memory corruption when parameterized query is enabled against MySQL 8.0 ODBC driver versions prior to 8.0.21.
The following is example of a problem SQL query:


select    distinct `pa11`.`CUSTOMER_ID`  `CUSTOMER_ID`, 

    CONCAT(`a12`.`CUST_LAST_NAME`, `a12`.`CUST_FIRST_NAME`)  `CustCol_12`, 

    CONCAT((Case when `pa11`.`WJXBFS1` = ? then ? else ? end), `pa11`.`WJXBFS1`)  `WJXBFS1` 

from    (select    `a11`.`CUSTOMER_ID`  `CUSTOMER_ID`, 

        max(CONCAT(`a11`.`CUST_LAST_NAME`, `a11`.`CUST_FIRST_NAME`))  `WJXBFS1` 

    from    `lu_customer`    `a11` 

    group by    `a11`.`CUSTOMER_ID` 

    )    `pa11` 

    join    `lu_customer`    `a12` 

      on     (`pa11`.`CUSTOMER_ID` = `a12`.`CUSTOMER_ID`) 

With parameters:

丁勤毅 

    真 

    假 

Solution 


This defect is know by MySQL and a fix is being addressed in Connector/ODBC 8.0.22 release. Please try working around the problem by upgrading the ODBC driver version to 8.0.22.


Comment

0 comments

Details

Knowledge Article

Published:

August 13, 2020

Last Updated:

December 20, 2020