Fix identical code used for different branches per Coverity.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Thu, 12 Sep 2019 04:40:05 +0000 (13:40 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Thu, 12 Sep 2019 04:54:00 +0000 (13:54 +0900)
src/parser/outfuncs.c

index 1f1c0686d901f658d6cd56f6e2a99539032f6900..72c13ffa1260155eb671ccf860423eae00ccaaf8 100644 (file)
@@ -4515,9 +4515,9 @@ _outCreatedbOptList(String *str, List *options)
                        string_append_char(str, "DEFAULT");
                else if (IsA((Node *)v, String))
                {
-                       string_append_char(str, sconst ? "'" : "'");
+                       string_append_char(str, "'");
                        string_append_char(str, v->val.str);
-                       string_append_char(str, sconst ? "'" : "'");
+                       string_append_char(str, "'");
                }
                else
                {