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
36f15dde
Commit
36f15dde
authored
Sep 29, 2003
by
Jan Wieck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed type lookup in spi_prepare for possible qualified
type name specification. Jan
parent
2f98ece4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
src/pl/tcl/pltcl.c
src/pl/tcl/pltcl.c
+23
-3
No files found.
src/pl/tcl/pltcl.c
View file @
36f15dde
...
...
@@ -31,7 +31,7 @@
* ENHANCEMENTS, OR MODIFICATIONS.
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.7
8 2003/09/14 17:25:54 tgl
Exp $
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.7
9 2003/09/29 19:24:06 wieck
Exp $
*
**********************************************************************/
...
...
@@ -1818,13 +1818,33 @@ pltcl_SPI_prepare(ClientData cdata, Tcl_Interp *interp,
************************************************************/
for
(
i
=
0
;
i
<
nargs
;
i
++
)
{
/* XXX should extend this to allow qualified type names */
typeTup
=
typenameType
(
makeTypeName
((
char
*
)
args
[
i
]));
char
*
argcopy
;
List
*
names
=
NIL
;
List
*
lp
;
TypeName
*
typename
;
/************************************************************
* Use SplitIdentifierString() on a copy of the type name,
* turn the resulting pointer list into a TypeName node
* and call typenameType() to get the pg_type tuple.
************************************************************/
argcopy
=
pstrdup
(
args
[
i
]);
SplitIdentifierString
(
argcopy
,
'.'
,
&
names
);
typename
=
makeNode
(
TypeName
);
foreach
(
lp
,
names
)
typename
->
names
=
lappend
(
typename
->
names
,
makeString
(
lfirst
(
lp
)));
typeTup
=
typenameType
(
typename
);
qdesc
->
argtypes
[
i
]
=
HeapTupleGetOid
(
typeTup
);
perm_fmgr_info
(((
Form_pg_type
)
GETSTRUCT
(
typeTup
))
->
typinput
,
&
(
qdesc
->
arginfuncs
[
i
]));
qdesc
->
argtypelems
[
i
]
=
((
Form_pg_type
)
GETSTRUCT
(
typeTup
))
->
typelem
;
ReleaseSysCache
(
typeTup
);
freeList
(
typename
->
names
);
pfree
(
typename
);
freeList
(
names
);
pfree
(
argcopy
);
}
/************************************************************
...
...
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