SELECTwritten_rowsFROMsystem.query_logWHEREcurrent_database=currentDatabase()ANDqueryLIKE'INSERT INTO /* test 01413, query 1 */ rows_events_test%'ANDtype=2ANDevent_date>=yesterday()ORDERBYevent_timeDESCLIMIT1;
SELECTProfileEvents['InsertedRows']asvalueFROMsystem.query_logWHEREcurrent_database=currentDatabase()ANDqueryLIKE'INSERT INTO /* test 01413, query 1 */ rows_events_test%'ANDtype=2ANDevent_date>=yesterday()ORDERBYevent_timeDESCLIMIT1;
SELECTwritten_rowsFROMsystem.query_logWHEREcurrent_database=currentDatabase()ANDqueryLIKE'INSERT INTO /* test 01413, query 2 */ rows_events_test%'ANDtype=2ANDevent_date>=yesterday()ORDERBYevent_timeDESCLIMIT1;
SELECTProfileEvents['InsertedRows']asvalueFROMsystem.query_logWHEREcurrent_database=currentDatabase()ANDqueryLIKE'INSERT INTO /* test 01413, query 2 */ rows_events_test%'ANDtype=2ANDevent_date>=yesterday()ORDERBYevent_timeDESCLIMIT1;
SELECTread_rowsFROMsystem.query_logWHEREcurrent_database=currentDatabase()ANDqueryLIKE'SELECT * FROM /* test 01413, query 3 */ rows_events_test%'ANDtype=2ANDevent_date>=yesterday()ORDERBYevent_timeDESCLIMIT1;
SELECTProfileEvents['SelectedRows']asvalueFROMsystem.query_logWHEREcurrent_database=currentDatabase()ANDqueryLIKE'SELECT * FROM /* test 01413, query 3 */ rows_events_test%'ANDtype=2ANDevent_date>=yesterday()ORDERBYevent_timeDESCLIMIT1;