diff options
author | monty@hundin.mysql.fi <> | 2002-01-03 00:46:43 +0200 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2002-01-03 00:46:43 +0200 |
commit | 2597b1aadd45f166c2c8efe04d0e5444e4389ea6 (patch) | |
tree | 4e18e3ee4d74189f2a784d419334e02f025eacd1 /sql/item_timefunc.cc | |
parent | b0ea238d2ea39e24b4d47be6cd671702fb94f59c (diff) | |
download | mariadb-git-2597b1aadd45f166c2c8efe04d0e5444e4389ea6.tar.gz |
New CAST syntax
Cleanup of multi-table-delete in sql_yacc.yy
Changed syntax of MAXIMUM QUERIES PER HOUR to MAX_QUERIES_PER_HOUR to
not get too many reserved words.
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r-- | sql/item_timefunc.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 2b1bb9cae0e..9c29b594621 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -1123,3 +1123,13 @@ longlong Item_extract::val_int() } return 0; // Impossible } + + +void Item_typecast::print(String *str) +{ + str->append("CASE("); + args[0]->print(str); + str->append(" AS "); + str->append(func_name()); + str->append(')'); +} |