mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
Improve C comment about why we return "0 0" for some tags.
This commit is contained in:
parent
7507b193bc
commit
bbdf72b095
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.134 2010/01/02 16:57:52 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.135 2010/02/13 22:45:41 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1318,9 +1318,14 @@ PortalRunMulti(Portal portal, bool isTopLevel,
|
|||||||
* If a command completion tag was supplied, use it. Otherwise use the
|
* If a command completion tag was supplied, use it. Otherwise use the
|
||||||
* portal's commandTag as the default completion tag.
|
* portal's commandTag as the default completion tag.
|
||||||
*
|
*
|
||||||
* Exception: clients will expect INSERT/UPDATE/DELETE tags to have
|
* Exception: Clients expect INSERT/UPDATE/DELETE tags to have
|
||||||
* counts, so fake something up if necessary. (This could happen if the
|
* counts, so fake them with zeros. This can happen with DO INSTEAD
|
||||||
* original query was replaced by a DO INSTEAD rule.)
|
* rules if there is no replacement query of the same type as the
|
||||||
|
* original. We print "0 0" here because technically there is no
|
||||||
|
* query of the matching tag type, and printing a non-zero count for
|
||||||
|
* a different query type seems wrong, e.g. an INSERT that does
|
||||||
|
* an UPDATE instead should not print "0 1" if one row
|
||||||
|
* was updated. See QueryRewrite(), step 3, for details.
|
||||||
*/
|
*/
|
||||||
if (completionTag && completionTag[0] == '\0')
|
if (completionTag && completionTag[0] == '\0')
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user