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

cleanup: data type plugins

simplify type naming (less boilerplate code).
don't force a plugin to specify the name twice.
This commit is contained in:
Sergei Golubchik
2019-10-11 14:12:38 +02:00
parent 779978217c
commit 00c3a28820
15 changed files with 181 additions and 450 deletions

View File

@ -109,8 +109,9 @@ public:
{ max_length=11; }
const Type_handler *type_handler() const
{
return unsigned_flag ? &type_handler_ulonglong :
&type_handler_slonglong;
if (unsigned_flag)
return &type_handler_ulonglong;
return &type_handler_slonglong;
}
void set(double nr) { value=(longlong) nr; }
void set(longlong nr) { value=nr; }