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
88016a56
Commit
88016a56
authored
Jan 06, 2000
by
Jan Wieck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in targetlist expression replacement of
SET DEFAULT referential action triggers. Jan
parent
d1e63688
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
src/backend/utils/adt/ri_triggers.c
src/backend/utils/adt/ri_triggers.c
+11
-4
No files found.
src/backend/utils/adt/ri_triggers.c
View file @
88016a56
...
...
@@ -6,7 +6,7 @@
*
* 1999 Jan Wieck
*
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ri_triggers.c,v 1.1
0 1999/12/10 12:34:1
3 wieck Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ri_triggers.c,v 1.1
1 2000/01/06 16:30:4
3 wieck Exp $
*
* ----------
*/
...
...
@@ -1903,7 +1903,12 @@ RI_FKey_setdefault_del (FmgrInfo *proinfo)
qplan
=
SPI_prepare
(
querystr
,
qkey
.
nkeypairs
,
queryoids
);
/* ----------
* Now replace the CONST NULL targetlist expressions
* Here now follows very ugly code depending on internals
* of the SPI manager.
*
* EVIL EVIL EVIL (but must be - Jan)
*
* We replace the CONST NULL targetlist expressions
* in the generated plan by (any) default values found
* in the tuple constructor.
* ----------
...
...
@@ -1931,7 +1936,8 @@ RI_FKey_setdefault_del (FmgrInfo *proinfo)
* ----------
*/
spi_qptle
=
(
TargetEntry
*
)
nth
(
i
,
spi_plan
->
targetlist
);
nth
(
defval
[
j
].
adnum
-
1
,
spi_plan
->
targetlist
);
spi_qptle
->
expr
=
stringToNode
(
defval
[
j
].
adbin
);
break
;
...
...
@@ -2188,7 +2194,8 @@ RI_FKey_setdefault_upd (FmgrInfo *proinfo)
* ----------
*/
spi_qptle
=
(
TargetEntry
*
)
nth
(
i
,
spi_plan
->
targetlist
);
nth
(
defval
[
j
].
adnum
-
1
,
spi_plan
->
targetlist
);
spi_qptle
->
expr
=
stringToNode
(
defval
[
j
].
adbin
);
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