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
80e6d997
Commit
80e6d997
authored
Nov 26, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add -cmdTuples to tcl interface.
parent
7fb0d910
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
doc/src/sgml/libpgtcl.sgml
doc/src/sgml/libpgtcl.sgml
+10
-0
src/interfaces/libpgtcl/pgtclCmds.c
src/interfaces/libpgtcl/pgtclCmds.c
+9
-1
No files found.
doc/src/sgml/libpgtcl.sgml
View file @
80e6d997
...
@@ -728,6 +728,16 @@ the number of tuples returned by the query.
...
@@ -728,6 +728,16 @@ the number of tuples returned by the query.
</VARLISTENTRY>
</VARLISTENTRY>
<VARLISTENTRY>
<VARLISTENTRY>
<TERM>
<TERM>
<option>-cmdTuples</option>
</TERM>
<LISTITEM>
<PARA>
the number of tuples affected by the query.
</PARA>
</LISTITEM>
</VARLISTENTRY>
<VARLISTENTRY>
<TERM>
<option>-numAttrs</option>
<option>-numAttrs</option>
</TERM>
</TERM>
<LISTITEM>
<LISTITEM>
...
...
src/interfaces/libpgtcl/pgtclCmds.c
View file @
80e6d997
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.
69 2002/10/17 14:51:50 tgl
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.
70 2002/11/26 21:38:49 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -506,6 +506,8 @@ Pg_exec(ClientData cData, Tcl_Interp *interp, int argc, char *argv[])
...
@@ -506,6 +506,8 @@ Pg_exec(ClientData cData, Tcl_Interp *interp, int argc, char *argv[])
-numTuples the number of tuples in the query
-numTuples the number of tuples in the query
-cmdTuples the number of tuples affected by the query
-numAttrs returns the number of attributes returned by the query
-numAttrs returns the number of attributes returned by the query
-assign arrayName
-assign arrayName
...
@@ -591,6 +593,11 @@ Pg_result(ClientData cData, Tcl_Interp *interp, int argc, char *argv[])
...
@@ -591,6 +593,11 @@ Pg_result(ClientData cData, Tcl_Interp *interp, int argc, char *argv[])
sprintf
(
interp
->
result
,
"%d"
,
PQntuples
(
result
));
sprintf
(
interp
->
result
,
"%d"
,
PQntuples
(
result
));
return
TCL_OK
;
return
TCL_OK
;
}
}
else
if
(
strcmp
(
opt
,
"-cmdTuples"
)
==
0
)
{
sprintf
(
interp
->
result
,
"%s"
,
PQcmdTuples
(
result
));
return
TCL_OK
;
}
else
if
(
strcmp
(
opt
,
"-numAttrs"
)
==
0
)
else
if
(
strcmp
(
opt
,
"-numAttrs"
)
==
0
)
{
{
sprintf
(
interp
->
result
,
"%d"
,
PQnfields
(
result
));
sprintf
(
interp
->
result
,
"%d"
,
PQnfields
(
result
));
...
@@ -768,6 +775,7 @@ Pg_result_errReturn:
...
@@ -768,6 +775,7 @@ Pg_result_errReturn:
"
\t
-conn
\n
"
,
"
\t
-conn
\n
"
,
"
\t
-oid
\n
"
,
"
\t
-oid
\n
"
,
"
\t
-numTuples
\n
"
,
"
\t
-numTuples
\n
"
,
"
\t
-cmdTuples
\n
"
,
"
\t
-numAttrs
\n
"
"
\t
-numAttrs
\n
"
"
\t
-assign arrayVarName
\n
"
,
"
\t
-assign arrayVarName
\n
"
,
"
\t
-assignbyidx arrayVarName ?appendstr?
\n
"
,
"
\t
-assignbyidx arrayVarName ?appendstr?
\n
"
,
...
...
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