aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq++
Commit message (Collapse)AuthorAge
* Okay, libpq++ is moved to GBorg, and all traces of it have been removedMarc G. Fournier2002-08-22
| | | | | | | | from the core repository ... I haven't *moved* the libpq++ files out of the tree, mainly as we want to keep them in place for past branches ... Peter, I think I've covered all the files I need, and re-ran autoconf to make sure the configure file is in place properly ...
* Assemble portability modules into libpgport library.Peter Eisentraut2002-07-27
| | | | Some makefile simplifications.
* Fix for PgTransaction class to make these visible to C apps:Bruce Momjian2002-07-18
| | | | | | | ExecStatusType BeginTransaction(); ExecStatusType EndTransaction(); Piotr Klaban
* Indent libpq++ as mentioned in email. Format was terrible, and thisBruce Momjian2002-07-02
| | | | will make fixing things easier.
* Update copyright to 2002.Bruce Momjian2002-06-20
|
* The method PgLargeObject::LOid() is missing an implementation in the .ccBruce Momjian2002-06-15
| | | | | | | | | | | | | | | | | | | | | | file. The program seems to compile ok, but when linking a program that uses the call, g++ chokes with an undefined reference error. If you know how this problem might be fixed, list the solution below: --------------------------------------------------------------------- I include the code: Oid PgLargeObject::LOid(){ return pgObject; } in the .cc file. Chris Traylor
* This patch fixes a few minor problems with libpq++: remove the deprecatedBruce Momjian2002-06-15
| | | | | | | | | | | PQExec(" ") in the wrapper around PQnotifies(), fix the Makefile for the examples so that they will actually compile properly (with the exception of #5, which depends on internal headers), make a minor change to libpq++.h so that "make examples" now works on my machine, update some documentation, fix some grammatical problems, and remove some of the more hideous comments. Neil Conway
* Fix interface example errors causes by backend changes.Bruce Momjian2002-06-07
| | | | Permaine Cheung
* Inlined a patch to add the libpq setNoticeProcessor capability toBruce Momjian2002-03-11
| | | | | | libpq++. Ofir Reichenberg
* Update Win32-world version number of libpq++.Peter Eisentraut2002-01-30
|
* libpq++/pgconnection.h must not include postgres_fe.h, else it fails toTom Lane2002-01-22
| | | | | | compile in client apps that use the standard installed header set. To allow removing that include, move DLLIMPORT definitions out of c.h and into the appropriate port-specific header files.
* Make libpq++ safe again for older C++ compilers. Do 'using namespace std'Tom Lane2001-09-30
| | | | | only if configure found it was safe to do so; do not assume const_cast is available.
* Rename config.h to pg_config.h and os.h to pg_config_os.h, fix a number ofPeter Eisentraut2001-08-24
| | | | places that were including the wrong files.
* Add win32 c++ files.Bruce Momjian2001-07-12
|
* Libpq++ fixes for Win32 compile.Bruce Momjian2001-07-11
| | | | Christian Ullrich
* Bump major libpq++ version after API changes, Patrick WelcheBruce Momjian2001-05-22
|
* Stamp CVS as 7.2. Update all interface version numbers. This is theBruce Momjian2001-05-11
| | | | | time to do it, not during beta because people are using this stuff in production sometimes.
* Fix libpq++'s FieldSize to return int, not short.Bruce Momjian2001-05-09
|
* Add mention of getLength returning short.Bruce Momjian2001-05-09
|
* Here's a version of my suggested diffs transplanted to 7.1 beta 5. I'mBruce Momjian2001-05-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | still looking at the best way to integrate Tom Vijlbrief's fixes (insofar as they're still needed); would 7.2 be a suitable time for incompatible API changes? Jeroen Changes: (*) Introduced bool, true, false (replacing some int, 1, 0) (*) Made some member functions const (*) Documented GetIsNull() (*) Marked DisplayTuples() and PrintTuples() as obsolescent; fixed possible portability problem (assumed that NULL pointer equals all-zero bit pattern) (*) PrintTuples(): renamed width parameter to fillAlign to conform with other usage; fixed memory leak and compile issue w.r.t. field separator (should also slightly improve performance) (*) Fixed some minor compilation issues (*) Moved "using namespace std;" out of headers, where they didn't belong; used new (temporary) preprocessor macro PGSTD to do this (*) Made ToString() static, removed unneeded memset(), made buffer size adapt to sizeof(int) (*) Made some constructors explicit (*) Changed some const std::string & parameters to plain std::string (*) Marked PgCursor::Cursor(std::string) as obsolescent (setter with same name as getter--bad style) (*) Renamed some paramaters previously named "string" (*) Introduced size_type typedef for number of tuples in result set (*) PgTransaction now supports re-opening after closing, and aborts if not explicitly committed prior to destruction J. T. Vermeulen
* We got automatic dependencies now.Peter Eisentraut2001-03-14
|
* Make sure -L and -I's for our source tree are always before system includePeter Eisentraut2001-02-20
| | | | or library directories on the command line.
* Restructure the key include files per recent pghackers discussion: thereTom Lane2001-02-10
| | | | | | | | | | | are now separate files "postgres.h" and "postgres_fe.h", which are meant to be the primary include files for backend .c files and frontend .c files respectively. By default, only include files meant for frontend use are installed into the installation include directory. There is a new make target 'make install-all-headers' that adds the whole content of the src/include tree to the installed fileset, for use by people who want to develop server-side code without keeping the complete source tree on hand. Cleaned up a whole lot of crufty and inconsistent header inclusions.
* Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group.Bruce Momjian2001-01-24
|
* Polish shared library build to reduce number of special hacks. InPeter Eisentraut2000-10-23
| | | | | | | | | particular, allow linking with arbitrary commands rather than only $(AR) or $(LD), and treat C++ without hacks. Add option to disable shared libraries. This takes the place of the BSD_SHLIB variable. The regression test driver ignores the plpgsql test if there are no shared libraries available.
* Add support for VPATH builds, that is, building somewhere else than in thePeter Eisentraut2000-10-20
| | | | | | | | | source directory. This involves mostly makefiles using $(srcdir) when they might have used ".". (Regression tests don't work with this, yet.) Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS). Add "override" keyword in most places, to preserve necessary flags even when the user overrode the flags.
* Support for DESTDIR make variable. This is used as in `make installPeter Eisentraut2000-09-17
| | | | | | | | | | | | | | | | | | | | | | | | | | DESTDIR=/else/where' and prepends the value of DESTDIR to the full installation paths (e.g., /else/where/usr/local/pgsql/bin). This allows users to install the package into a location different from the one that was configured and hard-coded into various scripts, e.g., for creating binary packages. DESTDIR is in many cases preferrable over `make install prefix=/else/where' because a) `prefix' affects the path that is hard-coded into the files, which can lead to a `make install prefix=xxx' (as done by the regression test driver) corrupting the files in the source tree with wrong paths. b) it doesn't work at all if a directory was overridden to not depend on `prefix', e.g., --sysconfdir=/etc. (Updating the regression test driver to use DESTDIR is a separate undertaking.) See also autoconf@gnu.org, From: Akim Demaille <akim@epita.fr>, Date: 08 Sep 2000 12:48:59 +0200, Message-ID: <mv4em2vb1lw.fsf@nostromo.lrde.epita.fr>, Subject: Re: HTML format documentation.
* Fix relative path references so that make knowns which dependencies referPeter Eisentraut2000-08-31
| | | | | to one another. Sort out builddir vs srcdir variable namings. Remove some now obsoleted make variables.
* Here is a bug and patch to fix it. I have tested this bug and fix onBruce Momjian2000-07-27
| | | | | | | | | | | | | | FreeBSD/Intel and DecUX/Alpha machines. The bug appears in postgresql 6.5.3 and 7.0.2. Can someone please review it and apply it to the source tree? Sometimes when the postgres connection dies it is necessary to attempt to reconnect. Calling the pgconnection::Connect method in a derived class leaks memory because it does not clear the current connection (if there is one). These patches ensures that any open connections are closed before attempting to open a new one. -Michael Richards
* Fixes for Solaris/cc suggested by <pgsql-hackers@thewrittenword.com>Peter Eisentraut2000-06-30
| | | | | | | | Don't use DISABLE_COMPLEX_MACRO on Solaris. Don't define the replacement function in the header file. Use -KPIC, not -K PIC. Use CC to link C++ libraries, not ld/ar. Eliminate file not found warnings in tcl build code.
* Makefile cleanup for interface tree. Now essentially with all thePeter Eisentraut2000-06-28
| | | | | | | | | | | | | | | | | | | | | standard targets and behaviour. Replaced Makefile.in's with Makefile's and declared the respective variables in Makefile.global. maintainer-clean target now available at top level, although it does not work in the backend tree yet. Cleanup pass over Makefile.shlib, renamed some targets and variables. The shared library symlink tests are now done by make, not the shell. ecpg: Remove one warning in sloppy flex output. PL/Perl and Perl interface: the MakeMaker documentation is confusing, the realclean target *does* "delete derived files", but it also uninstalls them. Don't use that. The submake targets in the various bin directories that update libpq should `make all', not `make libpq.a'. That is a) unportable, and b) doesn't build the shared library.
* Remove fmgrstamp-h business -- not needed and confusingPeter Eisentraut2000-06-17
| | | | | Add options to configure to automatically build for Kerberos support; no more editing of make files.
* Moved configure script from src/ to the top level directory. MovedPeter Eisentraut2000-06-06
| | | | | configuration helper things into config/ dir. Adjusted some relative paths in makefiles.
* Cleanup of <> and ""Bruce Momjian2000-05-29
|
* Generated header files parse.h and fmgroids.h are now copied intoTom Lane2000-05-29
| | | | | the src/include tree, so that -I backend is no longer necessary anywhere. Also, clean up some bit rot in contrib tree.
* Make c++ examples return 0 from main().Bruce Momjian2000-04-25
|
* Add mention of int in variable.Bruce Momjian2000-04-23
|
* Add mention of int for variable in examplesBruce Momjian2000-04-23
|
* Remove broken tracing code (which would be dangerous if it did work...)Tom Lane2000-04-22
| | | | | | | | | | | libpq++.h contained copies of the class declarations in the other libpq++ include files, which was bogus enough, but the declarations were not completely in step with the real declarations. Remove these in favor of including the headers with #include. Make PgConnection destructor virtual (not absolutely necessary, but seems like a real good idea considering the number of subclasses derived from it). Give all classes declared private copy constructors and assignment operators, to prevent compiler from thinking it can copy these objects safely.
* Update example: PgLargeObject constructor now takes a conninfo string,Tom Lane2000-04-22
| | | | not a bare database name.
* #undef const, inline, signed, volatile, on the expectation that a C++Tom Lane2000-04-14
| | | | | | compiler will understand them. configure may have #define'd them to empty because the local C compiler doesn't understand them, but this may very well cause a C++ compilation to fail, so don't do it in C++.
* Use the CXXFLAGS exported by configure (amazingly, we weren't before!)Tom Lane2000-03-31
| | | | | | and do not arbitrarily pull in CFLAGS instead. This caters to platforms where the C++ compiler does not like all the same switches the C compiler wants.
* Make use of configure symbols for unportable constructs. MakeTom Lane2000-03-30
| | | | inclusions of system headers more consistent.
* libpq++ Makefile uses -DDEBUG to turn on debugging trace toBruce Momjian2000-03-16
| | | | | | | | | | | | /tmp/trace.out. However, elog.h uses DEBUG as a log-level flag. As a result, tracing is turned on even if the libpq++.so is built with DEBUG commented out in the Makefile. This patch changes libpq++ to use DEBUGFILE instead (which is not defined anywhere else). Oliver Elphick
* I've made a diff against the 7.0beta1 tree that accomplishes several things:Bruce Momjian2000-03-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) adds NetBSD shared lib support on both ELF and a.out platforms 2) replaces "-L$(LIBPQDIR) -lpq" with "$(LIBPQ)" defined in Makefile.global. This makes it much easier to build stuff in the source tree after you've already installed the libraries. 3) adds TEMPLATEDIR in Makefile.global that indicates where the database templates are stored. This separates the template files from real libraries that are installed in $(LIBDIR). 4) changes include order of <readline/readline.h> and <readline.h>. The latest GNU readline installs its headers under a readline subdirectory. In addition to applying the patch below the following files need to be copied: backend/port/dynloader: bsd.h -> netbsd.h bsd.c -> netbsd.c include/port: bsd.h -> netbsd.h makefiles: Makefile.bsd -> Makefile.netbsd It would be great to see this incorporated into the source tree before the 7.0 release is cut. Thanks! -- Johnny C. Lam <lamj@stat.cmu.edu>
* Patch for Irix from Mark Dalphin.Bruce Momjian2000-03-02
|
* A few minor psql enhancementsPeter Eisentraut2000-01-29
| | | | | | | Initdb help correction Changed end/abort to commit/rollback and changed related notices Commented out way old printing functions in libpq Fixed a typo in alter table / alter column
* Add:Bruce Momjian2000-01-26
| | | | | | * Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
* Update int28out and out8out and _in_ functions to handle trailing zerosBruce Momjian2000-01-10
| | | | properly.
* I have done the QNX4 port with the current source tree. The number ofBruce Momjian1999-12-16
| | | | | | | | backend/Makefiles to be patched could significantly be reduced since they have been adopted to the QNX4 needs. Andreas Kardos