Michael Meskes
1066dbfb85
There is no need to have to identical functions in ecpg thus removing one of them.
2011-01-09 12:47:43 +01:00
Magnus Hagander
9f2e211386
Remove cvs keywords from all files.
2010-09-20 22:08:53 +02:00
Michael Meskes
1fbb06d204
Zoltan beautified his hidden-variable-patch for ecpg. This also makes sure we get an error message instead of a warning if the variable have different types.
2010-04-01 10:30:53 +00:00
Michael Meskes
b2bddc2ff2
Applied Zoltan's patch to make ecpg spit out warnings if a local variable hides a global one with the same name.
2010-04-01 08:41:01 +00:00
Michael Meskes
600be01e89
ecpg now adds a unique counter to its varchar struct definitions to make these definitions unique, too. It used to use the linenumber but in the rare case of two definitions in one line this was not unique.
2010-03-09 11:09:46 +00:00
Bruce Momjian
65e806cba1
pgindent run for 9.0
2010-02-26 02:01:40 +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
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
5d34af421d
Added STRING datatype for Informix compatibility mode. This work is
...
based on a patch send in by Böszörményi Zoltán <zb@cybertec.at>.
2009-08-07 10:51:21 +00:00
Bruce Momjian
d747140279
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
...
provided by Andrew.
2009-06-11 14:49:15 +00:00
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
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
e1bdd07c3c
Add localization support to ecpg.
...
Author: Euler Taveira de Oliveira <euler@timbira.com>
2008-05-16 15:20:04 +00:00
Michael Meskes
fa0dc92fd8
- Fixed segfault in ecpg when using an array element.
...
- Free all memory in auto-prepare mode.
2008-02-07 11:09:13 +00:00
Michael Meskes
51a5921dcc
Fixed a few minor glitches pointed out by splint.
2007-12-21 14:33:20 +00:00
Michael Meskes
635a0b9a86
- Finished major rewrite to use new protocol version
...
- 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-08-14 10:01:54 +00:00
Michael Meskes
0bee536ad8
Replaced $Header$ by $§PosgreSQL$
2006-07-30 16:28:58 +00:00
Michael Meskes
cdf131abac
Added missing $Header$ entries.
2006-07-30 10:24:10 +00:00
Bruce Momjian
1dc3498251
Standard pgindent run for 8.1.
2005-10-15 02:49:52 +00:00
Michael Meskes
ec7806db2c
Fixed bug in parsing of typedef'ed array sizes.
...
Synced parser.
2004-12-06 20:35:35 +00:00
Bruce Momjian
b6b71b85bc
Pgindent run for 8.0.
2004-08-29 05:07:03 +00:00
Michael Meskes
8715789928
Made sure SET DESCRIPTOR accepts all data types including constants.
2004-07-04 15:02:24 +00:00
Michael Meskes
90326c01c9
Added SET DESCRIPTOR command.
...
Note that this still has some bugs. The functionality is there though, it's just a matter of fixing the bugs now.
Cleaned up error handling in preprocessor.
2004-06-30 15:01:58 +00:00
Michael Meskes
03ad5da8f8
- Only use typedefs inside their scope.
...
- Variables that are out of scope, were not removed all the time.
- Make a varchar NULL set everything to 0 when not using indicators.
- Synced parser.
2004-06-27 12:28:42 +00:00
Michael Meskes
2b55612645
- Added additional test case.
...
- Fixed bug that reversed string length in typedefs.
- Added portability file to pgtypeslib.
2004-05-07 13:42:49 +00:00
Michael Meskes
77528c9bd7
Fixed memory misusage in variable handling.
2004-04-23 06:17:14 +00:00
Michael Meskes
f3c6d592d2
- Fixed segfault due to missing check for variable declaration.
...
- Added check for multidimensional array usage.
2004-03-04 07:32:02 +00:00
Michael Meskes
6d9a81b66f
Removed some debugging output.
2004-01-28 09:54:23 +00:00
Michael Meskes
6ccfc4f430
- Issue a warning if a cursor is declared but not opened.
...
- Fixed prototype for ECPGprepared_statement to not moan about "const char"
- Fixed parsing of nested structures.
- Added option to parse header files.
2004-01-28 09:52:14 +00:00
Michael Meskes
95eea2d89c
- Added just another patch by Dave that fixes a reversed order in
...
variable listing for output variables in cursor definitions
- Fixed incorrect if call in long=>numeric conversion.
2003-12-17 15:23:45 +00:00
Michael Meskes
22c0b1f0f4
- Fixed order mismatch in processing "using" arguments.
...
- Fixed some minor things in test cases.
- Use defines for Informix error codes.
2003-09-22 13:19:39 +00:00
Bruce Momjian
089003fb46
pgindent run.
2003-08-04 00:43:34 +00:00
Michael Meskes
91d60637cf
"char *" of course is not the same as "char []". So I had to fix the way ecpg treated the second one.
2003-07-07 12:15:33 +00:00
Tom Lane
b3c0551eda
Create real array comparison functions (that use the element datatype's
...
comparison functions), replacing the highly bogus bitwise array_eq. Create
a btree index opclass for ANYARRAY --- it is now possible to create indexes
on array columns.
Arrange to cache the results of catalog lookups across multiple array
operations, instead of repeating the lookups on every call.
Add string_to_array and array_to_string functions.
Remove singleton_array, array_accum, array_assign, and array_subscript
functions, since these were for proof-of-concept and not intended to become
supported functions.
Minor adjustments to behavior in some corner cases with empty or
zero-dimensional arrays.
Joe Conway (with some editorializing by Tom Lane).
2003-06-27 00:33:26 +00:00
Bruce Momjian
111d8e522b
Back out array mega-patch.
...
Joe Conway
2003-06-25 21:30:34 +00:00
Bruce Momjian
46bf651480
Array mega-patch.
...
Joe Conway
2003-06-24 23:14:49 +00:00
Michael Meskes
1ca0b6d047
Make sure a variable is no longer referenced when it is removed.
...
Fixed counting bug in parsing "->" operator.
Removed that silly debugging function I accidently committed last night.
2003-06-11 06:39:13 +00:00
Michael Meskes
196d0dd10b
Changed variable parsing so struct[n].attr works.
2003-05-29 13:59:26 +00:00
Michael Meskes
bbe9902223
Parse forward definiton of structs.
2003-05-29 12:00:22 +00:00
Michael Meskes
d03a067ba0
ecpg now recognizes named structs/unions. So you don't have to list the whole definition everytime you declare a variable anymore.
2003-05-22 07:58:45 +00:00
Michael Meskes
4e1ed3da9b
- Added more compatibility functions.
...
- Accept CPP defines for type definitions.
- Do not parse system include files automatically for Informix mode
2003-05-14 14:37:36 +00:00
Bruce Momjian
e50f52a074
pgindent run.
2002-09-04 20:31:48 +00:00
Bruce Momjian
a12b4e279b
I checked all the previous string handling errors and most of them were
...
already fixed by You. However there were a few left and attached patch
should fix the rest of them.
I used StringInfo only in 2 places and both of them are inside debug
ifdefs. Only performance penalty will come from using strlen() like all
the other code does.
I also modified some of the already patched parts by changing
snprintf(buf, 2 * BUFSIZE, ... style lines to
snprintf(buf, sizeof(buf), ... where buf is an array.
Jukka Holappa
2002-09-02 06:11:43 +00:00
Michael Meskes
7138a1e5fc
- Fixed variable handling for struct members.
...
- Removed check for array input. An attribut might store the
complete array.
2002-01-13 08:52:09 +00:00
Michael Meskes
988fdce5d1
- Removed space_or_nl and line_end from pgc.l.
...
- Fixed several bugs concerning arrays of structs including a memory
allocation bug.
2001-12-23 12:17:41 +00:00
Michael Meskes
0a7a8256b8
committed the missing files
2001-12-10 14:55:47 +00:00
Bruce Momjian
16cb347eee
// -> /* */, per Tatsuo.
2001-11-21 05:03:16 +00:00
Michael Meskes
7845954e49
Committed again to add the missing files/patches.
2001-11-16 08:36:37 +00:00
Michael Meskes
90c1e2cc43
Fixed bug in handling of pointers to structs.
2001-03-16 13:05:57 +00:00