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
7f97e05b
Commit
7f97e05b
authored
Sep 12, 1997
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
char* --> Datum
parent
1ea01720
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
contrib/spi/refint.c
contrib/spi/refint.c
+5
-5
src/include/executor/spi.h
src/include/executor/spi.h
+1
-1
No files found.
contrib/spi/refint.c
View file @
7f97e05b
...
...
@@ -42,7 +42,7 @@ check_primary_key()
int
nargs
;
/* # of args specified in CREATE TRIGGER */
char
**
args
;
/* arguments: column names and table name */
int
nkeys
;
/* # of key columns (= nargs / 2) */
char
*
*
kvals
;
/* key values */
Datum
*
kvals
;
/* key values */
char
*
relname
;
/* referenced relation name */
Relation
rel
;
/* triggered relation */
HeapTuple
tuple
=
NULL
;
/* tuple to return */
...
...
@@ -107,7 +107,7 @@ check_primary_key()
* We use SPI plan preparation feature, so allocate space to place key
* values.
*/
kvals
=
(
char
**
)
palloc
(
nkeys
*
sizeof
(
char
*
));
kvals
=
(
Datum
*
)
palloc
(
nkeys
*
sizeof
(
Datum
));
/*
* Construct ident string as TriggerName $ TriggeredRelationId and try
...
...
@@ -228,7 +228,7 @@ check_foreign_key()
int
nrefs
;
/* number of references (== # of plans) */
char
action
;
/* 'R'estrict | 'S'etnull | 'C'ascade */
int
nkeys
;
/* # of key columns */
char
*
*
kvals
;
/* key values */
Datum
*
kvals
;
/* key values */
char
*
relname
;
/* referencing relation name */
Relation
rel
;
/* triggered relation */
HeapTuple
trigtuple
=
NULL
;
/* tuple to being changed */
...
...
@@ -310,7 +310,7 @@ check_foreign_key()
* We use SPI plan preparation feature, so allocate space to place key
* values.
*/
kvals
=
(
char
**
)
palloc
(
nkeys
*
sizeof
(
char
*
));
kvals
=
(
Datum
*
)
palloc
(
nkeys
*
sizeof
(
Datum
));
/*
* Construct ident string as TriggerName $ TriggeredRelationId and try
...
...
@@ -494,7 +494,7 @@ check_foreign_key()
elog
(
WARN
,
"%s: tuple referenced in %s"
,
trigger
->
tgname
,
relname
);
}
#if
ndef REFINT_QUIET
#if
def REFINT_VERBOSE
else
elog
(
NOTICE
,
"%s: %d tuple(s) of %s are %s"
,
trigger
->
tgname
,
SPI_processed
,
relname
,
...
...
src/include/executor/spi.h
View file @
7f97e05b
...
...
@@ -73,7 +73,7 @@ extern int SPI_result;
extern
int
SPI_connect
(
void
);
extern
int
SPI_finish
(
void
);
extern
int
SPI_exec
(
char
*
src
,
int
tcount
);
extern
int
SPI_execp
(
void
*
plan
,
char
*
*
values
,
char
*
Nulls
,
int
tcount
);
extern
int
SPI_execp
(
void
*
plan
,
Datum
*
values
,
char
*
Nulls
,
int
tcount
);
extern
void
*
SPI_prepare
(
char
*
src
,
int
nargs
,
Oid
*
argtypes
);
extern
void
*
SPI_saveplan
(
void
*
plan
);
...
...
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