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
807e4bc8
Commit
807e4bc8
authored
Oct 23, 2018
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sprinkle some const decorations
These mainly help understanding the function signatures better.
parent
55853d66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/backend/parser/parse_coerce.c
src/backend/parser/parse_coerce.c
+4
-4
src/include/parser/parse_coerce.h
src/include/parser/parse_coerce.h
+4
-4
No files found.
src/backend/parser/parse_coerce.c
View file @
807e4bc8
...
...
@@ -540,7 +540,7 @@ coerce_type(ParseState *pstate, Node *node,
* as this determines the set of available casts.
*/
bool
can_coerce_type
(
int
nargs
,
Oid
*
input_typeids
,
Oid
*
target_typeids
,
can_coerce_type
(
int
nargs
,
const
Oid
*
input_typeids
,
const
Oid
*
target_typeids
,
CoercionContext
ccontext
)
{
bool
have_generics
=
false
;
...
...
@@ -1467,8 +1467,8 @@ coerce_to_common_type(ParseState *pstate, Node *node,
* We do not ereport here, but just return false if a rule is violated.
*/
bool
check_generic_type_consistency
(
Oid
*
actual_arg_types
,
Oid
*
declared_arg_types
,
check_generic_type_consistency
(
const
Oid
*
actual_arg_types
,
const
Oid
*
declared_arg_types
,
int
nargs
)
{
int
j
;
...
...
@@ -1664,7 +1664,7 @@ check_generic_type_consistency(Oid *actual_arg_types,
* assume that successive inputs are of the same actual element type.
*/
Oid
enforce_generic_type_consistency
(
Oid
*
actual_arg_types
,
enforce_generic_type_consistency
(
const
Oid
*
actual_arg_types
,
Oid
*
declared_arg_types
,
int
nargs
,
Oid
rettype
,
...
...
src/include/parser/parse_coerce.h
View file @
807e4bc8
...
...
@@ -41,7 +41,7 @@ extern Node *coerce_to_target_type(ParseState *pstate,
CoercionContext
ccontext
,
CoercionForm
cformat
,
int
location
);
extern
bool
can_coerce_type
(
int
nargs
,
Oid
*
input_typeids
,
Oid
*
target_typeids
,
extern
bool
can_coerce_type
(
int
nargs
,
const
Oid
*
input_typeids
,
const
Oid
*
target_typeids
,
CoercionContext
ccontext
);
extern
Node
*
coerce_type
(
ParseState
*
pstate
,
Node
*
node
,
Oid
inputTypeId
,
Oid
targetTypeId
,
int32
targetTypeMod
,
...
...
@@ -71,10 +71,10 @@ extern Node *coerce_to_common_type(ParseState *pstate, Node *node,
Oid
targetTypeId
,
const
char
*
context
);
extern
bool
check_generic_type_consistency
(
Oid
*
actual_arg_types
,
Oid
*
declared_arg_types
,
extern
bool
check_generic_type_consistency
(
const
Oid
*
actual_arg_types
,
const
Oid
*
declared_arg_types
,
int
nargs
);
extern
Oid
enforce_generic_type_consistency
(
Oid
*
actual_arg_types
,
extern
Oid
enforce_generic_type_consistency
(
const
Oid
*
actual_arg_types
,
Oid
*
declared_arg_types
,
int
nargs
,
Oid
rettype
,
...
...
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