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:
@ -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; }
|
||||
|
Reference in New Issue
Block a user