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
ac0c234c
Commit
ac0c234c
authored
Sep 20, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress gcc warning.
parent
272b914a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
src/backend/parser/parse_expr.c
src/backend/parser/parse_expr.c
+11
-5
No files found.
src/backend/parser/parse_expr.c
View file @
ac0c234c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.10
0 2001/09/20 14:20:27 petere
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.10
1 2001/09/20 23:31:08 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -163,8 +163,10 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
...
@@ -163,8 +163,10 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
* compatibility with standards-broken products
* compatibility with standards-broken products
* (like Microsoft's). Turn these into IS NULL exprs.
* (like Microsoft's). Turn these into IS NULL exprs.
*/
*/
if
(
Transform_null_equals
&&
strcmp
(
a
->
opname
,
"="
)
==
0
if
(
Transform_null_equals
&&
&&
(
exprIsNullConstant
(
a
->
lexpr
)
||
exprIsNullConstant
(
a
->
rexpr
)))
strcmp
(
a
->
opname
,
"="
)
==
0
&&
(
exprIsNullConstant
(
a
->
lexpr
)
||
exprIsNullConstant
(
a
->
rexpr
)))
{
{
NullTest
*
n
=
makeNode
(
NullTest
);
NullTest
*
n
=
makeNode
(
NullTest
);
n
->
nulltesttype
=
IS_NULL
;
n
->
nulltesttype
=
IS_NULL
;
...
@@ -174,7 +176,9 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
...
@@ -174,7 +176,9 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
else
else
n
->
arg
=
a
->
lexpr
;
n
->
arg
=
a
->
lexpr
;
result
=
transformExpr
(
pstate
,
n
,
precedence
);
result
=
transformExpr
(
pstate
,
(
Node
*
)
n
,
precedence
);
}
}
else
else
{
{
...
@@ -185,7 +189,9 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
...
@@ -185,7 +189,9 @@ transformExpr(ParseState *pstate, Node *expr, int precedence)
a
->
rexpr
,
a
->
rexpr
,
precedence
);
precedence
);
result
=
(
Node
*
)
make_op
(
a
->
opname
,
lexpr
,
rexpr
);
result
=
(
Node
*
)
make_op
(
a
->
opname
,
lexpr
,
rexpr
);
}
}
}
}
break
;
break
;
...
...
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