Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ec6e70c7
Commit
ec6e70c7
authored
May 12, 2021
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor some error messages for easier translation
parent
a363bc6d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
src/backend/access/common/toast_compression.c
src/backend/access/common/toast_compression.c
+1
-1
src/backend/parser/parse_coerce.c
src/backend/parser/parse_coerce.c
+6
-6
src/backend/utils/adt/pg_locale.c
src/backend/utils/adt/pg_locale.c
+1
-1
src/backend/utils/adt/xml.c
src/backend/utils/adt/xml.c
+1
-1
No files found.
src/backend/access/common/toast_compression.c
View file @
ec6e70c7
...
...
@@ -31,7 +31,7 @@ int default_toast_compression = TOAST_PGLZ_COMPRESSION;
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED), \
errmsg("unsupported LZ4 compression method"), \
errdetail("This functionality requires the server to be built with lz4 support."), \
errhint("You need to rebuild PostgreSQL using
--with-lz4.
")))
errhint("You need to rebuild PostgreSQL using
%s.", "--with-lz4
")))
/*
* Compress a varlena using PGLZ.
...
...
src/backend/parser/parse_coerce.c
View file @
ec6e70c7
...
...
@@ -2086,7 +2086,7 @@ enforce_generic_type_consistency(const Oid *actual_arg_types,
if
(
OidIsValid
(
elem_typeid
)
&&
actual_type
!=
elem_typeid
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_DATATYPE_MISMATCH
),
errmsg
(
"arguments declared
\"
anyelement
\"
are not all alike
"
),
errmsg
(
"arguments declared
\"
%s
\"
are not all alike"
,
"anyelement
"
),
errdetail
(
"%s versus %s"
,
format_type_be
(
elem_typeid
),
format_type_be
(
actual_type
))));
...
...
@@ -2106,7 +2106,7 @@ enforce_generic_type_consistency(const Oid *actual_arg_types,
if
(
OidIsValid
(
array_typeid
)
&&
actual_type
!=
array_typeid
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_DATATYPE_MISMATCH
),
errmsg
(
"arguments declared
\"
anyarray
\"
are not all alike
"
),
errmsg
(
"arguments declared
\"
%s
\"
are not all alike"
,
"anyarray
"
),
errdetail
(
"%s versus %s"
,
format_type_be
(
array_typeid
),
format_type_be
(
actual_type
))));
...
...
@@ -2126,7 +2126,7 @@ enforce_generic_type_consistency(const Oid *actual_arg_types,
if
(
OidIsValid
(
range_typeid
)
&&
actual_type
!=
range_typeid
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_DATATYPE_MISMATCH
),
errmsg
(
"arguments declared
\"
anyrange
\"
are not all alik
e"
),
errmsg
(
"arguments declared
\"
%s
\"
are not all alike"
,
"anyrang
e"
),
errdetail
(
"%s versus %s"
,
format_type_be
(
range_typeid
),
format_type_be
(
actual_type
))));
...
...
@@ -2146,7 +2146,7 @@ enforce_generic_type_consistency(const Oid *actual_arg_types,
if
(
OidIsValid
(
multirange_typeid
)
&&
actual_type
!=
multirange_typeid
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_DATATYPE_MISMATCH
),
errmsg
(
"arguments declared
\"
anymultirange
\"
are not all alik
e"
),
errmsg
(
"arguments declared
\"
%s
\"
are not all alike"
,
"anymultirang
e"
),
errdetail
(
"%s versus %s"
,
format_type_be
(
multirange_typeid
),
format_type_be
(
actual_type
))));
...
...
@@ -2201,7 +2201,7 @@ enforce_generic_type_consistency(const Oid *actual_arg_types,
if
(
anycompatible_range_typeid
!=
actual_type
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_DATATYPE_MISMATCH
),
errmsg
(
"arguments declared
\"
anycompatiblerange
\"
are not all alik
e"
),
errmsg
(
"arguments declared
\"
%s
\"
are not all alike"
,
"anycompatiblerang
e"
),
errdetail
(
"%s versus %s"
,
format_type_be
(
anycompatible_range_typeid
),
format_type_be
(
actual_type
))));
...
...
@@ -2234,7 +2234,7 @@ enforce_generic_type_consistency(const Oid *actual_arg_types,
if
(
anycompatible_multirange_typeid
!=
actual_type
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_DATATYPE_MISMATCH
),
errmsg
(
"arguments declared
\"
anycompatiblemultirange
\"
are not all alik
e"
),
errmsg
(
"arguments declared
\"
%s
\"
are not all alike"
,
"anycompatiblemultirang
e"
),
errdetail
(
"%s versus %s"
,
format_type_be
(
anycompatible_multirange_typeid
),
format_type_be
(
actual_type
))));
...
...
src/backend/utils/adt/pg_locale.c
View file @
ec6e70c7
...
...
@@ -1586,7 +1586,7 @@ pg_newlocale_from_collation(Oid collid)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_FEATURE_NOT_SUPPORTED
),
errmsg
(
"ICU is not supported in this build"
),
\
errhint
(
"You need to rebuild PostgreSQL using
--with-icu.
"
)));
errhint
(
"You need to rebuild PostgreSQL using
%s."
,
"--with-icu
"
)));
#endif
/* not USE_ICU */
}
...
...
src/backend/utils/adt/xml.c
View file @
ec6e70c7
...
...
@@ -221,7 +221,7 @@ const TableFuncRoutine XmlTableRoutine =
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED), \
errmsg("unsupported XML feature"), \
errdetail("This functionality requires the server to be built with libxml support."), \
errhint("You need to rebuild PostgreSQL using
--with-libxml.
")))
errhint("You need to rebuild PostgreSQL using
%s.", "--with-libxml
")))
/* from SQL/XML:2008 section 4.9 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment