Support Tableau

This commit is contained in:
Alexey Milovidov 2023-05-19 10:28:13 +02:00
parent e84f0895e7
commit f47375d16c
4 changed files with 11 additions and 4 deletions

View File

@ -719,8 +719,12 @@
<!-- Default profile of settings. -->
<default_profile>default</default_profile>
<!-- Comma-separated list of prefixes for user-defined settings. -->
<custom_settings_prefixes></custom_settings_prefixes>
<!-- Comma-separated list of prefixes for user-defined settings.
The server will allow to set these settings, and retrieve them with the getSetting function.
They are also logged in the query_log, similarly to other settings, but have no special effect.
The "SQL_" prefix is introduced for compatibility with MySQL - these settings are being set be Tableau.
-->
<custom_settings_prefixes>SQL_</custom_settings_prefixes>
<!-- System profile of settings. This settings are used by internal processes (Distributed DDL worker and so on). -->
<!-- <system_profile>default</system_profile> -->

View File

@ -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);
});
}
}

View File

@ -0,0 +1 @@
0

View File

@ -0,0 +1,2 @@
SET SQL_AUTO_IS_NULL = 0;
SELECT getSetting('SQL_AUTO_IS_NULL');