Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbcf63a5

Browse files
committed
Message style improvements
1 parentc8e0c32 commitbcf63a5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

‎src/backend/utils/adt/arrayfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4805,7 +4805,7 @@ array_fill_with_lower_bounds(PG_FUNCTION_ARGS)
48054805
if (PG_ARGISNULL(1)||PG_ARGISNULL(2))
48064806
ereport(ERROR,
48074807
(errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
4808-
errmsg("dimension array or low bound array cannot beNULL")));
4808+
errmsg("dimension array or low bound array cannot benull")));
48094809

48104810
dims=PG_GETARG_ARRAYTYPE_P(1);
48114811
lbs=PG_GETARG_ARRAYTYPE_P(2);
@@ -4845,7 +4845,7 @@ array_fill(PG_FUNCTION_ARGS)
48454845
if (PG_ARGISNULL(1))
48464846
ereport(ERROR,
48474847
(errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
4848-
errmsg("dimension array or low bound array cannot beNULL")));
4848+
errmsg("dimension array or low bound array cannot benull")));
48494849

48504850
dims=PG_GETARG_ARRAYTYPE_P(1);
48514851

‎src/pl/plpgsql/src/pl_exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2060,7 +2060,7 @@ exec_stmt_foreach_a(PLpgSQL_execstate *estate, PLpgSQL_stmt_foreach_a *stmt)
20602060
if (isnull)
20612061
ereport(ERROR,
20622062
(errcode(ERRCODE_NULL_VALUE_NOT_ALLOWED),
2063-
errmsg("FOREACH expression must not beNULL")));
2063+
errmsg("FOREACH expression must not benull")));
20642064

20652065
/* check the type of the expression - must be an array */
20662066
if (!OidIsValid(get_element_type(arrtype)))

‎src/pl/plpython/plpython.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3937,7 +3937,7 @@ PLy_add_exceptions(PyObject *plpy)
39373937
excmod=PyModule_Create(&PLy_exc_module);
39383938
#endif
39393939
if (PyModule_AddObject(plpy,"spiexceptions",excmod)<0)
3940-
PLy_elog(ERROR,"failed to add the spiexceptions module");
3940+
PLy_elog(ERROR,"could not add the spiexceptions module");
39413941

39423942
/*
39433943
* XXX it appears that in some circumstances the reference count of the

‎src/test/regress/expected/arrays.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,9 +1292,9 @@ select array_fill('juhu'::text, array[3,3]);
12921292

12931293
-- raise exception
12941294
select array_fill(1, null, array[2,2]);
1295-
ERROR: dimension array or low bound array cannot beNULL
1295+
ERROR: dimension array or low bound array cannot benull
12961296
select array_fill(1, array[2,2], null);
1297-
ERROR: dimension array or low bound array cannot beNULL
1297+
ERROR: dimension array or low bound array cannot benull
12981298
select array_fill(1, array[3,3], array[1,1,1]);
12991299
ERROR: wrong number of array subscripts
13001300
DETAIL: Low bound array has different size than dimensions array.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp