summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib
AgeCommit message (Collapse)Author
2010-01-15Added correct error handling in DESCRIBE statement processing by Boszormenyi ↵Michael Meskes
Zoltan <zb@cybertec.at>.
2010-01-15Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add DESCRIBE ↵Michael Meskes
[OUTPUT] statement to ecpg.
2010-01-13Applied Zoltan's patch to make char the default sqlda type.Michael Meskes
Given that undefined types are handled as character strings anyway the type translation function can simply return the correcponding ECPGt_char type.
2010-01-13Fix SQL3 type return value.Michael Meskes
For non-SQL3 types ecpg used to return -Oid. This will break if there are enough Oids to fill the namespace. Therefore we play it safe and return 0 if there is no Oid->SQL3 tyoe mapping available.
2010-01-06Replaced int64_t with int64 as Andrew suggested.Michael Meskes
2010-01-06Remove __FUNCTION__ keyword that is not recognized by som compilers.Michael Meskes
2010-01-06Applied Zoltan's patch to remove hardware dependant offset logging andMichael Meskes
superfluous include files.
2010-01-05Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add sqlda support toMichael Meskes
ecpg in both native and compatiblity mode.
2010-01-05Get rid of the need for manual maintenance of the initial contents ofTom Lane
pg_attribute, by having genbki.pl derive the information from the various catalog header files. This greatly simplifies modification of the "bootstrapped" catalogs. This patch finally kills genbki.sh and Gen_fmgrtab.sh; we now rely entirely on Perl scripts for those build steps. To avoid creating a Perl build dependency where there was not one before, the output files generated by these scripts are now treated as distprep targets, ie, they will be built and shipped in tarballs. But you will need a reasonably modern Perl (probably at least 5.6) if you want to build from a CVS pull. The changes to the MSVC build process are untested, and may well break --- we'll soon find out from the buildfarm. John Naylor, based on ideas from Robert Haas and others
2010-01-02Update copyright for the year 2010.Bruce Momjian
2009-12-31Redefine Datum as uintptr_t, instead of unsigned long.Tom Lane
This is more in keeping with modern practice, and is a first step towards porting to Win64 (which has sizeof(pointer) > sizeof(long)). Tsutomu Yamada, Magnus Hagander, Tom Lane
2009-11-27If no result is given NOTFOUND should be returned. Check for empty resultMichael Meskes
string too.
2009-11-24Made function better readable.Michael Meskes
2009-10-20Translations update for 8.5alpha2Peter Eisentraut
2009-10-15Made ECPG more robust against applications freeing strings, based onMichael Meskes
patch send in by Boszormenyi Zoltan <zb@cybertec.at>.
2009-10-01Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to fix memory leak in ↵Michael Meskes
decimal handling.
2009-09-18Added patch by Bernd Helmle <bernd.helmle@credativ.de> that adds a low levelMichael Meskes
function that returns the current transaction status.
2009-09-03Fixed incorrect memory management.Michael Meskes
2009-09-03Do not set connection values if no connection is open.Michael Meskes
2009-08-07Remove unused ecpg variable.Bruce Momjian
2009-08-07Added STRING datatype for Informix compatibility mode. This work isMichael Meskes
based on a patch send in by Böszörményi Zoltán <zb@cybertec.at>.
2009-07-22Fix mismatch in const:ness of parameters.Magnus Hagander
2009-07-13Stamp minor library version numbers for 8.5; sorry for the delay.Bruce Momjian
2009-06-118.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef listBruce Momjian
provided by Andrew.
2009-06-10Translation updatesPeter Eisentraut
2009-05-20Removed unsigned/signed mismatches.Michael Meskes
2009-05-20Removed some unneeded variables and comparisonsMichael Meskes
2009-05-14Translation updatesAlvaro Herrera
2009-04-09Translation updates for 8.4 betaPeter Eisentraut
2009-02-07ecpg requires libpq; add Makefile rules to require libpq to be builtBruce Momjian
first. Alvaro Herrera
2009-02-03Argh, wrong line copied again.Michael Meskes
2009-02-03Fixed copy&paste mistake that made library use uninitialized variable.Michael Meskes
2009-02-02Fixed auto allocation for binary data types.Michael Meskes
2009-01-16WordsmithingPeter Eisentraut
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.
2009-01-14misc.o depends on pg_config_paths.h when --enable-nls is used.Peter Eisentraut
2009-01-02Split the ecpg translation support into a separate catalog for the ecpgPeter Eisentraut
preprocessor and the library. This is useful for a number of reasons: * The preprocessor and the library are in some cases installed in separate packages and used by different classes of users. * The library MO files need a different versioning scheme to account for the soname. * The makefiles are simpler, more robust, and easier to maintain this way. (NLS web site was prone to break everytime a build rule changes.) * Translators might choose to focus on the ecpglib, because that is more user-facing. * There was virtually no overlap, so nothing is lost.
2009-01-01Update copyright for 2009.Bruce Momjian
2008-12-17Applied patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> toMichael Meskes
fix segfault on non-glibc systems.
2008-12-15Fix cast-away-const problem as well as bogus calculation of required buffer ↵Tom Lane
size.
2008-12-15Do not try to change a const variable.Michael Meskes
2008-12-11Append major version number and for libraries soname major version numberPeter Eisentraut
to the gettext domain name, to simplify parallel installations. Also, rename set_text_domain() to pg_bindtextdomain(), because that is what it does.
2008-11-01Move from strcmp to strncmp to be more tolerant for changes to the parser.Michael Meskes
2008-07-17Add MSVC++ debug libraries to .cvsignore.Alvaro Herrera
2008-05-17ecpglib needs to link with libintl if it's in use.Tom Lane
Per buildfarm results.
2008-05-16Add localization support to ecpg.Peter Eisentraut
Author: Euler Taveira de Oliveira <euler@timbira.com>
2008-05-14Fix a few warnings that have crept into CVS HEAD.Bruce Momjian
2008-05-12Check for non-existant connection in prepare statement handling.Michael Meskes
Do not close files that weren't opened.
2008-04-07Implement a few changes to how shared libraries and dynamically loadablePeter Eisentraut
modules are built. Foremost, it creates a solid distinction between these two types of targets based on what had already been implemented and duplicated in ad hoc ways before. Specifically, - Dynamically loadable modules no longer get a soname. The numbers previously set in the makefiles were dummy numbers anyway, and the presence of a soname upset a few packaging tools, so it is nicer not to have one. - The cumbersome detour taken on installation (build a libfoo.so.0.0.0 and then override the rule to install foo.so instead) is removed. - Lots of duplicated code simplified.
2008-03-27- Moved from PQsetdbLogin to PQconnectDB.Michael Meskes
- Correctly parse connect options. - Changed regression tests accordingly.