mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-19275 SQL service for plugins.
review fixes.
This commit is contained in:
committed by
Oleksandr Byelkin
parent
e1f9a80900
commit
585d88a237
@ -44,5 +44,17 @@ show status like 'test_sql_query_result';
|
||||
set global test_sql_service_execute_sql_global= 'drop table test.t1';
|
||||
show status like 'test_sql_query_result';
|
||||
|
||||
create table t1 (id int, time timestamp);
|
||||
insert into t1 values (1, NULL), (2, NULL), (3, NULL), (4, NULL), (5, NULL);
|
||||
set global test_sql_service_execute_sql_global= 'select * FROM test.t1 WHERE time < DATE_SUB(NOW(), interval 5 minute)';
|
||||
show status like 'test_sql_query_result';
|
||||
set global test_sql_service_execute_sql_global= 'select * FROM test.t1 WHERE time <= NOW()';
|
||||
show status like 'test_sql_query_result';
|
||||
set global test_sql_service_execute_sql_local= 'select * FROM test.t1 WHERE time < DATE_SUB(NOW(), interval 5 minute)';
|
||||
show status like 'test_sql_query_result';
|
||||
set global test_sql_service_execute_sql_local= 'select * FROM test.t1 WHERE time <= NOW()';
|
||||
show status like 'test_sql_query_result';
|
||||
drop table t1;
|
||||
|
||||
uninstall plugin test_sql_service;
|
||||
|
||||
|
Reference in New Issue
Block a user