From bd31bd5ffbd875f1a7555d1aa2281a160797e9a4 Mon Sep 17 00:00:00 2001 From: airnet73 <61675061+airnet73@users.noreply.github.com> Date: Tue, 26 Sep 2023 17:49:05 +0900 Subject: [PATCH] [CBRD-25022] Error representing empty string as NULL character in windows (#4715) http://jira.cubrid.org/browse/CBRD-25022 When reading an empty string in Windows ODBC, it should be expressed as '', but it is expressed as NULL. --- src/broker/cas_cgw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/broker/cas_cgw.c b/src/broker/cas_cgw.c index 72dcda28674..89a99fb2f55 100644 --- a/src/broker/cas_cgw.c +++ b/src/broker/cas_cgw.c @@ -2628,7 +2628,7 @@ cgw_unicode_to_utf8 (wchar_t * in_src, int in_size, char **out_target, int *out_ return (-1); } - if (in_size <= 0) + if (in_size < 0) { return (-1); }