Code

CData: Use errdetail() rather than errhint() to report details ;-)
[postrr.git] / src / cdata.c
index 021ba1a9cafce6f4943c07d50d821b377d83ffd9..2630e733d35d10200e9938adc5082ff6bc200ea2 100644 (file)
@@ -166,7 +166,7 @@ cdata_in(PG_FUNCTION_ARGS)
                ereport(ERROR, (
                                        errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
                                        errmsg("invalid input syntax for cdata: \"%s\"", orig),
-                                       errhint("garbage found after number: \"%s\"", endptr)
+                                       errdetail("garbage found after number: \"%s\"", endptr)
                                ));
 
        if (typmod > 0)