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
0108fddf
Commit
0108fddf
authored
Nov 04, 1996
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove NULL_PATCH define
parent
8edbc3bd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
17 deletions
+4
-17
src/backend/parser/analyze.c
src/backend/parser/analyze.c
+1
-3
src/backend/parser/catalog_utils.c
src/backend/parser/catalog_utils.c
+1
-3
src/backend/parser/parse_query.c
src/backend/parser/parse_query.c
+1
-5
src/backend/parser/parser.c
src/backend/parser/parser.c
+1
-5
src/include/config.h
src/include/config.h
+0
-1
No files found.
src/backend/parser/analyze.c
View file @
0108fddf
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.1
0 1996/11/04 04:19:41
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/analyze.c,v 1.1
1 1996/11/04 04:35:39
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1234,11 +1234,9 @@ make_targetlist_expr(ParseState *pstate,
...
@@ -1234,11 +1234,9 @@ make_targetlist_expr(ParseState *pstate,
elog
(
WARN
,
"make_targetlist_expr: invalid use of NULL expression"
);
elog
(
WARN
,
"make_targetlist_expr: invalid use of NULL expression"
);
type_id
=
exprType
(
expr
);
type_id
=
exprType
(
expr
);
#ifdef NULL_PATCH
if
(
!
type_id
)
{
if
(
!
type_id
)
{
type_len
=
0
;
type_len
=
0
;
}
else
}
else
#endif
type_len
=
tlen
(
get_id_type
(
type_id
));
type_len
=
tlen
(
get_id_type
(
type_id
));
/* I have no idea what the following does! */
/* I have no idea what the following does! */
...
...
src/backend/parser/catalog_utils.c
View file @
0108fddf
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/catalog_utils.c,v 1.
5 1996/10/31 05:54:27
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/catalog_utils.c,v 1.
6 1996/11/04 04:35:40
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -472,10 +472,8 @@ oper(char *op, int arg1, int arg2)
...
@@ -472,10 +472,8 @@ oper(char *op, int arg1, int arg2)
CandidateList
candidates
;
CandidateList
candidates
;
int
ncandidates
;
int
ncandidates
;
#ifdef NULL_PATCH
if
(
!
arg2
)
arg2
=
arg1
;
if
(
!
arg2
)
arg2
=
arg1
;
if
(
!
arg1
)
arg1
=
arg2
;
if
(
!
arg1
)
arg1
=
arg2
;
#endif
if
(
!
(
tup
=
SearchSysCacheTuple
(
OPRNAME
,
if
(
!
(
tup
=
SearchSysCacheTuple
(
OPRNAME
,
PointerGetDatum
(
op
),
PointerGetDatum
(
op
),
...
...
src/backend/parser/parse_query.c
View file @
0108fddf
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.
5 1996/10/30 02:01:59
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.
6 1996/11/04 04:35:42
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -651,11 +651,7 @@ make_const(Value *value)
...
@@ -651,11 +651,7 @@ make_const(Value *value)
/* null const */
/* null const */
con
=
makeConst
(
0
,
0
,
(
Datum
)
NULL
,
TRUE
,
0
,
FALSE
);
con
=
makeConst
(
0
,
0
,
(
Datum
)
NULL
,
TRUE
,
0
,
FALSE
);
#ifdef NULL_PATCH
return
con
;
return
con
;
#else
return
NULL
/*con*/
;
#endif
}
}
}
}
...
...
src/backend/parser/parser.c
View file @
0108fddf
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.
3 1996/10/31 11:09:44 scrappy
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.
4 1996/11/04 04:35:43 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -302,10 +302,8 @@ parser_typecast2(Node *expr, int exprType, Type tp, int typlen)
...
@@ -302,10 +302,8 @@ parser_typecast2(Node *expr, int exprType, Type tp, int typlen)
Assert
(
IsA
(
expr
,
Const
));
Assert
(
IsA
(
expr
,
Const
));
switch
(
exprType
)
{
switch
(
exprType
)
{
#ifdef NULL_PATCH
case
0
:
/* NULL */
case
0
:
/* NULL */
break
;
break
;
#endif
case
23
:
/* int4 */
case
23
:
/* int4 */
const_string
=
(
char
*
)
palloc
(
256
);
const_string
=
(
char
*
)
palloc
(
256
);
string_palloced
=
true
;
string_palloced
=
true
;
...
@@ -356,7 +354,6 @@ parser_typecast2(Node *expr, int exprType, Type tp, int typlen)
...
@@ -356,7 +354,6 @@ parser_typecast2(Node *expr, int exprType, Type tp, int typlen)
elog
(
WARN
,
"unknown type%d "
,
exprType
);
elog
(
WARN
,
"unknown type%d "
,
exprType
);
}
}
#ifdef NULL_PATCH
if
(
!
exprType
)
{
if
(
!
exprType
)
{
adt
=
makeConst
((
Oid
)
typeid
(
tp
),
adt
=
makeConst
((
Oid
)
typeid
(
tp
),
(
Size
)
0
,
(
Size
)
0
,
...
@@ -366,7 +363,6 @@ parser_typecast2(Node *expr, int exprType, Type tp, int typlen)
...
@@ -366,7 +363,6 @@ parser_typecast2(Node *expr, int exprType, Type tp, int typlen)
0
/* not a set */
);
0
/* not a set */
);
return
((
Node
*
)
adt
);
return
((
Node
*
)
adt
);
}
}
#endif
cp
=
instr2
(
tp
,
const_string
,
typlen
);
cp
=
instr2
(
tp
,
const_string
,
typlen
);
...
...
src/include/config.h
View file @
0108fddf
...
@@ -180,7 +180,6 @@
...
@@ -180,7 +180,6 @@
/* found in src/backend/utils/adt/arrayfuncs.c */
/* found in src/backend/utils/adt/arrayfuncs.c */
/* #define LOARRAY */
/* #define LOARRAY */
#define NULL_PATCH
#define OPENLINK_PATCHES
#define OPENLINK_PATCHES
/* This is the time, in seconds, at which a given backend server
/* This is the time, in seconds, at which a given backend server
...
...
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