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
25cf4ed1
Commit
25cf4ed1
authored
Jun 07, 2018
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing serial commas
parent
5efbdd36
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
src/backend/libpq/hba.c
src/backend/libpq/hba.c
+2
-2
src/backend/utils/adt/jsonfuncs.c
src/backend/utils/adt/jsonfuncs.c
+2
-2
src/test/regress/expected/json.out
src/test/regress/expected/json.out
+3
-3
src/test/regress/expected/jsonb.out
src/test/regress/expected/jsonb.out
+3
-3
No files found.
src/backend/libpq/hba.c
View file @
25cf4ed1
...
...
@@ -1519,10 +1519,10 @@ parse_hba_line(TokenizedLine *tok_line, int elevel)
{
ereport
(
elevel
,
(
errcode
(
ERRCODE_CONFIG_FILE_ERROR
),
errmsg
(
"cannot use ldapbasedn, ldapbinddn, ldapbindpasswd, ldapsearchattribute, ldapsearchfilter or ldapurl together with ldapprefix"
),
errmsg
(
"cannot use ldapbasedn, ldapbinddn, ldapbindpasswd, ldapsearchattribute, ldapsearchfilter
,
or ldapurl together with ldapprefix"
),
errcontext
(
"line %d of configuration file
\"
%s
\"
"
,
line_num
,
HbaFileName
)));
*
err_msg
=
"cannot use ldapbasedn, ldapbinddn, ldapbindpasswd, ldapsearchattribute, ldapsearchfilter or ldapurl together with ldapprefix"
;
*
err_msg
=
"cannot use ldapbasedn, ldapbinddn, ldapbindpasswd, ldapsearchattribute, ldapsearchfilter
,
or ldapurl together with ldapprefix"
;
return
NULL
;
}
}
...
...
src/backend/utils/adt/jsonfuncs.c
View file @
25cf4ed1
...
...
@@ -4975,7 +4975,7 @@ parse_jsonb_index_flags(Jsonb *jb)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"flag array element is not a string"
),
errhint
(
"Possible values are:
\"
string
\"
,
\"
numeric
\"
,
\"
boolean
\"
,
\"
key
\"
and
\"
all
\"
"
)));
errhint
(
"Possible values are:
\"
string
\"
,
\"
numeric
\"
,
\"
boolean
\"
,
\"
key
\"
,
and
\"
all
\"
"
)));
if
(
v
.
val
.
string
.
len
==
3
&&
pg_strncasecmp
(
v
.
val
.
string
.
val
,
"all"
,
3
)
==
0
)
...
...
@@ -4997,7 +4997,7 @@ parse_jsonb_index_flags(Jsonb *jb)
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"wrong flag in flag array:
\"
%s
\"
"
,
pnstrdup
(
v
.
val
.
string
.
val
,
v
.
val
.
string
.
len
)),
errhint
(
"Possible values are:
\"
string
\"
,
\"
numeric
\"
,
\"
boolean
\"
,
\"
key
\"
and
\"
all
\"
"
)));
errhint
(
"Possible values are:
\"
string
\"
,
\"
numeric
\"
,
\"
boolean
\"
,
\"
key
\"
,
and
\"
all
\"
"
)));
}
/* expect end of array now */
...
...
src/test/regress/expected/json.out
View file @
25cf4ed1
...
...
@@ -2456,7 +2456,7 @@ select json_to_tsvector('null'::json, '"all"');
select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::json, '""');
ERROR: wrong flag in flag array: ""
HINT: Possible values are: "string", "numeric", "boolean", "key" and "all"
HINT: Possible values are: "string", "numeric", "boolean", "key"
,
and "all"
select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::json, '{}');
ERROR: wrong flag type, only arrays and scalars are allowed
select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::json, '[]');
...
...
@@ -2467,10 +2467,10 @@ select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d":
select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::json, 'null');
ERROR: flag array element is not a string
HINT: Possible values are: "string", "numeric", "boolean", "key" and "all"
HINT: Possible values are: "string", "numeric", "boolean", "key"
,
and "all"
select json_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::json, '["all", null]');
ERROR: flag array element is not a string
HINT: Possible values are: "string", "numeric", "boolean", "key" and "all"
HINT: Possible values are: "string", "numeric", "boolean", "key"
,
and "all"
-- ts_headline for json
select ts_headline('{"a": "aaa bbb", "b": {"c": "ccc ddd fff", "c1": "ccc1 ddd1"}, "d": ["ggg hhh", "iii jjj"]}'::json, tsquery('bbb & ddd & hhh'));
ts_headline
...
...
src/test/regress/expected/jsonb.out
View file @
25cf4ed1
...
...
@@ -4254,7 +4254,7 @@ select jsonb_to_tsvector('null'::jsonb, '"all"');
select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '""');
ERROR: wrong flag in flag array: ""
HINT: Possible values are: "string", "numeric", "boolean", "key" and "all"
HINT: Possible values are: "string", "numeric", "boolean", "key"
,
and "all"
select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '{}');
ERROR: wrong flag type, only arrays and scalars are allowed
select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '[]');
...
...
@@ -4265,10 +4265,10 @@ select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d"
select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, 'null');
ERROR: flag array element is not a string
HINT: Possible values are: "string", "numeric", "boolean", "key" and "all"
HINT: Possible values are: "string", "numeric", "boolean", "key"
,
and "all"
select jsonb_to_tsvector('english', '{"a": "aaa in bbb", "b": 123, "c": 456, "d": true, "f": false, "g": null}'::jsonb, '["all", null]');
ERROR: flag array element is not a string
HINT: Possible values are: "string", "numeric", "boolean", "key" and "all"
HINT: Possible values are: "string", "numeric", "boolean", "key"
,
and "all"
-- ts_headline for jsonb
select ts_headline('{"a": "aaa bbb", "b": {"c": "ccc ddd fff", "c1": "ccc1 ddd1"}, "d": ["ggg hhh", "iii jjj"]}'::jsonb, tsquery('bbb & ddd & hhh'));
ts_headline
...
...
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