summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg
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-12Removed ecpg Changelog file that was only there for historical reasons and ↵Michael Meskes
isn't actively used anymore.
2010-01-08Also update ChangerLog file.Michael Meskes
2010-01-07Remove all the special-case code for INT64_IS_BUSTED, per decision thatTom Lane
we're not going to support that anymore. I did keep the 64-bit-CRC-with-32-bit-arithmetic code, since it has a performance excuse to live. It's a bit moot since that's all ifdef'd out, of course.
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-06Removed test case using nan as float value because printf's output for nan isMichael Meskes
OS specific with some distinguishing between signaling and quiet nans. It's not really importnat for us here anyway.
2010-01-06Removed more inttypes.h stuff.Michael Meskes
2010-01-06Applied Zoltan's patch to remove hardware dependant offset logging andMichael Meskes
superfluous include files.
2010-01-05And another oneMichael Meskes
2010-01-05And another one of the same problem.Michael Meskes
2010-01-05And then forgot to commit the fixed files. ARGH!Michael Meskes
2010-01-05Ah, should read the file completely. I got so used to git that I almost ↵Michael Meskes
forgot about the cvs stuff.
2010-01-05Thrid try. It seems my two checkouts need some cleaning up.Michael Meskes
2010-01-05Still not correct.Michael Meskes
2010-01-05Adjusted CVS headers.Michael Meskes
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-12-19Translation updatesPeter Eisentraut
2009-12-19Update ecpg regression tests to plpgsql installed by default.Alvaro Herrera
2009-12-17Reverting accidently commited changes.Michael Meskes
2009-12-16Fixed auto-prepare to not try preparing statements that are not preparable. BugMichael Meskes
found and solved by Boszormenyi Zoltan <zb@cybertec.at>, some small adjustments by me.
2009-11-27Remove */ characters from declare cursor statements before putting them into aMichael Meskes
comment.
2009-11-27If no result is given NOTFOUND should be returned. Check for empty resultMichael Meskes
string too.
2009-11-27Added script to check if all rule re-definition in ecpg.addons are indeed usedMichael Meskes
in the build process. If not the build process will stop with an error message.
2009-11-26Added missing files.Michael Meskes
2009-11-26Forgot to add dynamic cursors to Changelog.Michael Meskes
2009-11-26Synced addon rules after some renamings.Michael Meskes
2009-11-26Added dynamic cursor names to ecpg. Almost the whole patch was done byMichael Meskes
Boszormenyi Zoltan, with only a minor tweak or two from me.
2009-11-24Made function better readable.Michael Meskes
2009-11-23Use diff's -w switch only on Windows, to avoid problems with inconsistentTom Lane
newline representations. Per buildfarm results and subsequent discussion. Sync up a couple of other places that had their own policies.
2009-11-21Refactor ecpg grammar so that it uses the core grammar's unreserved_keywordTom Lane
list, minus a few specific words that have to be treated specially. This replaces a hard-wired list of keywords that would have needed manual maintenance, and was not getting it. The 8.4 coding was already missing these words, causing ecpg to incorrectly treat them as reserved words: CALLED, CATALOG, DEFINER, ENUM, FOLLOWING, INVOKER, OPTIONS, PARTITION, PRECEDING, RANGE, SECURITY, SERVER, UNBOUNDED, WRAPPER. In HEAD we were additionally missing COMMENTS, FUNCTIONS, SEQUENCES, TABLES. Per gripe from Bosco Rama.
2009-11-11Change "name" nonterminal in cursor-related productions to cursor_name.Alvaro Herrera
This is a preparatory patch for allowing a dynamic cursor name be used in the ECPG grammar. Author: Zoltan Boszormenyi
2009-11-11Support optional FROM/IN in FETCH and MOVEAlvaro Herrera
The main motivation for this is that it's required for Informix compatibility in ECPG. This patch makes the ECPG and core grammars a bit closer to one another for these productions. Author: Zoltan Boszormenyi
2009-11-05Don't treat NEW and OLD as reserved words anymore. For the purposes of rulesTom Lane
it works just as well to have them be ordinary identifiers, and this gets rid of a number of ugly special cases. Plus we aren't interfering with non-rule usage of these names. catversion bump because the names change internally in stored rules.
2009-10-26Simplify a few makefile rules since install-sh can now install multiplePeter Eisentraut
files in one run.
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-28Added some explanation about how the parser is generated, taken from an email byMichael Meskes
Zoltan Boszormenyi <zb@cybertec.at>.
2009-09-22Implement the DO statement to support execution of PL code without havingTom Lane
to create a function for it. Procedural languages now have an additional entry point, namely a function to execute an inline code block. This seemed a better design than trying to hide the transient-ness of the code from the PL. As of this patch, only plpgsql has an inline handler, but probably people will soon write handlers for the other standard PLs. In passing, remove the long-dead LANCOMPILER option of CREATE LANGUAGE. Petr Jelinek
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-15Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add missing ";" to ↵Michael Meskes
rule in pgc.l.
2009-09-08Remove outside-the-scanner references to "yyleng".Tom Lane
It seems the flex developers have decided to change yyleng from int to size_t. This has already happened in the latest release of OS X, and will start happening elsewhere once the next release of flex appears. Rather than trying to divine how it's declared in any particular build, let's just remove the one existing not-very-necessary external usage. Back-patch to all supported branches; not so much because users in the field are likely to care about building old branches with cutting-edge flex, as to keep OSX-based buildfarm members from having problems with old branches.
2009-09-03Fixed incorrect memory management.Michael Meskes