Skip to content

Commit

Permalink
refactor(csql_result_format.c): specify default_vector_profile
Browse files Browse the repository at this point in the history
  • Loading branch information
vimkim committed Jan 6, 2025
1 parent d81f01e commit 474d540
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/executables/csql_result_format.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ static DB_TYPE_SET_PROFILE default_set_profile = {
'{', '}', -1
};

static DB_TYPE_SET_PROFILE default_vector_profile = {
'[', ']', -1
};


/*
* string type conversion profile
Expand Down Expand Up @@ -1665,7 +1669,9 @@ csql_db_value_as_string (DB_VALUE * value, int *length, const CSQL_ARGUMENT * cs
}
break;
case DB_TYPE_VECTOR:
result = set_to_string (value, '[', ']', default_set_profile.max_entries, csql_arg);
result =
set_to_string (value, default_vector_profile.begin_notation, default_vector_profile.end_notation,
default_vector_profile.max_entries, csql_arg);
if (result)
{
len = strlen (result);
Expand Down

0 comments on commit 474d540

Please sign in to comment.