summaryrefslogtreecommitdiff
path: root/sql/item_create.cc
diff options
context:
space:
mode:
authorjimw@mysql.com <>2005-08-11 18:58:22 -0700
committerjimw@mysql.com <>2005-08-11 18:58:22 -0700
commit898aae5e0f13a3461699e447a559247474a5b2e1 (patch)
tree7938a2593a4978018f3aaa25e99fa2e4c2e47b79 /sql/item_create.cc
parent7d1c4bc3c96bccdae1289bf40eb6464c7d1ec2d8 (diff)
downloadmariadb-git-898aae5e0f13a3461699e447a559247474a5b2e1.tar.gz
Add SLEEP(seconds) function, which always returns 0 after the given
number of seconds (which can include microseconds). (Bug #6760)
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r--sql/item_create.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc
index b7d8d50f9b3..8798bf889fc 100644
--- a/sql/item_create.cc
+++ b/sql/item_create.cc
@@ -354,6 +354,11 @@ Item *create_func_sha(Item* a)
return new Item_func_sha(a);
}
+Item *create_func_sleep(Item* a)
+{
+ return new Item_func_sleep(a);
+}
+
Item *create_func_space(Item *a)
{
CHARSET_INFO *cs= current_thd->variables.collation_connection;