Fix the regression test failure in odbc-escapes caused by the commit 499fb29b80cfaf60...
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Fri, 26 Oct 2018 03:12:25 +0000 (12:12 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Fri, 26 Oct 2018 03:28:17 +0000 (12:28 +0900)
The parameters should be cast because parameters of concat() function are variadic "any".

convert.c

index 7becd7725a91a2bac383c7d3fde135b69eb7360c..577f08493222511b3747e1cb529c78f02fe7616b 100644 (file)
--- a/convert.c
+++ b/convert.c
@@ -79,7 +79,7 @@ static const struct
 } mapFuncs[] = {
 /* { "ASCII",       "ascii"      }, built_in */
    {"CHAR", "chr($*)" },
-/* {"CONCAT",       "concat"     }, built_in */
+   {"CONCAT", "concat($1::text, $2::text)" },
 /* { "DIFFERENCE", "difference" }, how to ? */
    {"INSERT", "substring($1 from 1 for $2 - 1) || $4 || substring($1 from $2 + $3)" },
    {"LCASE", "lower($*)" },