Peter Eisentraut
8032d76b5b
Gettext plural support
...
In the backend, I changed only a handful of exemplary or important-looking
instances to make use of the plural support; there is probably more work
there. For the rest of the source, this should cover all relevant cases.
2009-03-26 22:26:08 +00:00
Tom Lane
0fd85d7879
Remove the datetime keywords ABSTIME and RELTIME, which we'd been treating as
...
noise words for the last twelve years, for compatibility with Berkeley-era
output formatting of the special INVALID values for those datatypes.
Considering that the datatypes themselves have been deprecated for awhile,
this is taking backwards compatibility a little far. Per gripe from Josh
Berkus.
2009-03-22 01:12:32 +00:00
Alvaro Herrera
fb2ebae498
Add comments about kwlookup.c expectations
2009-03-08 16:53:30 +00:00
Alvaro Herrera
328d235571
Separate the key word list that lived in keywords.c into a new header file
...
kwlist.h, to avoid having to link the backend object file into other programs
like pg_dump. We can now simply symlink a single source file from the backend
(kwlookup.c, containing the shared routine ScanKeywordLookup) and compile it
locally, which is a lot cleaner.
2009-03-07 00:13:58 +00:00
Peter Eisentraut
cd3b750929
Sort the output of --help mostly alphabetical, make it align better, make
...
help of pg_dump and pg_dumpall more similar.
2009-02-25 13:03:07 +00:00
Bruce Momjian
e795b56322
ecpg requires libpq; add Makefile rules to require libpq to be built
...
first.
Alvaro Herrera
2009-02-07 17:17:34 +00:00
Michael Meskes
78cbd49826
Mixing long and int entries of a union only works on some architectures.
2009-02-05 08:28:47 +00:00
Michael Meskes
649a1252b7
Added result checks for calls to gmtime().
2009-02-04 08:51:10 +00:00
Michael Meskes
08ffa78483
Argh, wrong line copied again.
2009-02-03 08:55:45 +00:00
Michael Meskes
efd019fc94
Fixed copy&paste mistake that made library use uninitialized variable.
2009-02-03 08:48:29 +00:00
Michael Meskes
80f95a6500
When changing a regression test file one should also change the expected output file.
2009-02-02 16:54:28 +00:00
Michael Meskes
934eab7cd5
Set memory segment to '0', just to be sure.
2009-02-02 16:49:50 +00:00
Michael Meskes
2d3c691146
Fixed auto allocation for binary data types.
2009-02-02 16:14:06 +00:00
Michael Meskes
77ca045384
Fixed bug in %s handling.
2009-02-02 15:35:28 +00:00
Peter Eisentraut
cb629f7225
Make messages consistent with existing ones
2009-01-30 12:53:43 +00:00
Peter Eisentraut
c05460fe50
Whitespace fix in message
2009-01-30 12:53:12 +00:00
Peter Eisentraut
7adbd76655
Message fix
2009-01-29 09:38:38 +00:00
Peter Eisentraut
39ab3c1c61
Message format tuning
2009-01-26 10:19:44 +00:00
Peter Eisentraut
3b35a904aa
Message style review
2009-01-23 12:43:32 +00:00
Peter Eisentraut
9c4b69ed5c
Recreate ecpg_config.h with a stamp file created by config.status, same
...
way pg_config.h is handled. This avoids reruns of config.status on every
build, if configure has been rerun.
2009-01-22 22:27:13 +00:00
Peter Eisentraut
19afb4e805
Wordsmithing
2009-01-16 09:15:03 +00:00
Peter Eisentraut
cb05ab81a8
NLS cleanup in ecpglib
...
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-15 11:52:55 +00:00
Peter Eisentraut
cbb1358b18
Build needed things in src/test/regress/ first. And some build rules
...
normalization.
2009-01-15 09:30:20 +00:00
Peter Eisentraut
08585dcf13
misc.o depends on pg_config_paths.h when --enable-nls is used.
2009-01-14 14:54:35 +00:00
Peter Eisentraut
46866e92bd
Fix for cross-compilation between mingw32 and something else. The choice
...
of pwd vs. pwd -W is correctly a function of the build system, not the
host system.
2009-01-05 09:54:13 +00:00
Peter Eisentraut
a3114e52f6
Split the ecpg translation support into a separate catalog for the ecpg
...
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-02 13:26:54 +00:00
Bruce Momjian
511db38ace
Update copyright for 2009.
2009-01-01 17:24:05 +00:00
Michael Meskes
bdfde2b390
Finally the last test.
2008-12-29 17:48:11 +00:00
Michael Meskes
3c82099c82
First rounf of whitespace changes. Everything but connect-test1 should be fine.
2008-12-29 17:07:06 +00:00
Michael Meskes
e05c5a908b
Applied patch by ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp> to
...
fix segfault on non-glibc systems.
2008-12-17 16:52:07 +00:00
Tom Lane
d1c24460bf
Fix cast-away-const problem as well as bogus calculation of required buffer size.
2008-12-15 19:07:48 +00:00
Michael Meskes
3f7e1e4b91
Do not try to change a const variable.
2008-12-15 15:34:07 +00:00
Michael Meskes
192dd845a1
Using clause has to accept signed numeric constants too.
2008-12-12 12:14:43 +00:00
Peter Eisentraut
218b4e8dd8
Append major version number and for libraries soname major version number
...
to the gettext domain name, to simplify parallel installations.
Also, rename set_text_domain() to pg_bindtextdomain(), because that is what
it does.
2008-12-11 07:34:09 +00:00
Michael Meskes
ac03efbb9c
Removed port testing.
2008-12-01 11:37:37 +00:00
Tom Lane
b651b2a5c2
Make sure we give an appropriate user-facing error when attempting
...
to drop a table that is referenced by an open cursor. Fix unstable
ecpg regression test result that was produced by this oversight.
2008-11-29 00:13:21 +00:00
Tom Lane
2a6108ac24
Partial fix for fallout from temp-port changes. ecpg still needs more work,
...
but I think this is enough to turn the buildfarm green again.
2008-11-28 23:47:51 +00:00
Michael Meskes
df559de9c1
interval.c needs limits.h
2008-11-26 16:47:08 +00:00
Michael Meskes
7c5a561f31
Applied patch by Ron Mayer <rm_pg@cheapcomplexdevices.com> to merge the new
...
interval style into ecpg.
2008-11-26 16:31:02 +00:00
Michael Meskes
ba34215269
Removed strchrnul
2008-11-26 15:35:30 +00:00
Michael Meskes
c4a13c7e3c
When creating a varchar struct name braces must be discarded.
2008-11-26 13:18:22 +00:00
Peter Eisentraut
a53536d031
Add %expect 0 to all parser input files to prevent conflicts slipping by.
2008-11-26 08:45:12 +00:00
Tom Lane
30f272a79b
Add missing dependencies to preproc.y build rule
2008-11-15 22:20:55 +00:00
Andrew Dunstan
f30a1d0474
Add missing semicolon, per grip from Alex Hunsaker.
2008-11-15 22:18:05 +00:00
Tom Lane
fbaa172d65
ecpg's preproc.y is now generated as needed, so remove from CVS.
2008-11-14 17:43:14 +00:00
Tom Lane
1a0bbc296c
Improve comment about when to clean generated files.
2008-11-14 17:18:20 +00:00
Michael Meskes
b78f9b496d
Enable script to generate preproc.y in build process.
2008-11-14 17:11:40 +00:00
Michael Meskes
a76e98f021
Fixed test for output_filename == stdout.
2008-11-14 16:25:34 +00:00
Michael Meskes
e339ed5f50
Added files containing changes between gram.y and preproc.y.
2008-11-14 10:03:33 +00:00
Michael Meskes
4607c5ca56
Adding script that generates preproc.y from gram.y to CVS.
2008-11-14 10:01:04 +00:00