summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/connect.c
AgeCommit message (Collapse)Author
2010-07-06pgindent run for 9.0, second runBruce Momjian
2010-05-07ECPG connect routine only checked for NULL to find empty parameters, but ↵Michael Meskes
user and password can also be "".
2009-06-118.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef listBruce Momjian
provided by Andrew.
2009-01-15NLS cleanup in ecpglibPeter Eisentraut
Replace leftover instances of _() by ecpg_gettext(), the latter being the correct way to refer to the library's message catalog, instead of the one of the program using the library. Drop NLS support for ecpg_log(), which is a debugging instrument similar to elog() in the backend. We cannot support NLS in the ecpg compatlib, because that requires ecpg_gettext, which is in ecpglib, which is not a dependency of compatlib. It doesn't seem worthwhile to worry about this, since the only translatable string is "out of memory", and gettext probably won't be able to do much without memory either. Adjust messages to project style.
2008-12-17Applied patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> toMichael Meskes
fix segfault on non-glibc systems.
2008-05-16Add localization support to ecpg.Peter Eisentraut
Author: Euler Taveira de Oliveira <euler@timbira.com>
2008-03-27- Moved from PQsetdbLogin to PQconnectDB.Michael Meskes
- Correctly parse connect options. - Changed regression tests accordingly.
2008-03-20Added ECPGget_PGconn() function to ecpglib, courtesy of Mike Aubury.Michael Meskes
Removed one include file from connect-test1.
2007-11-15pgindent run for 8.3.Bruce Momjian
2007-10-03Cleaned up ecpglib and renamed functions that do not need to be exported.Michael Meskes
Created export list for ecpglib.
2007-10-03Hopefully fixed some stuff that causes Windows builds to fail.Michael Meskes
2007-10-02ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> added thread-safeMichael Meskes
descriptor handling
2007-09-30Applied another patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>Michael Meskes
to get memory allocation thread-safe. He also did some cleaning up.
2007-09-26Applied patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> to get ↵Michael Meskes
prepare thread-safe.
2007-08-14- Finished major rewrite to use new protocol versionMichael Meskes
- Really prepare statements - Added more regression tests - Added auto-prepare mode - Use '$n' for positional variables, '?' is still possible via ecpg option - Cleaned up the sources a little bit
2007-03-29- Added patch by Magnus Hagander <magnus@hagander.net> to use nativeMichael Meskes
win32 threads. - Fixed regression tests to run threading tests.
2007-03-17- Changed some whitespacing in connect statement.Michael Meskes
- Made some chars const as proposed by Stefan Huehner <stefan@huehner.org>. - Synced parser and keyword lists. - Copied two token parsing from backend parser to ecpg parser. - Also added a test case for this.
2007-01-12Simplified regression handlingMichael Meskes
Added patch by Joachim to work around OpenBSD bug in regression suite.
2007-01-11Applied Joachim's patch for a --regression option.Michael Meskes
Made this option mark the .c files, so the environment variable is no longer needed. Created a special MinGW file with the special error message. Do not print port into log file when running regression tests.
2006-11-08Applied patch by Peter Harris to free auto_mem structure on connectMichael Meskes
2006-10-04pgindent run for 8.2.Bruce Momjian
2006-08-29Fixed parser and library to allow empty database names.Michael Meskes
Streamlined connection name parsing. Added Joachim's patch to shorten paths before diffing.
2006-08-27- Enabled single-quoted connection targets.Michael Meskes
- Fixed a memory leak/segfault in unsuccessful connection. - Some changes to test files.
2006-08-13Applied patch for VPATH builds by Alvaro Herrera <alvherre@commandprompt.com>Michael Meskes
Merged dyntest.pgc and dyntest2.pgc. Hopefully fixed the last Coverity reports (finally)
2006-08-02ynced parser and keyword list.Michael Meskes
Implemented EXEC SQL UNDEF. Applied first version of the regression test patch by Joachim Wieland <joe@mcknight.de>.
2006-07-28And one more:Michael Meskes
Connection identifier has to be unique
2006-06-21Added some more coverity report patches send in by Martijn van Oosterhout ↵Michael Meskes
<kleptog@svana.org>.
2006-06-21Added fixed from the coverity report send in by Joachim Wieland ↵Michael Meskes
<joe@mcknight.de> Added missing error handling in a few functions in ecpglib
2006-06-19Do not use already free'ed errmsg, bug found by Joachim WielandMichael Meskes
<joachim.wieland@credativ.de>
2005-11-30- Made several variables "const char *" instead of "char *" as proposed by ↵Michael Meskes
Qingqing Zhou <zhouqq@cs.toronto.edu>. - Replaced all strdup() calls by ECPGstrdup(). - Set ecpg library version to 5.2. - Set ecpg version to 4.2.1.
2005-10-15Standard pgindent run for 8.1.Bruce Momjian
2005-04-14Added patch by Philip Yarra <philip.yarra@internode.on.net> for a bug in ↵Michael Meskes
thread support.
2004-12-30Fixed segfault in connect when specifying no database name.Michael Meskes
2004-08-29Pgindent run for 8.0.Bruce Momjian
2004-06-10Attached is a patch that takes care of the PATHSEP issue. I made a moreBruce Momjian
extensive change then what was suggested. I found the file path.c that contained a lot of "Unix/Windows" agnostic functions so I added a function there instead and removed the PATHSEP declaration in exec.c altogether. All to keep things from scattering all over the code. I also took the liberty of changing the name of the functions "first_path_sep" and "last_path_sep". Where I come from (and I'm apparently not alone given the former macro name PATHSEP), they should be called "first_dir_sep" and "last_dir_sep". The new function I introduced, that actually finds path separators, is now the "first_path_sep". The patch contains changes on all affected places of course. I also changed the documentation on dynamic_library_path to reflect the chagnes. Thomas Hallgren
2004-03-15The "cvs add" of test_thread_implicit.pgc seems to have been missed,Bruce Momjian
i've attached this again. Additionally I include a small patch to remove mutex locking when a DEFAULT/NULL connection is being retrieved. This is consistent with libpq. Lee Kindness
2004-03-14- Fixed Informix compat math functions to cope with the situationsMichael Meskes
where one argument takes the result. - Applied thread patches by Lee Kindness
2003-11-29$Header: -> $PostgreSQL Changes ...PostgreSQL Daemon
2003-11-24Rename USE_THREADS to ENABLE_THREAD_SAFETY to avoid name clash with Perl.Peter Eisentraut
Fixes compilation failure with --enable-thread-safety --with-perl and Perl 5.6.1.
2003-08-24Add macros for error result fields to libpq.Peter Eisentraut
2003-08-08Be a little bit more careful about using sqlstate, in case libpq returnedPeter Eisentraut
NULL for it.
2003-08-04pgindent run.Bruce Momjian
2003-08-01Make ecpg SQLSTATE-aware. Map existing SQLCODE assignments to SQLSTATEs,Peter Eisentraut
rather than parsing the message. Add some documentation about embedded SQL.
2003-08-01- Added some Informix error codes in Informix mode.Michael Meskes
- Added just another pgtypeslib function.
2003-07-15Started to create different error codes for different backend messages.Michael Meskes
2003-07-08Fix segfault in connect in informix mode.Michael Meskes
2003-07-01Use ISO dates in pgtypeslib by default.Michael Meskes
Applied patch by Philip Yarra to fix some thread issues. Added a new data type "decimal" which is mostly the same as our "numeric" but uses a fixed length array to store the digits. This is for compatibility with Informix and maybe others.
2003-06-26Added just another compatibility level for Informix.Michael Meskes
2003-06-25Implemented Informix special way to treat NULLs, removed warnings, synced.Michael Meskes
2003-06-15Make ecpg thread safe.Bruce Momjian
Lee Kindness