The macro IS_NOT_SPACE() is used for not pointers but integers.
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Fri, 4 Oct 2019 05:48:55 +0000 (14:48 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Fri, 4 Oct 2019 05:48:55 +0000 (14:48 +0900)
convert.c

index 29815c46aa21dce32fa4efbc79ff17447422da84..026b3025223d9b4617f915f0553f357424bddc9b 100644 (file)
--- a/convert.c
+++ b/convert.c
@@ -5696,7 +5696,7 @@ convert_escape(QueryParse *qp, QueryBuild *qb)
                for (i = param_pos[0][0], p = nqb.query_statement + i; i <= param_pos[0][1] && isspace(*p); i++, p++)
                    ;
                from = i;
-               for (; i <= param_pos[0][1] && IS_NOT_SPACE(p); i++, p++)
+               for (; i <= param_pos[0][1] && IS_NOT_SPACE(*p); i++, p++)
                    ;
                to = i - 1;
                if (to >= from)