|
|
|
@ -1791,7 +1791,7 @@ executeDateTimeMethod(JsonPathExecContext *cxt, JsonPathItem *jsp, |
|
|
|
|
|
|
|
|
|
if (!(jb = getScalar(jb, jbvString))) |
|
|
|
|
RETURN_ERROR(ereport(ERROR, |
|
|
|
|
(errcode(ERRCODE_INVALID_ARGUMENT_FOR_JSON_DATETIME_FUNCTION), |
|
|
|
|
(errcode(ERRCODE_INVALID_ARGUMENT_FOR_SQL_JSON_DATETIME_FUNCTION), |
|
|
|
|
errmsg("jsonpath item method .%s() can only be applied to a string", |
|
|
|
|
jspOperationName(jsp->type))))); |
|
|
|
|
|
|
|
|
@ -1879,7 +1879,7 @@ executeDateTimeMethod(JsonPathExecContext *cxt, JsonPathItem *jsp, |
|
|
|
|
|
|
|
|
|
if (res == jperNotFound) |
|
|
|
|
RETURN_ERROR(ereport(ERROR, |
|
|
|
|
(errcode(ERRCODE_INVALID_ARGUMENT_FOR_JSON_DATETIME_FUNCTION), |
|
|
|
|
(errcode(ERRCODE_INVALID_ARGUMENT_FOR_SQL_JSON_DATETIME_FUNCTION), |
|
|
|
|
errmsg("datetime format is not recognized: \"%s\"", |
|
|
|
|
text_to_cstring(datetime)), |
|
|
|
|
errhint("Use a datetime template argument to specify the input data format.")))); |
|
|
|
|