summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 71a3564)
raw | patch | inline | side by side (parent: 71a3564)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 30 Oct 2012 06:41:20 +0000 (07:41 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 30 Oct 2012 06:41:20 +0000 (07:41 +0100) |
WTF happened there?!? ;-)
src/cdata.c | patch | blob | history |
diff --git a/src/cdata.c b/src/cdata.c
index 7ee14e643b9d8081997073e4188b2fca79c58c00..021ba1a9cafce6f4943c07d50d821b377d83ffd9 100644 (file)
--- a/src/cdata.c
+++ b/src/cdata.c
));
while ((*endptr != '\0') && isspace((int)*endptr))
+ ++endptr;
+
+ if (*endptr != '\0')
ereport(ERROR, (
errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
- errmsg("invalid input syntax for cdata: \"%s\"", orig)
+ errmsg("invalid input syntax for cdata: \"%s\"", orig),
+ errhint("garbage found after number: \"%s\"", endptr)
));
if (typmod > 0)