]> granicus.if.org Git - postgresql/commitdiff
Fix grammar in error message
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 9 May 2019 07:14:37 +0000 (09:14 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 9 May 2019 07:16:59 +0000 (09:16 +0200)
doc/src/sgml/plpgsql.sgml
src/pl/plpgsql/src/pl_exec.c
src/test/regress/expected/plpgsql.out

index 50f1884afecd3570216f7b09c8c586fc1e3e8824..ef1556be8feba07074706244f2659a94eec69d19 100644 (file)
@@ -5165,10 +5165,10 @@ END;
 $$;
 
 SELECT foo();
-WARNING:  number of source and target fields in assignment do not match
+WARNING:  number of source and target fields in assignment does not match
 DETAIL:  strict_multi_assignment check of extra_warnings is active.
 HINT:  Make sure the query returns the exact list of columns.
-WARNING:  number of source and target fields in assignment do not match
+WARNING:  number of source and target fields in assignment does not match
 DETAIL:  strict_multi_assignment check of extra_warnings is active.
 HINT:  Make sure the query returns the exact list of columns.
 
index 23aed02dbd72ca3c9e6775febbd170bc5df4f9aa..1b1d87e59aed35e9af7061b550034d0deacb435a 100644 (file)
@@ -6993,7 +6993,7 @@ exec_move_row_from_fields(PLpgSQL_execstate *estate,
                                        if (strict_multiassignment_level)
                                                        ereport(strict_multiassignment_level,
                                                                        (errcode(ERRCODE_DATATYPE_MISMATCH),
-                                                                        errmsg("number of source and target fields in assignment do not match"),
+                                                                        errmsg("number of source and target fields in assignment does not match"),
                                                                         /* translator: %s represents a name of an extra check */
                                                                         errdetail("%s check of %s is active.",
                                                                                           "strict_multi_assignment",
@@ -7027,7 +7027,7 @@ exec_move_row_from_fields(PLpgSQL_execstate *estate,
                                if (anum < td_natts)
                                        ereport(strict_multiassignment_level,
                                                        (errcode(ERRCODE_DATATYPE_MISMATCH),
-                                                        errmsg("number of source and target fields in assignment do not match"),
+                                                        errmsg("number of source and target fields in assignment does not match"),
                                                         /* translator: %s represents a name of an extra check */
                                                         errdetail("%s check of %s is active.",
                                                                           "strict_multi_assignment",
@@ -7101,7 +7101,7 @@ exec_move_row_from_fields(PLpgSQL_execstate *estate,
                                if (strict_multiassignment_level)
                                                ereport(strict_multiassignment_level,
                                                                (errcode(ERRCODE_DATATYPE_MISMATCH),
-                                                                errmsg("number of source and target fields in assignment do not match"),
+                                                                errmsg("number of source and target fields in assignment does not match"),
                                                 /* translator: %s represents a name of an extra check */
                                                 errdetail("%s check of %s is active.",
                                                                  "strict_multi_assignment",
@@ -7127,7 +7127,7 @@ exec_move_row_from_fields(PLpgSQL_execstate *estate,
                        if (anum < td_natts)
                                ereport(strict_multiassignment_level,
                                                (errcode(ERRCODE_DATATYPE_MISMATCH),
-                                                errmsg("number of source and target fields in assignment do not match"),
+                                                errmsg("number of source and target fields in assignment does not match"),
                                                 /* translator: %s represents a name of an extra check */
                                                 errdetail("%s check of %s is active.",
                                                                  "strict_multi_assignment",
index 5613a465e9efc4bd593439311a872d5038dd4654..e85b29455e5da69da6ecd8e7dc7fc4c9bcf6c16b 100644 (file)
@@ -2899,10 +2899,10 @@ begin
   select 1,2,3 into x, y;
 end
 $$;
-WARNING:  number of source and target fields in assignment do not match
+WARNING:  number of source and target fields in assignment does not match
 DETAIL:  strict_multi_assignment check of extra_warnings is active.
 HINT:  Make sure the query returns the exact list of columns.
-WARNING:  number of source and target fields in assignment do not match
+WARNING:  number of source and target fields in assignment does not match
 DETAIL:  strict_multi_assignment check of extra_warnings is active.
 HINT:  Make sure the query returns the exact list of columns.
 set plpgsql.extra_errors to 'strict_multi_assignment';
@@ -2916,7 +2916,7 @@ begin
   select 1,2,3 into x, y;
 end
 $$;
-ERROR:  number of source and target fields in assignment do not match
+ERROR:  number of source and target fields in assignment does not match
 DETAIL:  strict_multi_assignment check of extra_errors is active.
 HINT:  Make sure the query returns the exact list of columns.
 CONTEXT:  PL/pgSQL function inline_code_block line 6 at SQL statement
@@ -2935,7 +2935,7 @@ begin
 end;
 $$;
 NOTICE:  ok
-ERROR:  number of source and target fields in assignment do not match
+ERROR:  number of source and target fields in assignment does not match
 DETAIL:  strict_multi_assignment check of extra_errors is active.
 HINT:  Make sure the query returns the exact list of columns.
 CONTEXT:  PL/pgSQL function inline_code_block line 8 at SQL statement
@@ -2949,7 +2949,7 @@ begin
 end;
 $$;
 NOTICE:  ok
-ERROR:  number of source and target fields in assignment do not match
+ERROR:  number of source and target fields in assignment does not match
 DETAIL:  strict_multi_assignment check of extra_errors is active.
 HINT:  Make sure the query returns the exact list of columns.
 CONTEXT:  PL/pgSQL function inline_code_block line 7 at SQL statement
@@ -2960,7 +2960,7 @@ begin
   select 1 into t; -- should fail;
 end;
 $$;
-ERROR:  number of source and target fields in assignment do not match
+ERROR:  number of source and target fields in assignment does not match
 DETAIL:  strict_multi_assignment check of extra_errors is active.
 HINT:  Make sure the query returns the exact list of columns.
 CONTEXT:  PL/pgSQL function inline_code_block line 5 at SQL statement