summaryrefslogtreecommitdiff
path: root/sql/sp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sp.cc')
-rw-r--r--sql/sp.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sp.cc b/sql/sp.cc
index 49b8b304e76..d96e4295a83 100644
--- a/sql/sp.cc
+++ b/sql/sp.cc
@@ -784,7 +784,9 @@ db_show_routine_status(THD *thd, int type, const char *wild)
{
switch (used_field->field_type) {
case MYSQL_TYPE_TIMESTAMP:
- field_list.push_back(item=new Item_datetime(used_field->field_name));
+ field_list.push_back(item=
+ new Item_return_date_time(used_field->field_name,
+ MYSQL_TYPE_DATETIME));
break;
default:
field_list.push_back(item=new Item_empty_string(used_field->field_name,