1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Fixing return value.

This commit is contained in:
mkindahl@dl145h.mysql.com
2008-01-30 17:35:25 +01:00
parent 219a75056a
commit 31355747d2
2 changed files with 2 additions and 2 deletions

View File

@@ -947,7 +947,7 @@ get_datetime_value(THD *thd, Item ***item_arg, Item **cache_arg,
*is_null= item->null_value; *is_null= item->null_value;
} }
if (*is_null) if (*is_null)
return ~(ulonglong) -1; return ~(ulonglong) 0;
/* /*
Convert strings to the integer DATE/DATETIME representation. Convert strings to the integer DATE/DATETIME representation.
Even if both dates provided in strings we can't compare them directly as Even if both dates provided in strings we can't compare them directly as

View File

@@ -164,7 +164,7 @@ uint32 table_def::calc_field_size(uint col, uchar *master_data) const
break; break;
} }
default: default:
length= ~(uint32) -1; length= ~(uint32) 0;
} }
return length; return length;
} }