Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » Error with date field
Re: Error with date field [message #7821 is a reply to message #7820] Mon, 27 March 2023 05:18 Go to previous messageGo to previous message
htManager is currently offline  htManager
Messages: 434
Registered: May 2014
Senior Member
I tried. I tried it in the _cm_pre_insertRecord() and in the _cm_post_insertRecord() method with the following code:

if ($fieldarray['test_datum'] == '') {
$fieldarray['test_datum'] = NULL;
}

Without success. The DBMS inserts '0000-00-00'.

The only way to handle this behaviour at the moment is to insert the record and then to delete the '0000-00-00' values manually.

This happens in my local xampp installation, but in my internet server installation as well.

It isn't obviously a Radicore problem. So I think I will wait for a new version of mysql ...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PHP 8 - ListViewPrintAfter()
Next Topic: File classes/mnu_chart.class.inc is missing
Goto Forum:
  


Current Time: Mon Nov 25 02:35:49 EST 2024

Total time taken to generate the page: 0.02201 seconds