<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>13 Feb 2016 21:06:00 Z</lastBuildDate><pubDate>12 Feb 2016 16:36:00 Z</pubDate><description>This is a strange problem...&#13;
I have in analysis (mysql tables) a table with a timestamp field whose default value is CURRENT_TIMESTAMP (defined on MySql). So in analysis I see it as DateTime field with "NULL authorized" check disabled, as expeced, and empty default value.&#13;
&#13;
When I insert a record my HAdd gives an error telling that that field cannot be null. This due to the fact that I never assign a value to that field in my code for triggering Mysql to fill it with default CURRENT_TIMESTAMP.&#13;
I sniffed the mysql queries and I saw that the query made by the engine to Mysql tries to assign NULL to that field, as If a Hadd has to set ALL table fields.&#13;
&#13;
When I worked witb MySql 5.6 if I set the field to NULL (even if null was not allowed) it run fine... With 5.7 it does not accept this trick anymore.&#13;
The only way I found to keep out the field with CURRENT_TIMESTAMP default value is to delete it from the datafile in analysis... Bad solution because I need to remove it by hand each time I resync the analysis... Is there another way?&#13;
With a query by hand it's fine, I would like to make run HAdd&#13;
&#13;
Thank you.</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd/read.awp</link><title>Keep out a field from HAdd</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56415/read.awp</comments><pubDate>13 Feb 2016 21:06:00 Z</pubDate><description>Hey StefanoG,&#13;
&#13;
using the native access and you have an item in the analysis that must have the value NULL when you write the r…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56415/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56415/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd/read.awp">Keep out a field from HAdd</source><title>Re: Keep out a field from HAdd</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56408/read.awp</comments><pubDate>13 Feb 2016 14:17:00 Z</pubDate><description>Any trick is ok for me. Even removing the field from analysis. That solved the problem. My hope was having a standard way to do …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56408/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56408/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd/read.awp">Keep out a field from HAdd</source><title>Re: Keep out a field from HAdd</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56399/read.awp</comments><pubDate>12 Feb 2016 19:49:00 Z</pubDate><description>filling the field with one trigger on mysql instead of default value is acceptable for you?</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56399/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56399/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd/read.awp">Keep out a field from HAdd</source><title>Re: Keep out a field from HAdd</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56398/read.awp</comments><pubDate>12 Feb 2016 19:23:00 Z</pubDate><description>Sure but it is machine client timestamp not mysql's</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56398/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56398/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd/read.awp">Keep out a field from HAdd</source><title>Re: Keep out a field from HAdd</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56396/read.awp</comments><pubDate>12 Feb 2016 18:30:00 Z</pubDate><description>if you fill it with datesys()+timesys() it works?</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56396/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56396/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd/read.awp">Keep out a field from HAdd</source><title>Re: Keep out a field from HAdd</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56395/read.awp</comments><pubDate>12 Feb 2016 17:51:00 Z</pubDate><description>In analysis the field has null always disallowed.&#13;
As in Mysql. It's a specific timestamp value, for my use it cannot be null.&#13;
…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56395/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56395/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd/read.awp">Keep out a field from HAdd</source><title>Re: Keep out a field from HAdd</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56394/read.awp</comments><pubDate>12 Feb 2016 17:32:00 Z</pubDate><description>Yes, Hadd set all the table fields.&#13;
&#13;
If the only change is the mysql version probably it's one change in the behaviour between…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56394/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd-56394/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56393-keep-out-field-from-hadd/read.awp">Keep out a field from HAdd</source><title>Re: Keep out a field from HAdd</title></item></channel></rss>
