Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
e34d442d
Commit
e34d442d
authored
24 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Mention fallback case for type coercion in description
of function resolution procedure.
parent
e4eb9104
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/src/sgml/typeconv.sgml
+16
-6
16 additions, 6 deletions
doc/src/sgml/typeconv.sgml
with
16 additions
and
6 deletions
doc/src/sgml/typeconv.sgml
+
16
−
6
View file @
e34d442d
...
...
@@ -279,7 +279,7 @@ select "string"
category if any candidate accepts that category (this bias towards string
is appropriate since an unknown-type literal does look like a string).
Otherwise, if all the remaining candidates accept the same type category,
select that category; otherwise
r
ai
se an error
because
select that category; otherwise
f
ai
l
because
the correct choice cannot be deduced without more clues. Also note whether
any of the candidates accept a preferred datatype within the selected category.
Now discard operator candidates that do not accept the selected type category;
...
...
@@ -292,7 +292,7 @@ argument.
<para>
If only one candidate remains, use it. If no candidate or more than one
candidate remains,
then
r
ai
se an error
.
then
f
ai
l
.
</para>
</step>
</substeps>
...
...
@@ -488,7 +488,7 @@ select "string"
category if any candidate accepts that category (this bias towards string
is appropriate since an unknown-type literal does look like a string).
Otherwise, if all the remaining candidates accept the same type category,
select that category; otherwise
r
ai
se an error
because
select that category; otherwise
f
ai
l
because
the correct choice cannot be deduced without more clues. Also note whether
any of the candidates accept a preferred datatype within the selected category.
Now discard operator candidates that do not accept the selected type category;
...
...
@@ -501,11 +501,22 @@ argument.
<para>
If only one candidate remains, use it. If no candidate or more than one
candidate remains,
then
r
ai
se an error
.
then
f
ai
l
.
</para>
</step>
</substeps>
</step>
<step performance="required">
<para>
If no best match could be identified, see whether the function call appears
to be a trivial type coercion request. This happens if the function call
has just one argument and the function name is the same as the (internal)
name of some datatype. Furthermore, the function argument must be either
an unknown-type literal or a type that is binary-compatible with the named
datatype. When these conditions are met, the function argument is coerced
to the named datatype.
</para>
</step>
</procedure>
<sect2>
...
...
@@ -699,8 +710,7 @@ Otherwise, ignore the <type>unknown</type> inputs while choosing the type.
<step performance="required">
<para>
If the non-unknown inputs are not all of the same type category, raise an
error.
If the non-unknown inputs are not all of the same type category, fail.
</para></step>
<step performance="required">
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment