From: jon Date: May 30 2006 3:43pm Subject: svn commit - mysqldoc@docsrva: r2229 - trunk/refman-5.1 List-Archive: http://lists.mysql.com/commits/7020 Message-Id: <200605301543.k4UFhbVs004116@docsrva.mysql.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Author: jstephens Date: 2006-05-30 17:43:36 +0200 (Tue, 30 May 2006) New Revision: 2229 Log: Andrey's review of Events chapter: - Table references in event action clauses - SHOW FULL EVENTS went away in 5.1.12 - More info about event execution timings Modified: trunk/refman-5.1/events.xml trunk/refman-5.1/sql-syntax.xml Modified: trunk/refman-5.1/events.xml =================================================================== --- trunk/refman-5.1/events.xml 2006-05-30 08:25:47 UTC (rev 2228) +++ trunk/refman-5.1/events.xml 2006-05-30 15:43:36 UTC (rev 2229) @@ -842,9 +842,12 @@ - Note: Any reference to a table - in the DO clause must be qualified with the - name of the schema in which the table occurs. + Any reference in the DO clause to a table in + other than the same database schema to which the event belongs + must be qualified with the name of the schema in which the table + occurs. (In MySQL 5.1.6, all tables referenced in event + DO clauses had to include a reference to the + database.) @@ -1146,8 +1149,7 @@ - Using of the SHOW EVENTS and SHOW - FULL EVENTS statements. See + Using the SHOW EVENTS statement. See . @@ -1505,13 +1507,16 @@ stored routine, or another event. This is by design. However, an event may create, alter, or drop triggers and stored routines. - + - The resolution of event schedules is measured in seconds. There is - no way to cause events scheduled to occur at the same second to - execute in a given order. In addition, due to rounding, the nature - of threaded applications, and the fact that a non-zero length of - time is required to create events and to signal their execution, + Event timings using the intervals YEAR, + QUARTER, MONTH, and + YEAR_MONTH are resolved in months; those using + any other interval are resolved in seconds. There is no way to + cause events scheduled to occur at the same second to execute in a + given order. In addition — due to rounding, the nature of + threaded applications, and the fact that a non-zero length of time + is required to create events and to signal their execution — events may be delayed by as much as 1 or 2 seconds. However, the time shown in the INFORMATION_SCHEMA.EVENTS table's LAST_EXECUTED column or the Modified: trunk/refman-5.1/sql-syntax.xml =================================================================== --- trunk/refman-5.1/sql-syntax.xml 2006-05-30 08:25:47 UTC (rev 2228) +++ trunk/refman-5.1/sql-syntax.xml 2006-05-30 15:43:36 UTC (rev 2229) @@ -17464,13 +17464,12 @@ &title-show-events; -SHOW [FULL] EVENTS [FROM schema_name] [LIKE pattern] +SHOW EVENTS [FROM schema_name] [LIKE pattern] In its simplest form, SHOW EVENTS lists all - of the events in the current schema for which the current user - is the definer: + of the events in the current schema: @@ -17632,7 +17631,7 @@ To see events for a different schema, you can use the FROM clause. For example, if the test schema had been selected in the - preceding example, the user could view his events on + preceding example, you could view events defined on myschema using the following statement: @@ -17645,20 +17644,6 @@ event name using LIKE plus a pattern. - - [js] Commenting out following para until we figure out what is - what. - - - - This statement was added in MySQL 5.1.6. @@ -17666,6 +17651,15 @@ See also . + + + Note: In MySQL 5.1.11 and + earlier, SHOW EVENTS displayed only those + events for which the current user was the definer, and the + SHOW FULL EVENTS statement was used for + viewing events defined by all users on a given schema. + SHOW FULL EVENTS was removed in MySQL 5.1.12. +