summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/connect.c
AgeCommit message (Collapse)Author
2012-03-08ecpg: Fix rare memory leaksPeter Eisentraut
found by Coverity
2012-02-19In ecpglib rewrote code that used strtok_r to not use library functionsMichael Meskes
anymore. This way we don't have to worry which compiler on which OS offers which version of strtok.
2012-02-18gcc on Windows does not know about strtok_s.Michael Meskes
2012-02-18Windows doesn't have strtok_r, so let's use strtok_s instead.Michael Meskes
2012-02-18Make sure all connection paramters are used in call to PQconnectdbParams.Michael Meskes
2012-02-06Allow the connection keyword array to carry all seven items in ecpglib.Michael Meskes
2012-02-04Applied Peter's patch to PQconnectdbParams in ecpglib instead of the oldMichael Meskes
PQconectdb.
2012-01-05Ecpglib stores variables that are used in DECLARE statements in a global list.Michael Meskes
This list is now freed when the last connection has been closed. Closes: #6366
2011-04-10pgindent run before PG 9.1 beta 1.Bruce Momjian
2010-11-14Cleanup various comparisons with the constant "true".Robert Haas
Itagaki Takahiro, with slight modifications.
2010-11-02Some cleanup in ecpg code:Michael Meskes
Use bool as type for booleans instead of int. Do not implicitely cast size_t to int. Make the compiler stop complaining about unused variables by adding an empty statement.
2010-10-14Applied patch by Itagaki Takahiro to fix incorrect status calculation inMichael Meskes
ecpglib. Instead of parsing the statement just as ask the database server. This patch removes the whole client side track keeping of the current transaction status.
2010-09-20Remove cvs keywords from all files.Magnus Hagander
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