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
f9e083fd
Commit
f9e083fd
authored
Mar 20, 2008
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ECPGget_PGconn() function to ecpglib, courtesy of Mike Aubury.
Removed one include file from connect-test1.
parent
15364ea0
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
16 deletions
+31
-16
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+5
-0
src/interfaces/ecpg/ecpglib/Makefile
src/interfaces/ecpg/ecpglib/Makefile
+2
-2
src/interfaces/ecpg/ecpglib/connect.c
src/interfaces/ecpg/ecpglib/connect.c
+11
-1
src/interfaces/ecpg/include/ecpglib.h
src/interfaces/ecpg/include/ecpglib.h
+13
-12
src/interfaces/ecpg/test/expected/connect-test1.c.in
src/interfaces/ecpg/test/expected/connect-test1.c.in
+0
-1
No files found.
src/interfaces/ecpg/ChangeLog
View file @
f9e083fd
...
...
@@ -2331,4 +2331,9 @@ Sun, 02 Mar 2008 11:50:48 +0100
Thu, 20 Mar 2008 16:54:27 +0100
- Changed statement escaping to not escape continuation line markers.
- Added ECPGget_PGconn() function to ecpglib, courtesy of Mike Aubury.
- Set pgtypes library version to 3.1.
- Set compat library version to 3.1.
- Set ecpg library version to 6.2.
- Set ecpg version to 4.5.
src/interfaces/ecpg/ecpglib/Makefile
View file @
f9e083fd
...
...
@@ -5,7 +5,7 @@
# Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.5
6 2008/02/26 06:41:24 petere
Exp $
# $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/Makefile,v 1.5
7 2008/03/20 16:29:44 meskes
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -15,7 +15,7 @@ include $(top_builddir)/src/Makefile.global
NAME
=
ecpg
SO_MAJOR_VERSION
=
6
SO_MINOR_VERSION
=
1
SO_MINOR_VERSION
=
2
DLTYPE
=
library
override CPPFLAGS
:
= -I../include -I$(top_srcdir)/src/interfaces/ecpg/include
\
...
...
src/interfaces/ecpg/ecpglib/connect.c
View file @
f9e083fd
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.4
8 2007/11/15 21:14:45 momjian
Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.4
9 2008/03/20 16:29:44 meskes
Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
...
...
@@ -565,3 +565,13 @@ ECPGdisconnect(int lineno, const char *connection_name)
return
true
;
}
PGconn
*
ECPGget_PGconn
(
const
char
*
connection_name
)
{
struct
connection
*
con
;
con
=
ecpg_get_connection
(
connection_name
);
if
(
con
==
NULL
)
return
NULL
;
return
con
->
connection
;
}
src/interfaces/ecpg/include/ecpglib.h
View file @
f9e083fd
/*
* this is a small part of c.h since we don't want to leak all postgres
* definitions into ecpg programs
* $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpglib.h,v 1.7
5 2008/02/14 12:22:36
meskes Exp $
* $PostgreSQL: pgsql/src/interfaces/ecpg/include/ecpglib.h,v 1.7
6 2008/03/20 16:29:45
meskes Exp $
*/
#ifndef _ECPGLIB_H
...
...
@@ -47,9 +47,11 @@ bool ECPGdo(const int, const int, const int, const char *, const bool, const in
bool
ECPGtrans
(
int
,
const
char
*
,
const
char
*
);
bool
ECPGdisconnect
(
int
,
const
char
*
);
bool
ECPGprepare
(
int
,
const
char
*
,
const
int
,
const
char
*
,
const
char
*
);
bool
ECPGdeallocate
(
int
,
int
,
const
char
*
connection_name
,
const
char
*
name
);
bool
ECPGdeallocate_all
(
int
,
int
,
const
char
*
connection_name
);
char
*
ECPGprepared_statement
(
const
char
*
connection_name
,
const
char
*
name
,
int
);
bool
ECPGdeallocate
(
int
,
int
,
const
char
*
,
const
char
*
);
bool
ECPGdeallocate_all
(
int
,
int
,
const
char
*
);
char
*
ECPGprepared_statement
(
const
char
*
,
const
char
*
,
int
);
PGconn
*
ECPGget_PGconn
(
const
char
*
);
char
*
ECPGerrmsg
(
void
);
...
...
@@ -63,18 +65,17 @@ void sqlprint(void);
/* dynamic SQL */
bool
ECPGdo_descriptor
(
int
line
,
const
char
*
connection
,
const
char
*
descriptor
,
const
char
*
query
);
bool
ECPGdeallocate_desc
(
int
line
,
const
char
*
name
);
bool
ECPGallocate_desc
(
int
line
,
const
char
*
name
);
bool
ECPGdo_descriptor
(
int
,
const
char
*
,
const
char
*
,
const
char
*
);
bool
ECPGdeallocate_desc
(
int
,
const
char
*
);
bool
ECPGallocate_desc
(
int
,
const
char
*
);
bool
ECPGget_desc_header
(
int
,
const
char
*
,
int
*
);
bool
ECPGget_desc
(
int
,
const
char
*
,
int
,...);
bool
ECPGget_desc
(
int
,
const
char
*
,
int
,
...);
bool
ECPGset_desc_header
(
int
,
const
char
*
,
int
);
bool
ECPGset_desc
(
int
,
const
char
*
,
int
,...);
bool
ECPGset_desc
(
int
,
const
char
*
,
int
,
...);
void
ECPGset_noind_null
(
enum
ECPGttype
,
void
*
);
bool
ECPGis_noind_null
(
enum
ECPGttype
,
void
*
);
bool
ECPGdescribe
(
int
,
bool
,
const
char
*
,...);
bool
ECPGdescribe
(
int
,
bool
,
const
char
*
,
...);
/* dynamic result allocation */
void
ECPGfree_auto_mem
(
void
);
...
...
src/interfaces/ecpg/test/expected/connect-test1.c.in
View file @
f9e083fd
/* Processed by ecpg (regression mode) */
/* These include files are added by the preprocessor */
#include <ecpgtype.h>
#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.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