1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug#8861 - If Return is a YEAR data type, value is not shown in year format

Bug partially fixed by 9775/9102 work on SP function return.
This commit is contained in:
acurtis@xiphis.org
2005-04-21 13:22:47 +01:00
parent 8689083aca
commit f67507588f
3 changed files with 24 additions and 0 deletions

View File

@ -774,6 +774,7 @@ bool Protocol_simple::store(const char *from, uint length,
#ifndef DEBUG_OFF
DBUG_ASSERT(field_types == 0 ||
field_types[field_pos] == MYSQL_TYPE_DECIMAL ||
field_types[field_pos] == MYSQL_TYPE_YEAR ||
field_types[field_pos] == MYSQL_TYPE_BIT ||
field_types[field_pos] == MYSQL_TYPE_NEWDECIMAL ||
(field_types[field_pos] >= MYSQL_TYPE_ENUM &&