<!-- 
RSS generated by JIRA (8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a) at Sat Feb 10 07:16:24 CET 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Jira</title>
    <link>https://jira.astppbilling.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.13.3</version>
        <build-number>813003</build-number>
        <build-date>14-01-2021</build-date>
    </build-info>


<item>
            <title>[ASTPPCOM-357] 0000-00-00 is not a valid date. Set it to something more valid.</title>
                <link>https://jira.astppbilling.org/browse/ASTPPCOM-357</link>
                <project id="10608" key="ASTPPCOM">ASTPP Community</project>
                    <description>&lt;p&gt;This will probably need someone caring about it, because if anyone&lt;br/&gt;
ever tries to upgrade their MySQL version, I&apos;m not actually sure what&lt;br/&gt;
will happen with invalid data like this. It probably will be worth testing.&lt;/p&gt;

&lt;p&gt;Probably a good idea to have an upgrade script that updates everything in&lt;br/&gt;
the database as part of 3.6, and warn people that they can&apos;t upgrade&lt;br/&gt;
MySQL until this is run, because it&apos;ll eat their data.&lt;/p&gt;

&lt;p&gt;Signed-Off-By: Rob Thomas &amp;lt;xrobau@gmail.com&amp;gt;&lt;br/&gt;
Signed-Off-By: Rob Thomas &amp;lt;rthomas@sangoma.com&amp;gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="12177">ASTPPCOM-357</key>
            <summary>0000-00-00 is not a valid date. Set it to something more valid.</summary>
                <type id="10201" iconUrl="https://jira.astppbilling.org/secure/viewavatar?size=xsmall&amp;avatarId=10700&amp;avatarType=issuetype">New Feature</type>
                                                <status id="10001" iconUrl="https://jira.astppbilling.org/images/icons/status_generic.gif" description="">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="samir.doshi">Samir Doshi</assignee>
                                    <reporter username="xrobau">Rob Thomas</reporter>
                        <labels>
                    </labels>
                <created>Mon, 2 Apr 2018 03:04:55 +0530</created>
                <updated>Thu, 1 Apr 2021 18:57:31 +0530</updated>
                            <resolved>Thu, 1 Apr 2021 18:57:31 +0530</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                <comments>
                            <comment id="13235" author="xrobau" created="Wed, 4 Apr 2018 03:07:18 +0530"  >&lt;p&gt;The other option is to set it to NULL, rather than 0000.  I&apos;ve found a bunch of other issues with CDRs when things are missing, that it&apos;s probably better to use NULL rather than a random hardcoded date.&lt;/p&gt;</comment>
                            <comment id="13236" author="xrobau" created="Wed, 4 Apr 2018 03:13:32 +0530"  >&lt;p&gt;You can see my first stab at it here: &lt;a href=&quot;https://github.com/xrobau/ASTPP/commit/811e2ad6114160d196ed2cdd7ebbd4ed0b82e195#diff-2d3963eeca4f9b003b26dd9a83d1e8efR346&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/xrobau/ASTPP/commit/811e2ad6114160d196ed2cdd7ebbd4ed0b82e195#diff-2d3963eeca4f9b003b26dd9a83d1e8efR346&lt;/a&gt; - but I&apos;m not sure how you want to do it.  Personally, I would generate the entire insert as a key =&amp;gt; val array, and then use that to generate the SQL Insert. &lt;/p&gt;

&lt;p&gt;Similar to this code: &lt;a href=&quot;https://github.com/FreePBX/framework/blob/release/13.0/amp_conf/htdocs/admin/libraries/BMO/Freepbx_conf.class.php#L1036&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/FreePBX/framework/blob/release/13.0/amp_conf/htdocs/admin/libraries/BMO/Freepbx_conf.class.php#L1036&lt;/a&gt; &lt;/p&gt;</comment>
                            <comment id="13237" author="smrdoshi" created="Wed, 4 Apr 2018 19:07:14 +0530"  >&lt;p&gt;Got it but I realize the validate date patches will create a problem for existing users as their database tables already have records with 0000-00-00 00:00:00 date. &lt;/p&gt;

&lt;p&gt;So If we need to replace it with validate date then need to plan about it. &lt;/p&gt;

&lt;p&gt;On other hand I am wondering what difference it will make If we will start using 1980-01-01 00:00:00 inplace of 0000-00-00 00:00:00. At this moment, system will also working fine with 0000-00-00 00:00:00 format. &lt;/p&gt;</comment>
                            <comment id="13238" author="xrobau" created="Fri, 6 Apr 2018 00:23:57 +0530"  >&lt;p&gt;0000-00-00 is no longer a valid datetime.&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: `.&lt;/span&gt; Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml&lt;/div&gt;&lt;pre&gt;
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 351989
Server version: 5.5.56-MariaDB MariaDB Server

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type &lt;span class=&quot;code-quote&quot;&gt;&apos;help;&apos;&lt;/span&gt; or &lt;span class=&quot;code-quote&quot;&gt;&apos;\h&apos;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; help. Type &lt;span class=&quot;code-quote&quot;&gt;&apos;\c&apos;&lt;/span&gt; to clear the current input statement.

MariaDB [(none)]&amp;gt; connect asterisk
Reading table information &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; completion of table and column names
You can turn off &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; feature to get a quicker startup with -A

Connection id:    351990
Current database: asterisk

MariaDB [asterisk]&amp;gt; create table x ( y datetime &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; );
Query OK, 0 rows affected (0.02 sec)

MariaDB [asterisk]&amp;gt; insert into x values ( &lt;span class=&quot;code-quote&quot;&gt;&apos;0000-00-00 00:00:00&apos;&lt;/span&gt; );
Query OK, 1 row affected (0.01 sec)

MariaDB [asterisk]&amp;gt; drop table x;
Query OK, 0 rows affected (0.01 sec)

MariaDB [asterisk]&amp;gt; \q
Bye
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;`&lt;/p&gt;

&lt;p&gt;But on 5.7&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: `.&lt;/span&gt; Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml&lt;/div&gt;&lt;pre&gt;
[root@db-1 ~]# mysql freeswitch
Reading table information &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; completion of table and column names
You can turn off &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1677352
Server version: 5.7.21-20-57-log Percona XtraDB Cluster (GPL), Release rel20, Revision 1702aea, WSREP version 29.26, wsrep_29.26

Copyright (c) 2009-2018 Percona LLC and/or its affiliates
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type &lt;span class=&quot;code-quote&quot;&gt;&apos;help;&apos;&lt;/span&gt; or &lt;span class=&quot;code-quote&quot;&gt;&apos;\h&apos;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; help. Type &lt;span class=&quot;code-quote&quot;&gt;&apos;\c&apos;&lt;/span&gt; to clear the current input statement.

mysql&amp;gt; create table x ( y datetime &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; );
Query OK, 0 rows affected (0.01 sec)

mysql&amp;gt; insert into x values ( &lt;span class=&quot;code-quote&quot;&gt;&apos;0000-00-00 00:00:00&apos;&lt;/span&gt; );
ERROR 1292 (22007): Incorrect datetime value: &lt;span class=&quot;code-quote&quot;&gt;&apos;0000-00-00 00:00:00&apos;&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; column &lt;span class=&quot;code-quote&quot;&gt;&apos;y&apos;&lt;/span&gt; at row 1
mysql&amp;gt; drop table x;
Query OK, 0 rows affected (0.01 sec)

mysql&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;`&lt;/p&gt;

&lt;p&gt;However, as I&apos;m working through these bugs, I think it will be better to just remove the &apos;not null&apos; restriction, and use NULL instead.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10703" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>357</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10006" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i00au7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>