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
856da1e6
Commit
856da1e6
authored
Feb 21, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Constlen can be -1, so make it a signed type.
parent
7b30490b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
src/backend/nodes/makefuncs.c
src/backend/nodes/makefuncs.c
+2
-2
src/backend/nodes/outfuncs.c
src/backend/nodes/outfuncs.c
+5
-5
src/backend/nodes/readfuncs.c
src/backend/nodes/readfuncs.c
+2
-2
src/include/nodes/makefuncs.h
src/include/nodes/makefuncs.h
+2
-2
src/include/nodes/primnodes.h
src/include/nodes/primnodes.h
+2
-2
No files found.
src/backend/nodes/makefuncs.c
View file @
856da1e6
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/makefuncs.c,v 1.
7 1998/02/10 16:03:17
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/makefuncs.c,v 1.
8 1998/02/21 16:58:22
momjian Exp $
*
* NOTES
* Creator functions in POSTGRES 4.2 are generated automatically. Most of
...
...
@@ -102,7 +102,7 @@ makeResdom(AttrNumber resno,
*/
Const
*
makeConst
(
Oid
consttype
,
Size
constlen
,
int
constlen
,
Datum
constvalue
,
bool
constisnull
,
bool
constbyval
,
...
...
src/backend/nodes/outfuncs.c
View file @
856da1e6
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.3
0 1998/02/13 03:27:45 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.3
1 1998/02/21 16:58:24 momjian
Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
...
...
@@ -629,7 +629,7 @@ _outResdom(StringInfo str, Resdom *node)
char
buf
[
500
];
appendStringInfo
(
str
,
"RESDOM"
);
sprintf
(
buf
,
" :resno %
h
d "
,
node
->
resno
);
sprintf
(
buf
,
" :resno %d "
,
node
->
resno
);
appendStringInfo
(
str
,
buf
);
sprintf
(
buf
,
" :restype %u "
,
node
->
restype
);
appendStringInfo
(
str
,
buf
);
...
...
@@ -724,7 +724,7 @@ _outVar(StringInfo str, Var *node)
appendStringInfo
(
str
,
"VAR"
);
sprintf
(
buf
,
" :varno %d "
,
node
->
varno
);
appendStringInfo
(
str
,
buf
);
sprintf
(
buf
,
" :varattno %
h
d "
,
node
->
varattno
);
sprintf
(
buf
,
" :varattno %d "
,
node
->
varattno
);
appendStringInfo
(
str
,
buf
);
sprintf
(
buf
,
" :vartype %u "
,
node
->
vartype
);
appendStringInfo
(
str
,
buf
);
...
...
@@ -749,7 +749,7 @@ _outConst(StringInfo str, Const *node)
appendStringInfo
(
str
,
"CONST"
);
sprintf
(
buf
,
" :consttype %u "
,
node
->
consttype
);
appendStringInfo
(
str
,
buf
);
sprintf
(
buf
,
" :constlen %
h
d "
,
node
->
constlen
);
sprintf
(
buf
,
" :constlen %d "
,
node
->
constlen
);
appendStringInfo
(
str
,
buf
);
appendStringInfo
(
str
,
" :constisnull "
);
appendStringInfo
(
str
,
node
->
constisnull
?
"true"
:
"false"
);
...
...
@@ -931,7 +931,7 @@ _outParam(StringInfo str, Param *node)
appendStringInfo
(
str
,
"PARAM"
);
sprintf
(
buf
,
" :paramkind %d "
,
node
->
paramkind
);
appendStringInfo
(
str
,
buf
);
sprintf
(
buf
,
" :paramid %
h
d "
,
node
->
paramid
);
sprintf
(
buf
,
" :paramid %d "
,
node
->
paramid
);
appendStringInfo
(
str
,
buf
);
appendStringInfo
(
str
,
" :paramname "
);
appendStringInfo
(
str
,
node
->
paramname
);
...
...
src/backend/nodes/readfuncs.c
View file @
856da1e6
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.2
5 1998/02/13 03:27:47 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.2
6 1998/02/21 16:58:26 momjian
Exp $
*
* NOTES
* Most of the read functions for plan nodes are tested. (In fact, they
...
...
@@ -947,7 +947,7 @@ _readConst()
token
=
lsptok
(
NULL
,
&
length
);
/* get :constlen */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
local_node
->
constlen
=
strto
u
l
(
token
,
NULL
,
10
);
local_node
->
constlen
=
strtol
(
token
,
NULL
,
10
);
token
=
lsptok
(
NULL
,
&
length
);
/* get :constisnull */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
...
...
src/include/nodes/makefuncs.h
View file @
856da1e6
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: makefuncs.h,v 1.
9 1998/02/10 16:04:24
momjian Exp $
* $Id: makefuncs.h,v 1.
10 1998/02/21 16:58:45
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -39,7 +39,7 @@ extern Resdom * makeResdom(AttrNumber resno,
int
resjunk
);
extern
Const
*
makeConst
(
Oid
consttype
,
Size
constlen
,
int
constlen
,
Datum
constvalue
,
bool
constisnull
,
bool
constbyval
,
...
...
src/include/nodes/primnodes.h
View file @
856da1e6
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: primnodes.h,v 1.
19 1998/02/13 03:45:29 vadim
Exp $
* $Id: primnodes.h,v 1.
20 1998/02/21 16:58:49 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -181,7 +181,7 @@ typedef struct Const
{
NodeTag
type
;
Oid
consttype
;
Size
constlen
;
int
constlen
;
Datum
constvalue
;
bool
constisnull
;
bool
constbyval
;
...
...
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