This commit is contained in:
Yves
2025-08-14 12:26:26 -07:00
parent d84cd182e5
commit 72d82f4bce
3 changed files with 8 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ namespace duckdb {
typedef std::string (*simple_tf_t)(ClientContext &);
struct RunOnceTableFunctionState : GlobalTableFunctionState {
RunOnceTableFunctionState() : run(false) {};
RunOnceTableFunctionState() : run(false){};
std::atomic<bool> run;
static unique_ptr<GlobalTableFunctionState> Init(ClientContext &,

View File

@@ -62,11 +62,11 @@ void Watcher::Watch() {
break; // DB went away, nothing to watch
}
if (watched_database == nullptr) {
watched_database = db.get();
} else if (watched_database != db.get()) {
break; // DB changed, stop watching, will be restarted
}
if (watched_database == nullptr) {
watched_database = db.get();
} else if (watched_database != db.get()) {
break; // DB changed, stop watching, will be restarted
}
duckdb::Connection con{*db};
auto polling_interval = GetPollingInterval(*con.context);

View File

@@ -1,3 +1,4 @@
# name: test/sql/ui.test
# description: test ui extension
# group: [ui]
# group: [sql]