Michael Meskes
492eaefb90
Do not check nan values for infinity. Some system are not able to handle this.
...
By Zoltán Böszörményi
2010-02-16 18:41:23 +00:00
Michael Meskes
c34446cddd
First try to make this one ecpg regression test work on Windows too. I'm just trying to figure out the minimal amount of defines needed.
2010-02-09 08:57:13 +00:00
Michael Meskes
58fb345dde
Usage of isnan() in ECPG regression tests probably needs '#include <float.h>' as well.
2010-02-04 11:23:29 +00:00
Michael Meskes
a96ad2fc74
Streamlined array handling code in libecpg a little bit, in the process fixing yet another incorrect log output.
2010-02-04 09:41:35 +00:00
Michael Meskes
1e4cc384ab
Fixed some typos in ECPG regression test suite that resulted in regression test failures on some architectures.
...
By Zoltán Böszörményi.
2010-02-03 13:56:27 +00:00
Tom Lane
45c88a55c2
Add #include <float.h> --- guessing the lack of this is why Windows
...
machines are all rejecting isinf() calls in this file.
2010-02-03 03:25:55 +00:00
Michael Meskes
cedae13017
Fixed NaN/Infinity problems in ECPG for float/double/numeric/decimal by making it OS independant.
...
Patch done by Zoltán Böszörményi.
2010-02-02 16:09:12 +00:00
Michael Meskes
83fa037b73
Changed ECPG outofscope handling to always print out statements in the same order
...
so regression testing is possible,
by Zoltan Boszormenyi
2010-01-29 16:28:13 +00:00
Michael Meskes
f180856596
Fixed a few typos in ecpg. Two were in comments, the third made a log output reverse yes and no.
2010-01-29 15:57:01 +00:00
Michael Meskes
c651c0eb01
Added test case that was part of Zoltan's patch but apparently wasn't part of my commit.
2010-01-26 10:31:14 +00:00
Michael Meskes
aa6ac35221
Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add out-of-scope cursor support to native mode.
2010-01-26 09:07:32 +00:00
Michael Meskes
306a4287c3
Make argument const char * as per Takahiro Itagaki's suggestion.
2010-01-22 14:19:27 +00:00
Michael Meskes
5bc75618e4
Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to fix problem in auto-prepare mode if the connection is closed and re-opened and the previously prepared query is issued again.
2010-01-22 14:13:03 +00:00
Michael Meskes
eb730cf556
Added correct error handling in DESCRIBE statement processing by Boszormenyi Zoltan <zb@cybertec.at>.
2010-01-15 13:19:12 +00:00
Michael Meskes
bf69b535c0
Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add DESCRIBE [OUTPUT] statement to ecpg.
2010-01-15 10:44:39 +00:00
Michael Meskes
b3627d1de3
Applied Zoltan's patch to make char the default sqlda type.
...
Given that undefined types are handled as character strings anyway the type
translation function can simply return the correcponding ECPGt_char type.
2010-01-13 09:06:51 +00:00
Michael Meskes
cf4d9c4772
Fix SQL3 type return value.
...
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-13 08:41:50 +00:00
Michael Meskes
b81d033130
Removed ecpg Changelog file that was only there for historical reasons and isn't actively used anymore.
2010-01-12 12:41:46 +00:00
Michael Meskes
369494e41f
Also update ChangerLog file.
2010-01-08 09:06:05 +00:00
Tom Lane
901be0fad4
Remove all the special-case code for INT64_IS_BUSTED, per decision that
...
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-07 04:53:35 +00:00
Michael Meskes
76e313c05f
Replaced int64_t with int64 as Andrew suggested.
2010-01-06 15:15:55 +00:00
Michael Meskes
223a9cd33f
Remove __FUNCTION__ keyword that is not recognized by som compilers.
2010-01-06 15:10:21 +00:00
Michael Meskes
822697a26e
Removed test case using nan as float value because printf's output for nan is
...
OS specific with some distinguishing between signaling and quiet nans. It's not
really importnat for us here anyway.
2010-01-06 11:59:52 +00:00
Michael Meskes
858dc6dc6f
Removed more inttypes.h stuff.
2010-01-06 11:49:43 +00:00
Michael Meskes
faddd3f066
Applied Zoltan's patch to remove hardware dependant offset logging and
...
superfluous include files.
2010-01-06 09:44:05 +00:00
Michael Meskes
1658f6bf58
And another one
2010-01-05 17:10:23 +00:00
Michael Meskes
ed4295f534
And another one of the same problem.
2010-01-05 17:07:51 +00:00
Michael Meskes
e24e18c609
And then forgot to commit the fixed files. ARGH!
2010-01-05 17:05:49 +00:00
Michael Meskes
76ecbb5782
Ah, should read the file completely. I got so used to git that I almost forgot about the cvs stuff.
2010-01-05 17:04:18 +00:00
Michael Meskes
ab2f0ef7c1
Thrid try. It seems my two checkouts need some cleaning up.
2010-01-05 16:58:37 +00:00
Michael Meskes
5126d680bb
Still not correct.
2010-01-05 16:52:15 +00:00
Michael Meskes
bd41870c2a
Adjusted CVS headers.
2010-01-05 16:49:46 +00:00
Michael Meskes
6d4a351fcb
Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add sqlda support to
...
ecpg in both native and compatiblity mode.
2010-01-05 16:38:23 +00:00
Tom Lane
64737e9313
Get rid of the need for manual maintenance of the initial contents of
...
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-05 01:06:57 +00:00
Bruce Momjian
0239800893
Update copyright for the year 2010.
2010-01-02 16:58:17 +00:00
Tom Lane
85d02a6586
Redefine Datum as uintptr_t, instead of unsigned long.
...
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-31 19:41:37 +00:00
Peter Eisentraut
baab7a0427
Translation updates
2009-12-19 20:23:26 +00:00
Alvaro Herrera
1b612dfeb6
Update ecpg regression tests to plpgsql installed by default.
2009-12-19 02:38:51 +00:00
Michael Meskes
36d192ad7d
Reverting accidently commited changes.
2009-12-17 07:28:58 +00:00
Michael Meskes
d19669e5f9
Fixed auto-prepare to not try preparing statements that are not preparable. Bug
...
found and solved by Boszormenyi Zoltan <zb@cybertec.at>, some small adjustments
by me.
2009-12-16 10:15:07 +00:00
Michael Meskes
bb28e83636
Remove */ characters from declare cursor statements before putting them into a
...
comment.
2009-11-27 16:07:22 +00:00
Michael Meskes
d7d5c6857b
If no result is given NOTFOUND should be returned. Check for empty result
...
string too.
2009-11-27 13:32:17 +00:00
Michael Meskes
81a82a13b2
Added script to check if all rule re-definition in ecpg.addons are indeed used
...
in the build process. If not the build process will stop with an error message.
2009-11-27 10:00:40 +00:00
Michael Meskes
280744d461
Added missing files.
2009-11-26 15:55:57 +00:00
Michael Meskes
c48d48d41f
Forgot to add dynamic cursors to Changelog.
2009-11-26 15:40:43 +00:00
Michael Meskes
fb9d62805d
Synced addon rules after some renamings.
2009-11-26 15:39:26 +00:00
Michael Meskes
a160c421a5
Added dynamic cursor names to ecpg. Almost the whole patch was done by
...
Boszormenyi Zoltan, with only a minor tweak or two from me.
2009-11-26 15:06:47 +00:00
Michael Meskes
14cc1ed7ed
Made function better readable.
2009-11-24 16:30:31 +00:00
Tom Lane
8d97c1dcfa
Use diff's -w switch only on Windows, to avoid problems with inconsistent
...
newline representations. Per buildfarm results and subsequent discussion.
Sync up a couple of other places that had their own policies.
2009-11-23 16:02:24 +00:00
Tom Lane
e6c63bf660
Refactor ecpg grammar so that it uses the core grammar's unreserved_keyword
...
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-21 05:44:05 +00:00