Michael Meskes
a5238ced67
Fixed some memory leaks in ECPG.
...
Patch by Michael Paquier
Conflicts:
src/interfaces/ecpg/preproc/variable.c
src/interfaces/ecpg/preproc/pgc.l
11 years ago
Michael Meskes
381c3b8f4c
When processing nested structure pointer variables ecpg always expected an
...
array datatype which of course is wrong.
Applied patch by Muhammad Usama <m.usama@gmail.com> to fix this.
13 years ago
Michael Meskes
1066dbfb85
There is no need to have to identical functions in ecpg thus removing one of them.
15 years ago
Magnus Hagander
9f2e211386
Remove cvs keywords from all files.
15 years ago
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.
16 years ago
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.
16 years ago
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.
16 years ago
Bruce Momjian
65e806cba1
pgindent run for 9.0
16 years ago
Michael Meskes
aa6ac35221
Applied patch by Boszormenyi Zoltan <zb@cybertec.at> to add out-of-scope cursor support to native mode.
16 years ago
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.
16 years ago
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>.
17 years ago
Bruce Momjian
d747140279
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
...
provided by Andrew.
17 years ago
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.
17 years ago
Peter Eisentraut
39ab3c1c61
Message format tuning
17 years ago
Peter Eisentraut
3b35a904aa
Message style review
17 years ago
Peter Eisentraut
e1bdd07c3c
Add localization support to ecpg.
...
Author: Euler Taveira de Oliveira <euler@timbira.com>
18 years ago
Michael Meskes
fa0dc92fd8
- Fixed segfault in ecpg when using an array element.
...
- Free all memory in auto-prepare mode.
18 years ago
Michael Meskes
51a5921dcc
Fixed a few minor glitches pointed out by splint.
18 years ago
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
19 years ago
Michael Meskes
0bee536ad8
Replaced $Header$ by $§PosgreSQL$
20 years ago
Michael Meskes
cdf131abac
Added missing $Header$ entries.
20 years ago
Bruce Momjian
1dc3498251
Standard pgindent run for 8.1.
20 years ago
Michael Meskes
ec7806db2c
Fixed bug in parsing of typedef'ed array sizes.
...
Synced parser.
21 years ago
Bruce Momjian
b6b71b85bc
Pgindent run for 8.0.
22 years ago
Michael Meskes
8715789928
Made sure SET DESCRIPTOR accepts all data types including constants.
22 years ago
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.
22 years ago
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.
22 years ago
Michael Meskes
2b55612645
- Added additional test case.
...
- Fixed bug that reversed string length in typedefs.
- Added portability file to pgtypeslib.
22 years ago
Michael Meskes
77528c9bd7
Fixed memory misusage in variable handling.
22 years ago
Michael Meskes
f3c6d592d2
- Fixed segfault due to missing check for variable declaration.
...
- Added check for multidimensional array usage.
22 years ago
Michael Meskes
6d9a81b66f
Removed some debugging output.
22 years ago
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.
22 years ago
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.
22 years ago
Michael Meskes
22c0b1f0f4
- Fixed order mismatch in processing "using" arguments.
...
- Fixed some minor things in test cases.
- Use defines for Informix error codes.
23 years ago
Bruce Momjian
089003fb46
pgindent run.
23 years ago
Michael Meskes
91d60637cf
"char *" of course is not the same as "char []". So I had to fix the way ecpg treated the second one.
23 years ago
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).
23 years ago
Bruce Momjian
111d8e522b
Back out array mega-patch.
...
Joe Conway
23 years ago
Bruce Momjian
46bf651480
Array mega-patch.
...
Joe Conway
23 years ago
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.
23 years ago
Michael Meskes
196d0dd10b
Changed variable parsing so struct[n].attr works.
23 years ago
Michael Meskes
bbe9902223
Parse forward definiton of structs.
23 years ago
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.
23 years ago
Michael Meskes
4e1ed3da9b
- Added more compatibility functions.
...
- Accept CPP defines for type definitions.
- Do not parse system include files automatically for Informix mode
23 years ago
Bruce Momjian
e50f52a074
pgindent run.
24 years ago
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
24 years ago
Michael Meskes
7138a1e5fc
- Fixed variable handling for struct members.
...
- Removed check for array input. An attribut might store the
complete array.
24 years ago
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.
24 years ago
Michael Meskes
0a7a8256b8
committed the missing files
24 years ago
Bruce Momjian
16cb347eee
// -> /* */, per Tatsuo.
24 years ago