 					WHEN enm_binlog_event = 'insert'
 					THEN
 						format(
-							'INSERT INTO %I.%I (%s) VALUES (%s) ;',
+							'INSERT INTO %I.%I (%s) VALUES (%s);',
 							v_schema_name,
 							v_table_name,
 							array_to_string(t_colunm,','),

												tab.v_table_name=log.v_table_name
											AND tab.v_schema_name=log.v_schema_name
								WHERE
									log.i_id_batch=v_i_id_batch
								LIMIT p_i_max_events
							) t_log
							
					) t_pkey

			LIMIT 1
			)
		;
		
		

		v_i_evt_replay:=(
			SELECT 
				i_id_event[1:p_i_max_events] 
			FROM 
				sch_chameleon.t_batch_events 
			WHERE 
				i_id_batch=v_i_id_batch
		);

		v_i_evt_queue:=(
			SELECT 
				i_id_event[p_i_max_events+1:array_length(i_id_event,1)] 
			FROM 
				sch_chameleon.t_batch_events 
			WHERE 
				i_id_batch=v_i_id_batch
		);

		IF v_i_id_batch IS NULL 
		THEN
			RETURN v_b_loop;
