List:Commits« Previous MessageNext Message »
From:ahristov Date:January 26 2006 8:26pm
Subject:bk commit into 5.1 tree (andrey:1.2078)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of andrey. When andrey does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2078 06/01/26 21:26:19 andrey@lmy004. +3 -0
  Merge ahristov@stripped:/home/bk/mysql-5.1-new
  into lmy004.:/work/mysql-5.1-bug16419

  sql/sql_yacc.yy
    1.445 06/01/26 21:26:14 andrey@lmy004. +0 -0
    Auto merged

  mysql-test/t/events.test
    1.9 06/01/26 21:26:11 andrey@lmy004. +0 -0
    Auto merged

  mysql-test/r/events.result
    1.8 06/01/26 21:26:11 andrey@lmy004. +0 -0
    Auto merged

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	andrey
# Host:	lmy004.
# Root:	/work/mysql-5.1-bug16419/RESYNC

--- 1.444/sql/sql_yacc.yy	2006-01-24 16:04:20 +01:00
+++ 1.445/sql/sql_yacc.yy	2006-01-26 21:26:14 +01:00
@@ -1434,6 +1434,16 @@
                 yyerror(ER(ER_SYNTAX_ERROR));
                 YYABORT;  
                 break;
+              case ER_WRONG_VALUE:
+                {
+                  char buff[120];
+                  String str(buff,(uint32) sizeof(buff), system_charset_info);
+                  String *str2= $2->val_str(&str);
+                  my_error(ER_WRONG_VALUE, MYF(0), "AT",
+                           str2? str2->c_ptr():"NULL");
+                  YYABORT;
+                  break;
+                }          
               case EVEX_BAD_PARAMS:
                 my_error(ER_EVENT_EXEC_TIME_IN_THE_PAST, MYF(0));
                 YYABORT;

--- 1.7/mysql-test/r/events.result	2006-01-24 16:04:19 +01:00
+++ 1.8/mysql-test/r/events.result	2006-01-26 21:26:11 +01:00
@@ -41,6 +41,15 @@
 0
 drop event event3;
 drop table t_event3;
+create event e_26 on schedule at '2017-01-01 00:00:00' disabled do set @a = 5;
+select db, name, body, definer, convert_tz(execute_at, 'UTC', 'SYSTEM'), on_completion from mysql.event;
+db	name	body	definer	convert_tz(execute_at, 'UTC', 'SYSTEM')	on_completion
+events_test	e_26	 set @a = 5	root@localhost	2017-01-01 00:00:00	DROP
+drop event e_26;
+create event e_26 on schedule at NULL disabled do set @a = 5;
+ERROR HY000: Incorrect AT value: 'NULL'
+create event e_26 on schedule at 'definitely not a datetime' disabled do set @a = 5;
+ERROR HY000: Incorrect AT value: 'definitely not a datetime'
 set names utf8;
 create event задачка on schedule every 123 minute starts now() ends now() + interval 1 month do select 1;
 drop event задачка;

--- 1.8/mysql-test/t/events.test	2006-01-24 16:04:20 +01:00
+++ 1.9/mysql-test/t/events.test	2006-01-26 21:26:11 +01:00
@@ -33,6 +33,15 @@
 drop event event3;
 drop table t_event3;
 
+
+create event e_26 on schedule at '2017-01-01 00:00:00' disabled do set @a = 5;
+select db, name, body, definer, convert_tz(execute_at, 'UTC', 'SYSTEM'), on_completion from mysql.event;
+drop event e_26;
+--error 1503
+create event e_26 on schedule at NULL disabled do set @a = 5;
+--error 1503
+create event e_26 on schedule at 'definitely not a datetime' disabled do set @a = 5;
+
 set names utf8;
 create event задачка on schedule every 123 minute starts now() ends now() + interval 1 month do select 1;
 drop event задачка;
Thread
bk commit into 5.1 tree (andrey:1.2078)ahristov26 Jan