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
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
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
94b59faeb7
Synced with backend.
2003-06-20 15:16:06 +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
Michael Meskes
8a2aa79fee
Fixed several more parsing bugs.
2003-06-17 07:28:22 +00:00
Michael Meskes
76924b5d94
Fixed two small bugs.
2003-06-16 16:58:11 +00:00
Bruce Momjian
4f70680177
Make ecpg thread safe.
...
Lee Kindness
2003-06-15 04:07:58 +00:00
Michael Meskes
26188e8c17
- Enable FETCH without INTO.
...
- Compatibility functions for INFORMIX handling of DECLARE statement.
2003-06-13 10:50:58 +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
65058fcf2b
Fixed some bugs.
2003-06-10 17:46:43 +00:00
Michael Meskes
45eebaf822
Fixed segfault in forward definition parsing.
2003-06-02 15:38:02 +00:00
Michael Meskes
776d530924
Create a real prototype function for describe.
2003-05-30 13:22:02 +00:00
Michael Meskes
a0fed291dc
Sync and some minor cleanup/fixing work plus an EXEC SQL DESCRIBE prototype.
2003-05-30 08:39:01 +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
e185583a37
Allow input from stdin and output to stdout.
2003-05-27 14:36:00 +00:00
Michael Meskes
677844560f
Fixed incorrect output for some structs.
2003-05-27 11:31:52 +00:00
Michael Meskes
d258fb91cf
ecpg now accepts array elements as arguments.
2003-05-23 15:19:36 +00:00
Michael Meskes
dbd55d3a5b
Fixed segfault when detecting undefined cursor.
2003-05-22 17:09:00 +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
dc554458ad
Reversed my incorrect fix.
2003-05-20 11:05:27 +00:00
Michael Meskes
08d7e1c20e
Fixed exec sql ifdef command.
2003-05-19 07:19:57 +00:00
Michael Meskes
3d41da50f7
Made variable type double work again.
2003-05-16 11:30:09 +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
Bruce Momjian
c42581eba3
Allow interfaces to compile under MingGW/Win32 by adding _P to symbols
...
in ecpg.
2003-05-16 04:59:24 +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
Michael Meskes
72f311b86a
Fixed order of include file search path.
2003-05-13 11:29:14 +00:00
Michael Meskes
f7d836212a
Fixed double definition of ecpg_compat_mode.
2003-05-02 14:43:25 +00:00
Michael Meskes
9e9d8d54e3
Added an option to force ecpg to also parse files includes via '#include' and some more Informix stuff.
2003-05-01 17:16:57 +00:00
Michael Meskes
a50f285d8d
Added some more informix compatibility functions.
2003-04-08 12:34:25 +00:00
Bruce Momjian
d46e643822
Add Win32 path handling for / vs. \ and drive letters.
2003-04-04 20:42:13 +00:00
Michael Meskes
89508a8492
More changes to pgtypeslib and set optimization to -O1.
2003-03-27 14:29:17 +00:00
Michael Meskes
524e9d62a7
Changes to the parser to accept new datatypes.
2003-03-21 14:17:47 +00:00
Michael Meskes
2e6f97560a
Started adding date and timestamp.
2003-03-20 15:56:50 +00:00
Michael Meskes
6fad73ed45
Some bugfixes for numerical library.
2003-03-18 10:46:39 +00:00
Michael Meskes
a4f25b6a9c
Started working on a seperate pgtypes library. First test work. PLEASE test compilation on iother systems.
2003-03-16 10:42:54 +00:00