mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
Remove redundant translation markers
psql_error() already handles that itself.
This commit is contained in:
@ -4357,7 +4357,7 @@ do_watch(PQExpBuffer query_buf, double sleep)
|
|||||||
|
|
||||||
if (!query_buf || query_buf->len <= 0)
|
if (!query_buf || query_buf->len <= 0)
|
||||||
{
|
{
|
||||||
psql_error(_("\\watch cannot be used with an empty query\n"));
|
psql_error("\\watch cannot be used with an empty query\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -799,19 +799,19 @@ PSQLexecWatch(const char *query, const printQueryOpt *opt)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case PGRES_EMPTY_QUERY:
|
case PGRES_EMPTY_QUERY:
|
||||||
psql_error(_("\\watch cannot be used with an empty query\n"));
|
psql_error("\\watch cannot be used with an empty query\n");
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
case PGRES_COPY_OUT:
|
case PGRES_COPY_OUT:
|
||||||
case PGRES_COPY_IN:
|
case PGRES_COPY_IN:
|
||||||
case PGRES_COPY_BOTH:
|
case PGRES_COPY_BOTH:
|
||||||
psql_error(_("\\watch cannot be used with COPY\n"));
|
psql_error("\\watch cannot be used with COPY\n");
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
psql_error(_("unexpected result status for \\watch\n"));
|
psql_error("unexpected result status for \\watch\n");
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user