This change was suggested by Serg during the review of
Let's implement sql_type() in abstract classes as much as possible. It will reduce the amout of the code:
- in the built-in Field_xxx classes
- in the future plugin Field_xxx classes
Note, this task is limited to Field_real and Field_int only. Other classes will be changed the same way later.
Let's remove sql_type() implementations from:
The inherited implementations will work for these classes. The exact data type name will be taken from the Type_handler.
The implementation for the abstract classes will look like: