mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
elog mop-up.
This commit is contained in:
@ -38,10 +38,10 @@ complex_in(char *str)
|
||||
Complex *result;
|
||||
|
||||
if (sscanf(str, " ( %lf , %lf )", &x, &y) != 2)
|
||||
{
|
||||
elog(ERROR, "complex_in: error in parsing \"%s\"", str);
|
||||
return NULL;
|
||||
}
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
||||
errmsg("invalid input syntax for complex: \"%s\"", str)));
|
||||
|
||||
result = (Complex *) palloc(sizeof(Complex));
|
||||
result->x = x;
|
||||
result->y = y;
|
||||
|
Reference in New Issue
Block a user