From 474d540925db74fd9bcef02bb0ab792a2f9e7209 Mon Sep 17 00:00:00 2001 From: Daehyun Kim Date: Mon, 6 Jan 2025 13:56:05 +0900 Subject: [PATCH] refactor(csql_result_format.c): specify default_vector_profile --- src/executables/csql_result_format.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/executables/csql_result_format.c b/src/executables/csql_result_format.c index 4f4451ae092..27ef6f4bee9 100644 --- a/src/executables/csql_result_format.c +++ b/src/executables/csql_result_format.c @@ -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 @@ -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);