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
Bruce Momjian
239d769e7e
pgindent run for 9.0, second run
2010-07-06 19:19:02 +00:00
Peter Eisentraut
a404a12fb4
Message quoting style tuning
2010-04-03 07:53:29 +00:00
Michael Meskes
001b1ad6a3
FATAL errors are meant to stop ecpg immediately, e.g. because the syntax is
...
corrupted. This error, however, does is not a compilation problem but a runtime
one, so we can keep compiling but still have to declare ERROR.
2010-04-02 10:27:45 +00: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
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
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
Michael Meskes
2720c57005
Removed some variables no longer needed.
2009-09-03 09:59:20 +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
3b35a904aa
Message style review
2009-01-23 12:43:32 +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
e1bdd07c3c
Add localization support to ecpg.
...
Author: Euler Taveira de Oliveira <euler@timbira.com>
2008-05-16 15:20:04 +00:00
Michael Meskes
fb7b1df083
Fixed bug that caused arrays of varchar to be output with incomplete name.
...
In the process expanded one test case,
2008-03-02 10:54:11 +00:00
Michael Meskes
51a5921dcc
Fixed a few minor glitches pointed out by splint.
2007-12-21 14:33:20 +00:00
Bruce Momjian
fdf5a5efb7
pgindent run for 8.3.
2007-11-15 21:14:46 +00:00
Michael Meskes
7793c6ecca
Cleaned up ecpglib and renamed functions that do not need to be exported.
...
Created export list for ecpglib.
2007-10-03 11:11:12 +00:00
Michael Meskes
fefe7034e2
More cleaning up and removed some duplicates.
2007-08-22 08:20:58 +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
d3e131e062
- Changed some whitespacing in connect statement.
...
- Made some chars const as proposed by Stefan Huehner <stefan@huehner.org>.
- Synced parser and keyword lists.
- Copied two token parsing from backend parser to ecpg parser.
- Also added a test case for this.
2007-03-17 19:25:24 +00:00
Michael Meskes
ab6aa40b64
Applied patch for VPATH builds by Alvaro Herrera <alvherre@commandprompt.com>
...
Merged dyntest.pgc and dyntest2.pgc.
Hopefully fixed the last Coverity reports (finally)
2006-08-13 10:18:31 +00:00
Michael Meskes
e6e61afe16
Fixed some memory bugs that somehow reappeared.
...
Also fixed a new Coverity report.
2006-08-09 09:08:32 +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
Neil Conway
0e72b9d440
Cosmetic improvements/code cleanup:
...
- replace some function signatures of the form "some_type foo()" with
"some_type foo(void)"
- replace a few instances of a literal 0 being used as a NULL pointer;
there are more instances of this in the code, but I just fixed a few
- in src/backend/utils/mb/wstrncmp.c, replace K&R style function
declarations with ANSI style, remove use of 'register' keyword
- remove an "extern" modifier that was applied to a function definition
(rather than a declaration)
2004-10-10 23:37:45 +00:00
Bruce Momjian
b6b71b85bc
Pgindent run for 8.0.
2004-08-29 05:07:03 +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
047a2cecff
Fixed possible segfault in type.c (by Juergen Cappel)
2004-03-29 15:11:58 +00:00
Michael Meskes
b4c8dcb294
Fixed incorrect output of indicator structs using the name of the data struct.
2004-02-23 18:14:18 +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
fcdf0e22fc
- Added Dave patch for Informix handling of numeric/int conversion.
...
- Changed all new datatypes to lowercase.
- Fixed rounding bug in numerical types.
2003-09-09 10:46:42 +00:00
Bruce Momjian
089003fb46
pgindent run.
2003-08-04 00:43:34 +00:00
Michael Meskes
f207718b0c
More informix fixes.
2003-07-08 12:11:35 +00:00
Michael Meskes
2bdd2e5dcf
Use ISO dates in pgtypeslib by default.
...
Applied patch by Philip Yarra to fix some thread issues.
Added a new data type "decimal" which is mostly the same as our
"numeric" but uses a fixed length array to store the digits. This is
for compatibility with Informix and maybe others.
2003-07-01 12:40:52 +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
abd310a3b1
Allow constants in using clauses.
2003-06-20 12:00:59 +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
d258fb91cf
ecpg now accepts array elements as arguments.
2003-05-23 15:19:36 +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
7e684fad02
Fixed incorrect include and another typo. Sorry, the include did not create a warning/error/problem on my machine, so I didn't notice it.
2003-05-16 09:42:56 +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