<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [Ubuntu 20.04/MySQL 8.0] Upgrade to latest version broke existing queries in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ubuntu-20-04-MySQL-8-0-Upgrade-to-latest-version-broke-existing/m-p/76410#M47732</link>
    <description>&lt;P&gt;&lt;A href="https://maheenandco.com/product/hoodies/" target="_self"&gt;https://maheenandco.com/product/hoodies/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 May 2021 17:20:26 GMT</pubDate>
    <dc:creator>Pavlavcalm</dc:creator>
    <dc:date>2021-05-21T17:20:26Z</dc:date>
    <item>
      <title>[Ubuntu 20.04/MySQL 8.0] Upgrade to latest version broke existing queries</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ubuntu-20-04-MySQL-8-0-Upgrade-to-latest-version-broke-existing/m-p/74010#M45933</link>
      <description>&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;OS: Ubuntu 20.04.1 LTS&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;MySQL: Ver 8.0.22-0ubuntu0.20.04.2 for Linux on x86_64 ((Ubuntu))&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Hey everybody,&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I f*cked up this morning by upgrading my laptops OS version from Ubuntu 18.04 to 20.04. Afterwards my mysql connections weren't running properly anymore so I completely reinstalled mysql. I've finally gotten to a point again where I can connect to my server and select data but I have one problem.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Previously&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;(unsure which mysql version I used before)&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;you were allowed to create statements comparing date fields with values in single quotes, example:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM myUsers WHERE loginDate = '0';&lt;/PRE&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;'0' isn't a valid datetime but this shouldn't be the problem, mysql used to automatically and correctly convert the statement to a proper date comparison against a zero date but this is not working anymore. A simple query like the one above fails with the error:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Error Code: 1525. Incorrect DATETIME value: '0'&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I've already checked the sql_mode&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;(as I'm aware of the "NO_ZERO_DATE" etc. options from previous versions)&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and have currently set it to "ALLOW_INVALID_DATES,NO_ENGINE_SUBSTITUTION" in my.cnf and restarted the service to no success.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;What's surprising is that the following statement will work:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM myUsers WHERE loginDate = 0;&lt;/PRE&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;So without the single quotes.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Here's the problem: I'm developing several applications, most of them created by a former employee and there are a lot of date checks in the files that use single quotes for date comparisons and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;fixing&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;every statement would take days.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Is there an option I'm missing to allow '0' checks again against date fields like it used to work in the previous version?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 06:00:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ubuntu-20-04-MySQL-8-0-Upgrade-to-latest-version-broke-existing/m-p/74010#M45933</guid>
      <dc:creator>Berlin77</dc:creator>
      <dc:date>2020-11-17T06:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: [Ubuntu 20.04/MySQL 8.0] Upgrade to latest version broke existing queries</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ubuntu-20-04-MySQL-8-0-Upgrade-to-latest-version-broke-existing/m-p/76410#M47732</link>
      <description>&lt;P&gt;&lt;A href="https://maheenandco.com/product/hoodies/" target="_self"&gt;https://maheenandco.com/product/hoodies/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 17:20:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Ubuntu-20-04-MySQL-8-0-Upgrade-to-latest-version-broke-existing/m-p/76410#M47732</guid>
      <dc:creator>Pavlavcalm</dc:creator>
      <dc:date>2021-05-21T17:20:26Z</dc:date>
    </item>
  </channel>
</rss>

