1
0
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:
Tom Lane
2003-07-27 17:10:07 +00:00
parent aeea73d4ec
commit e8db9b26d0
18 changed files with 62 additions and 63 deletions

View File

@ -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;