<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 427: Value '0000-00-00' is not valid for MySQL data type DATE</title><link>https://sourceforge.net/p/openemr/bugs/427/</link><description>Recent changes to 427: Value '0000-00-00' is not valid for MySQL data type DATE</description><atom:link href="https://sourceforge.net/p/openemr/bugs/427/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 17 Jun 2016 03:43:15 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/openemr/bugs/427/feed.rss" rel="self" type="application/rss+xml"/><item><title>#427 Value '0000-00-00' is not valid for MySQL data type DATE</title><link>https://sourceforge.net/p/openemr/bugs/427/?limit=25#abb1</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This bug is being discussed in the following thread:&lt;br/&gt;
&lt;a href="https://sourceforge.net/p/openemr/discussion/202506/thread/55600ab2/"&gt;https://sourceforge.net/p/openemr/discussion/202506/thread/55600ab2/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brady Miller</dc:creator><pubDate>Fri, 17 Jun 2016 03:43:15 -0000</pubDate><guid>https://sourceforge.net2aa9456941b98213ed36e82f914e488baa1a98db</guid></item><item><title>#427 Value '0000-00-00' is not valid for MySQL data type DATE</title><link>https://sourceforge.net/p/openemr/bugs/427/?limit=25#c7c3</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am thinking that Oleg has the best idea.  If there is no disagreement, we can go ahead and make these changes and have them submitted to the community.  Are there any objections or unforseen problems that haven't been mentioned?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Pflieger</dc:creator><pubDate>Tue, 14 Jun 2016 00:12:30 -0000</pubDate><guid>https://sourceforge.neted55bf863eddfa1142f69771963551b17b9b4148</guid></item><item><title>#427 Value '0000-00-00' is not valid for MySQL data type DATE</title><link>https://sourceforge.net/p/openemr/bugs/427/?limit=25#d9d6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I belive that for the tables: amendments, amendments_history, batchcom we can replace 0000-00-00 with CURRENT_TIMESTAMP without touching the code.&lt;/p&gt;
&lt;p&gt;insurance_data will require a small fix in the code.&lt;/p&gt;
&lt;p&gt;drugs and drug_inventory will require a fix. &lt;/p&gt;
&lt;p&gt;Replacing zeros in openemr_postcalendar_events requires a fix.&lt;/p&gt;
&lt;p&gt;There's an INSERT INTO &lt;code&gt;automatic_notification&lt;/code&gt; clause that needs to be changed as well.&lt;/p&gt;
&lt;p&gt;example_patient_data needs to be changed.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Oleg Sverdlov</dc:creator><pubDate>Mon, 16 May 2016 11:49:45 -0000</pubDate><guid>https://sourceforge.nete5c8d1e00f9662ce2ec4e7d9156d703fca2cccff</guid></item><item><title>#427 Value '0000-00-00' is not valid for MySQL data type DATE</title><link>https://sourceforge.net/p/openemr/bugs/427/?limit=25#d029</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The NO_ZERO_DATE was deprecated in MySQL 5.6 and does nothing in 5.7.&lt;br/&gt;
&lt;/p&gt;
&lt;p&gt;If true support for transactions is a requirement (compatibility with STRICT_TRANS_MODE=on)&lt;br/&gt;
, then references to 0000-00-00 would need to be addressed.  Either by switching to TIMESTAMP or by using a different default value.  How the calendar would treat 1000-01-01 is not something I'm sure about, and there are probably other instances where dates are used with 0000-00-00 that aren't just for the calendar.&lt;/p&gt;
&lt;p&gt;There are many other instances throughout the codebase that are incompatible with strict transaction that would need to be addressed which would require thorough analysis and testing.  TEXT NOT NULL columns is an issue I vaguely remember encountering in the past when experimenting with strict transactions.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Yeh</dc:creator><pubDate>Mon, 16 May 2016 11:14:30 -0000</pubDate><guid>https://sourceforge.netc815e186c3f48d4b5d4898a8464f1ea2bf334e00</guid></item><item><title>#427 Value '0000-00-00' is not valid for MySQL data type DATE</title><link>https://sourceforge.net/p/openemr/bugs/427/?limit=25#59e1</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;: Release_4.2.1 --&amp;gt; Development_Release&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Oleg Sverdlov</dc:creator><pubDate>Mon, 16 May 2016 10:13:02 -0000</pubDate><guid>https://sourceforge.net388c5f4544cd658c0e65bab70b0e12b773a246de</guid></item><item><title>#427 Value '0000-00-00' is not valid for MySQL data type DATE</title><link>https://sourceforge.net/p/openemr/bugs/427/?limit=25#5b48</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Some info on this here:&lt;br/&gt;
&lt;a href="http://dev.mysql.com/doc/refman/5.7/en/sql-mode.html" rel="nofollow"&gt;http://dev.mysql.com/doc/refman/5.7/en/sql-mode.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note this has been indirectly addressed in the most recent codebase where sql_mode is set to '' explicitly in OpenEMR:&lt;br/&gt;
&lt;a href="https://github.com/openemr/openemr/commit/e7aa71059534321b660eaa9a8e5fda994914c574" rel="nofollow"&gt;https://github.com/openemr/openemr/commit/e7aa71059534321b660eaa9a8e5fda994914c574&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-brady&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brady Miller</dc:creator><pubDate>Mon, 02 May 2016 05:51:42 -0000</pubDate><guid>https://sourceforge.net29faaad96b8e297ab0d5540d0bd423da2763e68d</guid></item><item><title>#427 Value '0000-00-00' is not valid for MySQL data type DATE</title><link>https://sourceforge.net/p/openemr/bugs/427/?limit=25#12c2</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I believe that whether 0000-00-00 is allowed is a MySQL option.  See the documentation for your MySQL version regarding NO_ZERO_DATE and perhaps also "strict mode".  It's likely a matter of updating my.ini (Windows) or my.cnf (*nix).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rod Roark</dc:creator><pubDate>Mon, 02 May 2016 05:47:37 -0000</pubDate><guid>https://sourceforge.netedd15e2820affc6927055e9367105c3ef74dccfb</guid></item><item><title>Value '0000-00-00' is not valid for MySQL data type DATE</title><link>https://sourceforge.net/p/openemr/bugs/427/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Following sql are not valid:&lt;br/&gt;
  openemr/sql/2_8_2-to-2_8_3_upgrade.sql (1 hit)&lt;br/&gt;
    Line 116:   MODIFY &lt;code&gt;date&lt;/code&gt; date NOT NULL DEFAULT '0000-00-00',&lt;br/&gt;
  openemr/sq/database.sql (5 hits)&lt;br/&gt;
    Line 950:   &lt;code&gt;last_notify&lt;/code&gt; date NOT NULL default '0000-00-00',&lt;br/&gt;
    Line 1015:   &lt;code&gt;last_notify&lt;/code&gt; date NOT NULL default '0000-00-00',&lt;br/&gt;
    Line 2506:   &lt;code&gt;date&lt;/code&gt; date NOT NULL default '0000-00-00',&lt;br/&gt;
    Line 4785:   &lt;code&gt;pc_eventDate&lt;/code&gt; date NOT NULL default '0000-00-00',&lt;br/&gt;
    Line 4786:   &lt;code&gt;pc_endDate&lt;/code&gt; date NOT NULL default '0000-00-00',&lt;/p&gt;
&lt;p&gt;Date value '0000-00-00' does not work in MySQL 5.5.49-win32.&lt;br/&gt;
 It could be fixed by modifying them into '1000-01-01' as min date for MySQL.&lt;br/&gt;
 If keep using '0000-00-00', then change the data type become TIMESTAMP insteda of DATE&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wahyudi Arifandi</dc:creator><pubDate>Mon, 02 May 2016 05:06:58 -0000</pubDate><guid>https://sourceforge.net0b0f31caf2b839100520da23763570480bbe0909</guid></item><item><title>Value '0000-00-00' is not valid for MySQL data type DATE</title><link>https://sourceforge.net/p/openemr/bugs/427/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 427 has been modified: Value '0000-00-00' is not valid for MySQL data type DATE&lt;br/&gt;
Edited By: Oleg Sverdlov (osverdlov)&lt;br/&gt;
_milestone updated: u'Release_4.2.1' =&amp;gt; u'Development_Release'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wahyudi Arifandi</dc:creator><pubDate>Mon, 02 May 2016 05:06:58 -0000</pubDate><guid>https://sourceforge.net06d408caaefa68f4c0801e6ffceab1ceedb7a74b</guid></item></channel></rss>