mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix for BUG#42980 "Client doesn't set NUM_FLAG for DECIMAL and TIMESTAMP":
DECIMAL and TIMESTAMP used to have NUM_FLAG, but NEWDECIMAL was forgotten. It's correct that TIMESTAMP does not have the flag nowadays (manual will be updated, connectors developers will be notified).
This commit is contained in:
@ -3316,7 +3316,7 @@ static void dump_table(char *table, char *db)
|
||||
{
|
||||
if (length)
|
||||
{
|
||||
if (!IS_NUM_FIELD(field))
|
||||
if (!(field->flags & NUM_FLAG))
|
||||
{
|
||||
/*
|
||||
"length * 2 + 2" is OK for both HEX and non-HEX modes:
|
||||
@ -3384,7 +3384,7 @@ static void dump_table(char *table, char *db)
|
||||
}
|
||||
if (row[i])
|
||||
{
|
||||
if (!IS_NUM_FIELD(field))
|
||||
if (!(field->flags & NUM_FLAG))
|
||||
{
|
||||
if (opt_xml)
|
||||
{
|
||||
|
Reference in New Issue
Block a user