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
e9d0fa37
Commit
e9d0fa37
authored
Sep 04, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libpgtcl cleanups for Tom Lane.
parent
b806b3d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
src/interfaces/libpgtcl/pgtclCmds.c
src/interfaces/libpgtcl/pgtclCmds.c
+2
-3
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-exec.c
+10
-7
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-fe.h
+1
-2
No files found.
src/interfaces/libpgtcl/pgtclCmds.c
View file @
e9d0fa37
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.3
3 1998/09/03 05:08:2
8 momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.3
4 1998/09/04 05:02:5
8 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -616,8 +616,7 @@ Pg_result(ClientData cData, Tcl_Interp * interp, int argc, char *argv[])
for
(
i
=
1
;
i
<
PQnfields
(
result
);
i
++
)
{
sprintf
(
workspace
,
"%s,%.200s%s"
,
field0
,
PQfname
(
result
,
i
),
appendstr
);
sprintf
(
workspace
,
"%s,%.200s"
,
field0
,
PQfname
(
result
,
i
));
appendstr
);
if
(
Tcl_SetVar2
(
interp
,
arrVar
,
workspace
,
PQgetvalue
(
result
,
tupno
,
i
),
TCL_LEAVE_ERR_MSG
)
==
NULL
)
...
...
src/interfaces/libpq/fe-exec.c
View file @
e9d0fa37
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.6
6 1998/09/03 02:10:47
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.6
7 1998/09/04 05:03:02
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1489,12 +1489,15 @@ PQoidStatus(PGresult *res)
return
""
;
/*
* The cmdStatus string looks like INSERT oid count\0 In order to be
* able to return an ordinary C string without damaging the result for
* PQcmdStatus or PQcmdTuples, we copy the oid part of the string to
* just after the null, so that cmdStatus looks like INSERT oid
* count\0oid\0 ^ our return value points here Pretty klugy eh? This
* routine should've just returned an Oid value.
* The cmdStatus string looks like
* INSERT oid count\0
* In order to be able to return an ordinary C string without
* damaging the result for PQcmdStatus or PQcmdTuples, we copy
* the oid part of the string to just after the null, so that
* cmdStatus looks like
* INSERT oid count\0oid\0
* ^ our return value points here
* Pretty klugy eh? This routine should've just returned an Oid value.
*/
slen
=
strlen
(
res
->
cmdStatus
);
...
...
src/interfaces/libpq/libpq-fe.h
View file @
e9d0fa37
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq-fe.h,v 1.4
1 1998/09/03 02:10:51
momjian Exp $
* $Id: libpq-fe.h,v 1.4
2 1998/09/04 05:03:05
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -182,7 +182,6 @@ typedef void (*PQnoticeProcessor) (void * arg, const char * message);
extern
ConnStatusType
PQstatus
(
PGconn
*
conn
);
extern
char
*
PQerrorMessage
(
PGconn
*
conn
);
extern
int
PQsocket
(
PGconn
*
conn
);
extern
int
PQsocket
(
PGconn
*
conn
);
extern
int
PQbackendPID
(
PGconn
*
conn
);
/* Enable/disable tracing */
...
...
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