You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Add support for zero date separate to NULL
NULL is now pushed through the MariaDB storage engine plugin down to the insert processing. A '0000-00-00' date is now a separate value to NULL. This is more in-line with MariaDB's handling.
This commit is contained in:
@ -1105,13 +1105,6 @@ boost::any
|
||||
|
||||
case CalpontSystemCatalog::DATE:
|
||||
{
|
||||
if (data == "0000-00-00") //@Bug 3210 Treat blank date as null
|
||||
{
|
||||
uint32_t d = joblist::DATENULL;
|
||||
value = d;
|
||||
break;
|
||||
}
|
||||
|
||||
Date aDay;
|
||||
if (stringToDateStruct(data, aDay))
|
||||
{
|
||||
@ -1135,13 +1128,6 @@ boost::any
|
||||
|
||||
case CalpontSystemCatalog::DATETIME:
|
||||
{
|
||||
if (data == "0000-00-00 00:00:00") //@Bug 3210 Treat blank date as null
|
||||
{
|
||||
uint64_t d = joblist::DATETIMENULL;
|
||||
value = d;
|
||||
break;
|
||||
}
|
||||
|
||||
DateTime aDatetime;
|
||||
if (stringToDatetimeStruct(data, aDatetime, 0))
|
||||
{
|
||||
|
Reference in New Issue
Block a user