@@ -142,7 +142,7 @@ const TABLE_FIELD_W_TYPE event_table_fields[ET_FIELD_COUNT] =
142
142
EVEX_GENERAL_ERROR Bad data
143
143
EVEX_GET_FIELD_FAILED Field count does not match. table corrupted?
144
144
145
- DESCRIPTION
145
+ DESCRIPTION
146
146
Used both when an event is created and when it is altered.
147
147
*/
148
148
@@ -178,7 +178,7 @@ mysql_event_fill_row(THD *thd, TABLE *table, Event_parse_data *et,
178
178
/*
179
179
Change the SQL_MODE only if body was present in an ALTER EVENT and of course
180
180
always during CREATE EVENT.
181
- */
181
+ */
182
182
if (et->body .str )
183
183
{
184
184
fields[ET_FIELD_SQL_MODE]->store ((longlong)thd->variables .sql_mode , TRUE );
@@ -237,7 +237,7 @@ mysql_event_fill_row(THD *thd, TABLE *table, Event_parse_data *et,
237
237
fields[ET_FIELD_TRANSIENT_INTERVAL]->set_null ();
238
238
fields[ET_FIELD_STARTS]->set_null ();
239
239
fields[ET_FIELD_ENDS]->set_null ();
240
-
240
+
241
241
TIME time ;
242
242
my_tz_UTC->gmt_sec_to_TIME (&time , et->execute_at );
243
243
@@ -253,7 +253,7 @@ mysql_event_fill_row(THD *thd, TABLE *table, Event_parse_data *et,
253
253
this is an error if the action is create. something is borked
254
254
*/
255
255
}
256
-
256
+
257
257
((Field_timestamp *)fields[ET_FIELD_MODIFIED])->set_time ();
258
258
259
259
if (et->comment .str )
@@ -323,12 +323,12 @@ Event_db_repository::index_read_for_db_for_i_s(THD *thd, TABLE *schema_table,
323
323
ret= copy_event_to_schema_table (thd, schema_table, event_table);
324
324
if (ret == 0 )
325
325
ret= event_table->file ->index_next_same (event_table->record [0 ],
326
- key_buf, key_len);
326
+ key_buf, key_len);
327
327
} while (ret == 0 );
328
328
}
329
329
DBUG_PRINT (" info" , (" Scan finished. ret=%d" , ret));
330
330
}
331
- event_table->file ->ha_index_end ();
331
+ event_table->file ->ha_index_end ();
332
332
/* ret is guaranteed to be != 0 */
333
333
if (ret == HA_ERR_END_OF_FILE || ret == HA_ERR_KEY_NOT_FOUND)
334
334
DBUG_RETURN (FALSE );
@@ -489,7 +489,7 @@ Event_db_repository::open_event_table(THD *thd, enum thr_lock_type lock_type,
489
489
check_parse_params()
490
490
thd Thread context
491
491
parse_data Event's data
492
-
492
+
493
493
RETURN VALUE
494
494
FALSE OK
495
495
TRUE Error (reported)
@@ -535,7 +535,7 @@ check_parse_params(THD *thd, Event_parse_data *parse_data)
535
535
0 OK
536
536
EVEX_GENERAL_ERROR Failure
537
537
538
- DESCRIPTION
538
+ DESCRIPTION
539
539
Creates an event. Relies on mysql_event_fill_row which is shared with
540
540
::update_event. The name of the event is inside "et".
541
541
*/
@@ -630,7 +630,7 @@ Event_db_repository::create_event(THD *thd, Event_parse_data *parse_data,
630
630
handle it here
631
631
*/
632
632
if ((ret= mysql_event_fill_row (thd, table, parse_data, FALSE )))
633
- goto err;
633
+ goto err;
634
634
635
635
/* Close active transaction only if We are going to modify disk */
636
636
if (end_active_trans (thd))
@@ -647,7 +647,7 @@ Event_db_repository::create_event(THD *thd, Event_parse_data *parse_data,
647
647
(void ) mysql_change_db (thd, old_db.str , 1 );
648
648
/*
649
649
This statement may cause a spooky valgrind warning at startup
650
- inside init_key_cache on my system (ahristov, 2006/08/10)
650
+ inside init_key_cache on my system (ahristov, 2006/08/10)
651
651
*/
652
652
close_thread_tables (thd);
653
653
DBUG_RETURN (FALSE );
@@ -914,14 +914,14 @@ Event_db_repository::drop_schema_events(THD *thd, LEX_STRING schema)
914
914
*/
915
915
916
916
void
917
- Event_db_repository::drop_events_by_field (THD *thd,
917
+ Event_db_repository::drop_events_by_field (THD *thd,
918
918
enum enum_events_table_field field,
919
919
LEX_STRING field_value)
920
920
{
921
921
int ret= 0 ;
922
922
TABLE *table= NULL ;
923
923
READ_RECORD read_record_info;
924
- DBUG_ENTER (" Event_db_repository::drop_events_by_field" );
924
+ DBUG_ENTER (" Event_db_repository::drop_events_by_field" );
925
925
DBUG_PRINT (" enter" , (" field=%d field_value=%s" , field, field_value.str ));
926
926
927
927
if (open_event_table (thd, TL_WRITE, &table))
0 commit comments