diff --git a/programs/server/config.xml b/programs/server/config.xml index 82dd697084c..c6ae47b3050 100644 --- a/programs/server/config.xml +++ b/programs/server/config.xml @@ -719,8 +719,12 @@ default - - + + SQL_ diff --git a/src/IO/Resource/DynamicResourceManager.cpp b/src/IO/Resource/DynamicResourceManager.cpp index 49e12984e33..df0de6575f4 100644 --- a/src/IO/Resource/DynamicResourceManager.cpp +++ b/src/IO/Resource/DynamicResourceManager.cpp @@ -98,9 +98,9 @@ DynamicResourceManager::State::Resource::~Resource() if (attached_to != nullptr) { ISchedulerNode * root = nodes.find("/")->second.ptr.get(); - attached_to->event_queue->enqueue([scheduler = attached_to, root] + attached_to->event_queue->enqueue([my_scheduler = attached_to, root] { - scheduler->removeChild(root); + my_scheduler->removeChild(root); }); } } diff --git a/tests/queries/0_stateless/02737_sql_auto_is_null.reference b/tests/queries/0_stateless/02737_sql_auto_is_null.reference new file mode 100644 index 00000000000..573541ac970 --- /dev/null +++ b/tests/queries/0_stateless/02737_sql_auto_is_null.reference @@ -0,0 +1 @@ +0 diff --git a/tests/queries/0_stateless/02737_sql_auto_is_null.sql b/tests/queries/0_stateless/02737_sql_auto_is_null.sql new file mode 100644 index 00000000000..22f1a9524ca --- /dev/null +++ b/tests/queries/0_stateless/02737_sql_auto_is_null.sql @@ -0,0 +1,2 @@ +SET SQL_AUTO_IS_NULL = 0; +SELECT getSetting('SQL_AUTO_IS_NULL');