Michael Meskes
d00f6b249a
- Check for NULL before checking whether argument is an array.
...
- Removed stray character from string quoting.
- Fixed check to report missing varchar pointer implementation.
2005-08-24 10:35:54 +00:00
Michael Meskes
143d152b1f
List VALUE as a keyword.
2004-11-10 13:49:17 +00:00
Dave Cramer
5a57beccc3
fixed bug in REVOKE statement cat_str only has 8 arguments
2004-11-01 13:35:54 +00:00
Michael Meskes
a3c695d0c2
- 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.
2004-06-27 12:32:47 +00:00
Michael Meskes
f9589d4acb
Added patch by ISHIDA Akio to allow indicators in execute statements.
2004-06-17 11:52:59 +00:00
Bruce Momjian
257a8feb60
ECPG preprocessor for PostgreSQL 7.4.1, 7.4.2 doubles const,
...
volatile, static, and register keywords before variables,
declared as VARCHAR.
Sergey N. Yatskevich
2004-06-11 17:32:55 +00:00
Michael Meskes
962c362495
Fixed DEALLOCATE PREPARE to use correct function call
2004-05-21 13:50:59 +00:00
Michael Meskes
006987781d
Just another bug in adjust_informix.
2004-05-10 13:46:39 +00:00
Michael Meskes
86ac85b6ae
- Fixed bug that reversed string length in typedefs.
2004-05-07 13:43:29 +00:00
Michael Meskes
d57af54ffa
Fixed bug in adjust_informix that treated arrays as simple variables.
2004-05-05 15:06:21 +00:00
Michael Meskes
ea41a8cc5f
- Fixed segfault due to missing check for variable declaration.
...
- Added check for multidimensional array usage.
2004-03-04 07:38:50 +00:00
Michael Meskes
f7a9dbce8d
Added the missing rules for VOLATILE.
2004-03-02 06:52:18 +00:00
Michael Meskes
fe92ed8b78
- Allowed some C keywords to be used as SQL column names. This used to work in 7.3.*
2004-02-15 15:40:54 +00:00
Michael Meskes
67893da1c1
- Added missing braces to array parsing.
...
- Set ecpg version to 3.1.1.
- Removed that old debugging output that I forgot the last time.
2004-02-15 13:50:02 +00:00
Michael Meskes
6932861e86
Added WHENEVER NOT_FOUND to SELECT/INSERT/UPDATE/DELETE.
2004-01-21 14:11:03 +00:00
Michael Meskes
630f23962b
Fixed bug in GRANT OPTION FOR parsing.
2004-01-04 14:50:13 +00:00
Michael Meskes
a8c003ea9d
Fixed segfault in parsing of EXEC SQL SELECT * FROM foo() AS TBL( c int, i int);
2003-12-24 22:05:06 +00:00
Michael Meskes
96cee3f12a
Applied all bug fixes from head also to 7.4. Just bugfixes, no new features.
2003-12-17 15:31:51 +00:00
Michael Meskes
a62f62d78b
Fixed typo in create schema parsing.
2003-11-19 13:19:40 +00:00
Michael Meskes
d3268ee2ef
Fix parsing of create index call
2003-11-08 19:14:20 +00:00
Tom Lane
0634c01e3a
Add missing semicolon, per Johann Uhrmann.
...
Avoids warnings from newer bisons.
2003-10-22 16:43:42 +00:00
Michael Meskes
aeb1f6478e
- Fixed constant listing in execute using clause.
...
- Fixed typo in ecpg for Informix dec_t type.
- Fixed precision handling in Informix compat funxtions.
2003-10-06 06:44:55 +00:00
Michael Meskes
e11136e4a5
Fixed segfault after error in parsing precision argument.
2003-09-26 15:16:29 +00:00
Bruce Momjian
266664fcd2
Fix creation of temporary sequences in ecpg, per report from Edmund Bacon.
2003-09-24 19:05:32 +00:00
Michael Meskes
5a5f0a6168
- Changed struct definition handling so "struct foo {}" always gets defined.
2003-09-23 12:56:35 +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
Michael Meskes
580e08a98b
One small typo in preprocessor.
2003-09-19 14:13:16 +00:00
Michael Meskes
df974272ec
Removed superfluous return statement in get_data.
2003-09-19 14:06:21 +00:00
Michael Meskes
723a9bde33
- Accept output variables for FETCH in DECLARE statement.
...
- Synced parser.
- Allowed C variables to carry the name of prepared statements.
- Added Informix handling of datatype converion errors.
2003-09-18 13:12:23 +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
Michael Meskes
47a4e2ed1c
Fixed connect statement with username in variable.
2003-08-26 16:09:02 +00:00
Michael Meskes
4b02f3c4eb
Synced parser and fixed a bug in error output to log file.
2003-08-25 13:44:00 +00:00
Tom Lane
a6672880e1
Fix compiler-detected problem for Alphas: it seems strlen returns
...
something wider than int on that platform. Also, remove bogus
assumption that sizeof("INT_MAX") has something to do with the maximum
number of digits in an int.
2003-08-06 15:54:06 +00:00
Michael Meskes
0584370728
Added missing TO keyword.
2003-08-01 11:25:55 +00:00
Michael Meskes
45d8f61ff2
Added more compat stuff ot the parser.
2003-07-18 14:32:56 +00:00
Michael Meskes
6eb27d16b6
Missed one rule in syncinc preproc.y which resulted in reduce/reduce conflicts.
2003-07-14 12:18:25 +00:00
Michael Meskes
e895eb197d
- Synced preproc.y with gram.y
...
- Init sqlca in ECPGprepare().
- Added CLOSE DATABASE for Informix compatibility.
2003-07-14 10:16:45 +00:00
Michael Meskes
18936ef372
Argh! Missed one file.
2003-07-09 14:53:18 +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
Michael Meskes
cf883ea95c
- Made sure Informix style decimal vars are initialized. They use a
...
fixed amount of digits and not an allocated one. So we have to work
around. PostgreSQL numeric type remains the same.
- In INFORMIX_SE mode with autcommit set, make all cursors be "with
hold". Is this really they way SE behaves?
2003-06-29 16:52:58 +00:00
Michael Meskes
9aeb1eff24
Just another sync.
2003-06-29 09:25:19 +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
Michael Meskes
4505653e54
Added just another compatibility level for Informix.
2003-06-26 11:37:05 +00:00
Bruce Momjian
111d8e522b
Back out array mega-patch.
...
Joe Conway
2003-06-25 21:30:34 +00:00
Michael Meskes
fd3ca524eb
Implemented Informix special way to treat NULLs, removed warnings, synced.
2003-06-25 10:44:21 +00:00
Bruce Momjian
46bf651480
Array mega-patch.
...
Joe Conway
2003-06-24 23:14:49 +00:00
Michael Meskes
2cbaaee6c3
Just another Informix compatibility change. They uses "free" for cursors as wellafter closing them.
2003-06-20 13:36:34 +00:00
Michael Meskes
abd310a3b1
Allow constants in using clauses.
2003-06-20 12:00:59 +00:00
Michael Meskes
8902aaaa6c
Fixed fetch into char * and added missing prototype for an Informix function.
2003-06-19 09:52:11 +00:00