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
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
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
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
3d41da50f7
Made variable type double work again.
2003-05-16 11:30:09 +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
f7d836212a
Fixed double definition of ecpg_compat_mode.
2003-05-02 14:43:25 +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
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
Michael Meskes
aedd189a5c
Allow SET CONNECTION to be followed by connection object without leading "TO" or "=".
...
Allow whenever statement to list function without parameters.
2003-02-25 15:58:03 +00:00
Michael Meskes
d5740d7e26
Added DATABASE command as alias to CONNECT TO.
2003-02-19 12:36:39 +00:00
Michael Meskes
244d2d67a0
Added Informix "database" command.
2003-02-17 14:06:40 +00:00
Michael Meskes
3a335375a9
- Synced parser and keyword file.
...
- More work on Informix compatibility.
2003-02-14 13:17:13 +00:00
Michael Meskes
53c15ceda0
Just intermediate results for backup reasons.
2003-02-13 20:37:28 +00:00
Michael Meskes
f8d8266ac5
Synced parser.
2003-01-21 20:01:12 +00:00
Bruce Momjian
88d639e6e8
Protect from null param on ecpg disconnect, verified by Roland Karch
2002-12-13 20:29:07 +00:00
Bruce Momjian
5587f077ab
While porting my TPC-C implementation from Oracle, I discovered the
...
attached problem with the EXEC SQL COMMIT RELEASE statement.
Roland Karch
2002-12-12 21:50:01 +00:00
Michael Meskes
b4e334b6e6
Synced parser with backend
2002-11-27 08:30:27 +00:00
Michael Meskes
4bc3598aa4
Synced parser.
2002-11-15 15:47:44 +00:00
Michael Meskes
11c4f2d97d
Synced parser one more time.
2002-11-07 09:48:09 +00:00
Tom Lane
cab9437a43
Arrange to compile flex output files as inclusions into other files
...
(usually bison output files), not as standalone files. This hack
works around flex's insistence on including <stdio.h> before we are
able to include postgres.h; postgres.h will already be read before
the compiler starts to read the flex output file. Needed for largefile
support on some platforms.
2002-11-01 22:52:34 +00:00