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
2bdded35
Commit
2bdded35
authored
Nov 11, 1996
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various cleanups from D'Arcy
parent
6913c8b4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
16 deletions
+25
-16
src/backend/parser/gram.y
src/backend/parser/gram.y
+1
-3
src/bin/psql/rlstubs.c
src/bin/psql/rlstubs.c
+7
-2
src/interfaces/libpgtcl/pgtcl.c
src/interfaces/libpgtcl/pgtcl.c
+7
-3
src/interfaces/libpgtcl/pgtclCmds.c
src/interfaces/libpgtcl/pgtclCmds.c
+7
-6
src/interfaces/libpgtcl/pgtclId.c
src/interfaces/libpgtcl/pgtclId.c
+3
-2
No files found.
src/backend/parser/gram.y
View file @
2bdded35
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.1
4 1996/11/08 20:45:33 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.1
5 1996/11/11 12:14:09 scrappy
Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -56,8 +56,6 @@ extern List *parsetree;
*/
/*#define __YYSCLASS*/
extern void yyerror(char message[]);
static char *xlateSqlType(char *);
static Node *makeA_Expr(int op, char *opname, Node *lexpr, Node *rexpr);
...
...
src/bin/psql/rlstubs.c
View file @
2bdded35
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/rlstubs.c,v 1.
3 1996/11/11 05:55:32 momjian
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/rlstubs.c,v 1.
4 1996/11/11 12:14:21 scrappy
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,8 +15,13 @@
#include "rlstubs.h"
extern
char
*
readline
(
const
char
*
);
extern
int
write_history
(
const
char
*
);
extern
int
using_history
(
void
);
extern
int
add_history
(
const
char
*
);
char
*
readline
(
char
*
prompt
)
readline
(
c
onst
c
har
*
prompt
)
{
static
char
buf
[
500
];
...
...
src/interfaces/libpgtcl/pgtcl.c
View file @
2bdded35
...
...
@@ -9,14 +9,18 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtcl.c,v 1.
4 1996/11/09 10:39:40
scrappy Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtcl.c,v 1.
5 1996/11/11 12:14:38
scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#include <stdlib.h>
#include "postgres.h"
#include "tcl.h"
#include "libpgtcl.h"
#include "pgtclCmds.h"
#include "pgtclId.h"
/*
* Pgtcl_Init
...
...
@@ -27,7 +31,7 @@
/*
* Tidy up forgotten postgres connection at Tcl_Exit
*/
void
static
void
Pgtcl_AtExit
(
ClientData
cData
)
{
Pg_clientData
*
cd
=
(
Pg_clientData
*
)
cData
;
...
...
@@ -52,7 +56,7 @@ Pgtcl_AtExit (ClientData cData)
/*
* Tidy up forgotten postgres connections on Interpreter deletion
*/
void
static
void
Pgtcl_Shutdown
(
ClientData
cData
,
Tcl_Interp
*
interp
)
{
Pgtcl_AtExit
(
cData
);
...
...
src/interfaces/libpgtcl/pgtclCmds.c
View file @
2bdded35
...
...
@@ -7,16 +7,17 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.
6 1996/11/09 10:39:41
scrappy Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.
7 1996/11/11 12:14:42
scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#include <stdio.h>
#include <stdlib.h>
#include <tcl.h>
#include <string.h>
#include <tcl.h>
#include "postgres.h"
#include "libpq/pqcomm.h"
#include "libpq-fe.h"
#include "libpq/libpq-fs.h"
...
...
@@ -224,7 +225,7 @@ tcl_value (char *value)
**********************************/
int
Pg_conndefaults
(
ClientData
cData
,
Tcl_Interp
*
interp
,
int
argc
,
char
*
argv
[]
)
Pg_conndefaults
(
ClientData
cData
,
Tcl_Interp
*
interp
,
int
argc
,
char
**
argv
)
{
PQconninfoOption
*
option
;
char
buf
[
8192
];
...
...
@@ -581,7 +582,7 @@ Pg_result(ClientData cData, Tcl_Interp *interp, int argc, char* argv[])
Tcl_ResetResult
(
interp
);
for
(
i
=
0
;
i
<
PQnfields
(
result
);
i
++
)
{
sprintf
(
buf
,
"{%s} %ld %d"
,
PQfname
(
result
,
i
),
PQftype
(
result
,
i
),
(
long
)
PQftype
(
result
,
i
),
PQfsize
(
result
,
i
));
Tcl_AppendElement
(
interp
,
buf
);
}
...
...
@@ -1125,7 +1126,7 @@ Pg_select(ClientData cData, Tcl_Interp *interp, int argc, char **argv)
Pg_clientData
*
cd
=
(
Pg_clientData
*
)
cData
;
PGconn
*
conn
;
PGresult
*
result
;
int
ch_flag
,
r
;
int
r
;
size_t
tupno
,
column
,
ncols
;
Tcl_DString
headers
;
struct
{
...
...
src/interfaces/libpgtcl/pgtclId.c
View file @
2bdded35
...
...
@@ -12,15 +12,16 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclId.c,v 1.
2 1996/10/30 06:18:41
scrappy Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclId.c,v 1.
3 1996/11/11 12:14:45
scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#include <stdlib.h>
#include <string.h>
#include
"tcl.h"
#include
<tcl.h>
#include "postgres.h"
#include "pgtclCmds.h"
#include "pgtclId.h"
...
...
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