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 #7819 is a reply to message #7818] Sun, 26 March 2023 05:29 Go to previous messageGo to previous message
htManager is currently offline  htManager
Messages: 439
Registered: May 2014
Senior Member
Yes, I know. I thought that if I set NULL as default in the table structure, this would be made automatically. I attached a picture of my table structure.

If I execute "INSERT INTO test_datum SET `id`='4', `test_datum`=NULL" instead of "INSERT INTO test_datum SET `id`='4', `test_datum`=''" the record will be inserted correctly without "0000-00-00".

Is there a setting to handle a blank value '' explecitly as NULL?
 
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: Thu Nov 28 20:36:35 EST 2024

Total time taken to generate the page: 0.01244 seconds