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
648029ec
Commit
648029ec
authored
Jun 16, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repair unforgivably brain-dead representation of CaseExpr nodes in
stored rules. Bump catversion to reflect incompatibility.
parent
fca9295f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
23 deletions
+36
-23
src/backend/nodes/outfuncs.c
src/backend/nodes/outfuncs.c
+7
-3
src/backend/nodes/readfuncs.c
src/backend/nodes/readfuncs.c
+27
-18
src/include/catalog/catversion.h
src/include/catalog/catversion.h
+2
-2
No files found.
src/backend/nodes/outfuncs.c
View file @
648029ec
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.11
8 2000/06/14 18:17:32 petere
Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.11
9 2000/06/16 05:27:02 tgl
Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
...
...
@@ -1385,10 +1385,14 @@ _outConstraint(StringInfo str, Constraint *node)
static
void
_outCaseExpr
(
StringInfo
str
,
CaseExpr
*
node
)
{
appendStringInfo
(
str
,
"CASE "
);
appendStringInfo
(
str
,
" CASE :casetype %u :arg "
,
node
->
casetype
);
_outNode
(
str
,
node
->
arg
);
appendStringInfo
(
str
,
" :args "
);
_outNode
(
str
,
node
->
args
);
appendStringInfo
(
str
,
" :def
a
ult "
);
appendStringInfo
(
str
,
" :def
res
ult "
);
_outNode
(
str
,
node
->
defresult
);
}
...
...
src/backend/nodes/readfuncs.c
View file @
648029ec
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.
89 2000/05/30 00:49:45 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.
90 2000/06/16 05:27:03 tgl
Exp $
*
* NOTES
* Most of the read functions for plan nodes are tested. (In fact, they
...
...
@@ -670,7 +670,7 @@ _readResdom()
token
=
lsptok
(
NULL
,
&
length
);
/* eat :restype */
token
=
lsptok
(
NULL
,
&
length
);
/* get restype */
local_node
->
restype
=
atol
(
token
);
local_node
->
restype
=
(
Oid
)
atol
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* eat :restypmod */
token
=
lsptok
(
NULL
,
&
length
);
/* get restypmod */
...
...
@@ -762,8 +762,17 @@ _readCaseExpr()
local_node
=
makeNode
(
CaseExpr
);
token
=
lsptok
(
NULL
,
&
length
);
/* eat :casetype */
token
=
lsptok
(
NULL
,
&
length
);
/* get casetype */
local_node
->
casetype
=
(
Oid
)
atol
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* eat :arg */
local_node
->
arg
=
nodeRead
(
true
);
token
=
lsptok
(
NULL
,
&
length
);
/* eat :args */
local_node
->
args
=
nodeRead
(
true
);
token
=
lsptok
(
NULL
,
&
length
);
/* eat :default */
token
=
lsptok
(
NULL
,
&
length
);
/* eat :defresult */
local_node
->
defresult
=
nodeRead
(
true
);
return
local_node
;
...
...
@@ -824,15 +833,15 @@ _readVar()
token
=
lsptok
(
NULL
,
&
length
);
/* eat :varlevelsup */
token
=
lsptok
(
NULL
,
&
length
);
/* get varlevelsup */
local_node
->
varlevelsup
=
(
Oid
)
atol
(
token
);
local_node
->
varlevelsup
=
(
Index
)
atoi
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* eat :varnoold */
token
=
lsptok
(
NULL
,
&
length
);
/* get varnoold */
local_node
->
varnoold
=
(
Oid
)
atol
(
token
);
local_node
->
varnoold
=
(
Index
)
atoi
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* eat :varoattno */
token
=
lsptok
(
NULL
,
&
length
);
/* eat :varoattno */
local_node
->
varoattno
=
(
int
)
atol
(
token
);
local_node
->
varoattno
=
atoi
(
token
);
return
local_node
;
}
...
...
@@ -942,7 +951,7 @@ _readConst()
token
=
lsptok
(
NULL
,
&
length
);
/* get :consttype */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
local_node
->
consttype
=
atol
(
token
);
local_node
->
consttype
=
(
Oid
)
atol
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* get :constlen */
...
...
@@ -1001,11 +1010,11 @@ _readFunc()
token
=
lsptok
(
NULL
,
&
length
);
/* get :funcid */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
local_node
->
funcid
=
atol
(
token
);
local_node
->
funcid
=
(
Oid
)
atol
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* get :functype */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
local_node
->
functype
=
atol
(
token
);
local_node
->
functype
=
(
Oid
)
atol
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* get :funcisindex */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
...
...
@@ -1051,15 +1060,15 @@ _readOper()
token
=
lsptok
(
NULL
,
&
length
);
/* get :opno */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
local_node
->
opno
=
atol
(
token
);
local_node
->
opno
=
(
Oid
)
atol
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* get :opid */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
local_node
->
opid
=
atol
(
token
);
local_node
->
opid
=
(
Oid
)
atol
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* get :opresulttype */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
local_node
->
opresulttype
=
atol
(
token
);
local_node
->
opresulttype
=
(
Oid
)
atol
(
token
);
/*
* NOTE: Alternatively we can call 'replace_opid' which initializes
...
...
@@ -1102,8 +1111,8 @@ _readParam()
token
=
lsptok
(
NULL
,
&
length
);
/* get :paramtype */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
local_node
->
paramtype
=
(
Oid
)
atol
(
token
);
local_node
->
paramtype
=
atol
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* get :param_tlist */
local_node
->
param_tlist
=
nodeRead
(
true
);
/* now read it */
...
...
@@ -1711,7 +1720,7 @@ _readPathKeyItem()
token
=
lsptok
(
NULL
,
&
length
);
/* get :sortop */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
local_node
->
sortop
=
atol
(
token
);
local_node
->
sortop
=
(
Oid
)
atol
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* get :key */
local_node
->
key
=
nodeRead
(
true
);
/* now read it */
...
...
@@ -1742,19 +1751,19 @@ _readRestrictInfo()
token
=
lsptok
(
NULL
,
&
length
);
/* get :mergejoinoperator */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
local_node
->
mergejoinoperator
=
atol
(
token
);
local_node
->
mergejoinoperator
=
(
Oid
)
atol
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* get :left_sortop */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
local_node
->
left_sortop
=
atol
(
token
);
local_node
->
left_sortop
=
(
Oid
)
atol
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* get :right_sortop */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
local_node
->
right_sortop
=
atol
(
token
);
local_node
->
right_sortop
=
(
Oid
)
atol
(
token
);
token
=
lsptok
(
NULL
,
&
length
);
/* get :hashjoinoperator */
token
=
lsptok
(
NULL
,
&
length
);
/* now read it */
local_node
->
hashjoinoperator
=
atol
(
token
);
local_node
->
hashjoinoperator
=
(
Oid
)
atol
(
token
);
return
local_node
;
}
...
...
src/include/catalog/catversion.h
View file @
648029ec
...
...
@@ -37,7 +37,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: catversion.h,v 1.3
1 2000/06/13 07:35:19
tgl Exp $
* $Id: catversion.h,v 1.3
2 2000/06/16 05:27:01
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -53,6 +53,6 @@
*/
/* yyyymmddN */
#define CATALOG_VERSION_NO 2000061
3
1
#define CATALOG_VERSION_NO 2000061
6
1
#endif
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