Skip to content

Commit

Permalink
Update open_prompt_extension.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Jan 8, 2025
1 parent 1e6316f commit 846b358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/open_prompt_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ namespace duckdb {
{
Value value;
auto &config = ClientConfig::GetConfig(context);
if (config.GetUserVariable(var_name, value) && strlen(value.ToString()) > 0) {
if (config.GetUserVariable(var_name, value) && !value.IsNull()) {
return value.ToString();
}
}
Expand Down

0 comments on commit 846b358

Please sign in to comment.