Skip to content

Commit 846b358

Browse files
authored
Update open_prompt_extension.cpp
1 parent 1e6316f commit 846b358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/open_prompt_extension.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ namespace duckdb {
155155
{
156156
Value value;
157157
auto &config = ClientConfig::GetConfig(context);
158-
if (config.GetUserVariable(var_name, value) && strlen(value.ToString()) > 0) {
158+
if (config.GetUserVariable(var_name, value) && !value.IsNull()) {
159159
return value.ToString();
160160
}
161161
}

0 commit comments

Comments
 (0)