arnobrinkman
217773ac42
1) Field with alias was also seraching for match in higher context then the first matching context found. Noted by Nickolay
...
Example (this does fail now with column o.ID unknown):
SELECT * FROM Orders o
WHERE
EXISTS(SELECT * FROM RDB$DATABASE o WHERE o.ID = 1)
2) Improved derived table support.
When using derived tables inside sub-selects it should be able to reference to higher contexts.
2004-03-21 01:48:29 +00:00
alexpeshkoff
7007d6f2a4
1. introduced Jrd and Ods namespaces
...
2. cleanup of blk* request conversions
3. fixed memory allocation in Execute Statement
2004-03-20 14:57:40 +00:00
robocop
958f9e31aa
Cleanup
...
A few new[] - delete[] pairs fixed.
2004-03-19 06:14:53 +00:00
robocop
f58c769c37
Cleanup. In geeky words:
...
PandoraBox* pbox = reinterpret_cast<PandoraBox*>(&can_of_worms);
pbox->open();
pbox->flush();
Nickolay may want to undo my ods.h changes if gcc insists
in its crusade against non-PODs and poodles.
2004-03-18 05:56:06 +00:00
skidder
e1b6cec486
Allow using PSQL cursors in EXECUTE BLOCK statement
2004-03-15 02:57:07 +00:00
alexpeshkoff
67f1740fea
Various cleanup to make engine compile and work after mentioned earlier changes.
...
Mainly:
1) MemoryPool* => MemoryPool& in arrays' constructors
2) use Firebird::string to keep strings data
2004-03-14 13:40:14 +00:00
skidder
c64f31b712
Fix some warnings from GCC/Linux build. Some of them were subtle errors
2004-03-12 07:00:52 +00:00
robocop
2ab1f94dd2
Cleanup
...
Some minor corrections
Second step to rename
2004-03-11 05:04:26 +00:00
skidder
b6e5ccd413
Clean up.
...
1. gds__alloc doesn't throw
2. Add NOMEM handlers to a couple places
3. kill HAVE_*SNPRINTF conditionals
2004-03-09 00:17:07 +00:00
robocop
e6187cecd2
Cleanup
...
Some bug fixes
Style
2004-03-07 07:58:55 +00:00
skidder
d92c8805f8
correction
2004-03-05 07:33:22 +00:00
skidder
b3af720a73
Fix memory corruption
2004-03-05 07:23:21 +00:00
skidder
dc7aab8f9c
Fix up exception handling. Handle (do not ignore) std::bad_alloc and generic exceptions, provide syscall and error information in system_call_failed
2004-03-01 03:35:23 +00:00
aafemt
fe89c2c502
Fix warning
2004-02-13 11:15:49 +00:00
robocop
663e3b16e7
Cleanup
2004-02-02 11:02:12 +00:00
dimitr
5deb857913
Removed obsolete EXECUTE VARCHAR syntax.
2004-01-31 13:35:37 +00:00
robocop
2b295a9108
General cleanup. Sorry if I missed some occurrence.
2004-01-28 07:50:41 +00:00
stryqx
56cff38d96
Regenerate after changing PAGE_SIZE to KW_PAGE_SIZE.
2004-01-27 07:09:21 +00:00
stryqx
501ba459c9
Change PAGE_SIZE to KW_PAGE_SIZE so as not to conflict with system define
...
on FreeBSD.
2004-01-26 07:06:37 +00:00
skidder
dc9d71a768
Use static bison parser stack and allocate it from thread stack
2004-01-23 06:35:26 +00:00
skidder
08eee5ebaa
Further AMD64 fixes. Given this fixes you may start playing with databases using isql_static.
2004-01-21 07:18:30 +00:00
hvlad
b02fbb32a8
Added support for default parameters and EXECUTE BLOCK statement
2004-01-16 13:05:14 +00:00
hvlad
d09206678b
Added support for default parameters and EXECUTE BLOCK statement
2004-01-16 10:43:21 +00:00
robocop
b441cd9aef
Cleanup
2004-01-13 09:52:19 +00:00
arnobrinkman
1cbc04f4cb
Fix check constraint bug caused by my previously commit
2004-01-10 18:04:40 +00:00
arnobrinkman
0fb9764dcc
Change ambiguity check for proper handling of sub-queries and non-aliassed (derived)tables.
...
This doesn't work anymore :
"select table.field from table t"
But now this does work correctly :
"select * from table t join table on (table.ID = t.ID)"
2004-01-09 02:23:46 +00:00
robocop
06a4df3708
A requiem for JOURNAL and WAL.
...
Instructions in the list.
2004-01-06 10:33:18 +00:00
dimitr
518923a0e6
Fixed old FB2 bug.
2004-01-04 14:12:40 +00:00
robocop
16cbc204df
Cleanup
2003-12-31 05:36:12 +00:00
robocop
ad0b5c4de3
General cleanup
2003-12-22 10:00:59 +00:00
skidder
1b43575fa9
Rollback crazy change made by Dimitry Sibiryakov and approved by Claudio Valderrama. We should not break compatibility with half of the world without apparent reasons.
2003-12-21 23:54:24 +00:00
skidder
56c979e1e9
Update parse.cpp
2003-12-21 01:35:05 +00:00
skidder
92576263ee
Fix minor flaw in explicit nulls placement design. This change doesn't cause any
...
user-visible changes in engine behavior. Fix is critical for future development
in this area and needs to be backported in B1_5_Release.
2003-12-21 00:07:03 +00:00
dimitr
995417f11a
Minor cleanup
2003-12-14 18:26:25 +00:00
arnobrinkman
b573aeedd0
bugfix: Post a error when no input string is given else engine will crash.
2003-12-11 00:00:51 +00:00
dimitr
1c1d834871
Fixed problem with parameters used as UDF arguments with type of CSTRING.
2003-12-06 18:13:57 +00:00
robocop
84062732d8
More cleanup
2003-12-03 08:19:24 +00:00
eku
0bdee4e5ee
Fixed syntax error.
2003-12-02 08:35:05 +00:00
brodsom
7844cc7cd4
Fix scope change that breaks posix build
2003-12-02 02:47:34 +00:00
robocop
9fafc348bf
const correctness
...
vars in scope
minimal interface cleanup
small bug fixes
2003-11-28 06:48:34 +00:00
arnobrinkman
e944221d79
bugfix: SF841696 calculated output descriptor for COALESCE/CASE should give charsets other then NONE/ASCII precedence
2003-11-22 22:43:24 +00:00
robocop
a94dbd85fd
const correctness and other minor items
2003-11-18 07:58:35 +00:00
brodsom
04f3b01b9d
-Remove unneeded win32 headers
2003-11-17 23:39:38 +00:00
brodsom
6e8e00c191
-Undo gds__vax_integer to isc_vax_integer and gds__event_* to isc_event_* changes
2003-11-16 01:44:51 +00:00
eku
71fab4de17
Yacc doesn't like C++ comments in the language section.
2003-11-11 14:47:08 +00:00
brodsom
c5253ae8a5
-Replace gds__ constants with isc_ contants
...
-Replace codes.h with iberror.h (or remove)
-Move gds__vax_integer and gds__event_block* to alt.cpp and isc_ to gds.cpp
-Use ISC_QUAD internally
-Use isc_vax_integer internally
2003-11-11 12:19:20 +00:00
robocop
f55c6f6f8c
const correctness and cleanup
2003-11-10 09:16:38 +00:00
stryqx
7715c0db1b
Undefine PAGE_SIZE to allow successful compile with gcc 3.3.3.
2003-11-10 06:27:45 +00:00
brodsom
7d3057ca84
-Removing gdsold.h and gds.h
...
-Replace gds__ functions with isc__ functions for internal use
2003-11-09 15:38:03 +00:00
brodsom
e9bfb1004f
Removing gdsold.h
2003-11-08 16:20:11 +00:00
brodsom
43683ea52b
Removing gdsold.h
2003-11-07 23:27:24 +00:00
dimitr
270dcf6aa0
Added ROWS clause. FIRST/SKIP remains allowed in unions, although I still think it doesn't have much sense.
2003-11-07 14:10:16 +00:00
brodsom
146b6f2001
Extern function cleaning
2003-11-07 13:25:53 +00:00
brodsom
79e5ff02dd
Extern "C" cleaning
2003-11-06 17:57:01 +00:00
robocop
35396625f5
const correctness
...
function signatures
variables in local scope
BOOLEAN -> bool
TEXT[32] as SqlIdentifier for DYN
Stop random garbage in firebird.msg's bytes 8 to 11
some cleanup
2003-11-05 09:02:33 +00:00
brodsom
ff070a16a8
Replacing assert with fb_assert
2003-11-03 23:59:24 +00:00
skidder
7b99b8a57b
Basic INTL cleanup.
...
- Rework (mostly undo) John's changes
- Some function type safety
- Make INTL OO layer very thin (this should slightly improve performance)
2003-11-03 17:14:45 +00:00
dimitr
08a9f40b52
1. Reworked cursor management
...
2. Added explicit cursor statements
3. Slightly reworked LEAVE code
4. Lots of cleanup
2003-11-02 12:28:30 +00:00
robocop
cda707bd36
const correctness and other related changes
2003-11-01 10:26:43 +00:00
robocop
9ead7a37b4
const correctness
...
placed some variables in context
fixed some function signatures
closed a few possible buffer overruns
sorry to the platform maintainers, I can't verify what I did for non-Win32 builds
2003-10-29 10:53:47 +00:00
brodsom
76c7382b78
Macro cleaning
2003-10-20 22:41:11 +00:00
robocop
2230c2fbbb
Style; comment unused code
2003-10-20 10:12:49 +00:00
brodsom
ca027789ee
Correct recent Claudio's change to allow posix build again.
2003-10-19 23:03:19 +00:00
brodsom
47bc4c93d9
Correct bad debug report (found by Claudio)
2003-10-17 13:01:18 +00:00
robocop
8182b6cba2
const correctness and other tasks
2003-10-16 08:51:06 +00:00
brodsom
938e66eb2f
Macro cleaning
2003-10-14 22:22:32 +00:00
dimitr
adccd3d8ce
Fixed server crash with explicit plans used in subqueries, when outer aggregation is performed.
2003-10-13 12:56:44 +00:00
robocop
f2a738de1b
const correctness, vars in scope, etc.
2003-10-05 06:37:26 +00:00
robocop
e0b551838f
style
2003-10-05 06:33:56 +00:00
robocop
bc93cc3c0b
const correctness, vars in scope, etc.
2003-10-05 06:27:16 +00:00
robocop
c8e2ddfe40
style
2003-10-05 06:23:04 +00:00
brodsom
db312dfa0e
Macro cleaning
...
extern cleaning
DLL_EXPORT cleaning
2003-10-03 02:00:40 +00:00
aafemt
76eac2d80d
Move MSVC-related hack of vsnprintf to MSVC header because it crashed MinGW build
2003-10-02 10:17:40 +00:00
brodsom
c0485b7c67
Macro cleaning
2003-10-01 18:11:23 +00:00
aafemt
b5994fabad
sym -> dsql_sym + some 'struct' cleanup
2003-10-01 10:58:07 +00:00
brodsom
24a616d5d6
Patch to Nickolay changes to make MinGW build again
2003-10-01 03:37:32 +00:00
brodsom
7f07d2a8a8
Patch to make msvc build again after Nickolay changes
2003-09-30 22:59:12 +00:00
skidder
7d3c07f5a1
Remove unused DSQL node types
2003-09-29 19:32:11 +00:00
robocop
c931a674c2
Cleanup.
...
Hopefully harmless
It should fix the issue introduced with constness in gds__interprete for current applications.
2003-09-29 12:43:14 +00:00
skidder
16cb0d2f2d
Fix cosmetic issue noted by Claudio
2003-09-29 10:48:48 +00:00
skidder
235db035ce
Ok, i'm joining Firebird destruction team with my cleanup:
...
1. Bring trace DSQL, DYN and BLR trace logging up-to-date
2. Remove redundant CSB pointer dereferences in BLR parser and request compiler
3. Convert RIGHT JOIN to LEFT JOIN early during BLR parsing
4. Check BLR syntax for unititalized contexts usage
5. Some type-safety and const-correctness fixes
2003-09-28 21:36:05 +00:00
dimitr
2f8c56b330
Fixed types convertion.
2003-09-28 12:05:10 +00:00
dimitr
f1cde7d613
Slightly reworked my labels implementation.
2003-09-28 11:12:03 +00:00
brodsom
4c9f386bd2
Macro cleaning
2003-09-28 00:36:28 +00:00
dimitr
6d6dae9295
Changed license of some files by Mark and myself.
2003-09-26 14:13:15 +00:00
brodsom
0c6527d260
-Macro cleaning
2003-09-26 11:02:12 +00:00
brodsom
bbbe47da2b
-Macro cleaning
2003-09-26 10:50:59 +00:00
robocop
484c6ec372
Cleanup, const correctness, variables in scope, etc.
...
Having done my best to merge everyone else's changes, I hope the tree can be build with whatever other tools != MSVC6.
2003-09-25 11:49:12 +00:00
brodsom
9d5721473a
Removing SHLIB_DEFS
2003-09-22 17:56:35 +00:00
skidder
ad60c5b70b
Make RIGHT JOIN symmetrical to LEFT JOIN at DSQL layer.
...
This fixes a couple issues when engine rejected correct RIGHT JOINs
or accepted incorrect and failed subsequentally during query execution
2003-09-21 17:49:16 +00:00
skidder
79dea9d5a3
- Fix incorrect assignment of DYN constants for NBACKUP
...
- Fix minor inconsistency in drop_generator DYN constant definition
Noted by Dmitry Emanov
2003-09-21 13:33:45 +00:00
brodsom
a2713837d2
Cleaning macros
2003-09-20 23:28:38 +00:00
brodsom
6e9ebc38ce
Cleaning headers
2003-09-16 13:57:39 +00:00
arnobrinkman
71b17588d9
Added ORDER BY support on derived tables. (Suggested by Dmitry Yemanov)
2003-09-15 21:21:40 +00:00
brodsom
30f79b34f8
-Cleaning headers
2003-09-15 16:32:22 +00:00
dimitr
f7aa490111
The final part of my little PLAN enhancement.
2003-09-14 15:37:05 +00:00
brodsom
4a09b27a36
-Fix indents
2003-09-13 12:16:48 +00:00
robocop
f7dc675500
Trivial correction
2003-09-13 10:26:47 +00:00
robocop
2ed1a3e87b
trivial correction
2003-09-12 09:19:21 +00:00
brodsom
b46945d049
BOOLEAN cleaning
2003-09-12 01:41:03 +00:00
dimitr
5ec79f66ef
PLAN enhancements. The DSQL part of this change will follow.
2003-09-10 13:24:49 +00:00
skidder
5761966226
Make Win32 version of engine compile
2003-09-08 21:44:44 +00:00
skidder
29812f3af7
Update parse.cpp
2003-09-08 21:26:56 +00:00
skidder
77b17de987
NBACKUP-related changes and some clean-up
2003-09-08 20:23:46 +00:00
dimitr
6f66ae704c
Fixed logic after Blas' change of the function return.
2003-09-08 11:29:36 +00:00
brodsom
2c738f6a67
-Change function return to SUCCESS=true, FAILURE=false (suggested by Claudio)
2003-09-05 11:28:23 +00:00
arnobrinkman
74380ab714
Don't forget unnamed derived tables
2003-09-04 21:40:21 +00:00
brodsom
a4416db52a
-Replace BOOLEAN, TRUE and FALSE
2003-09-04 21:26:15 +00:00
brodsom
f51c931f6d
Correction
2003-09-04 15:26:53 +00:00
arnobrinkman
2638aa9fd7
Remove generated comment
2003-09-04 15:05:06 +00:00
arnobrinkman
4a37161c8d
Changed internally derived-table support to better readable/understanding code
2003-09-04 15:02:22 +00:00
brodsom
c4179f6e13
Fix cast warning
2003-09-04 13:45:06 +00:00
arnobrinkman
f691e5d79c
Change types that were used as booleans to the real bool type
2003-09-03 23:52:47 +00:00
arnobrinkman
e5574959ad
Change BOOLEAN to bool type
2003-09-01 23:22:22 +00:00
brodsom
8624a7c209
-Use NULL instead 0 for null pointers
...
-Remove unneeded casts
2003-09-01 07:58:04 +00:00
brodsom
a062a7dcfd
Correction
2003-09-01 07:39:54 +00:00
dimitr
eb6acae759
Cleanup variable names.
2003-08-30 16:49:15 +00:00
brodsom
03e528a79b
-Remove GDS_VAL and GDS_REF
2003-08-30 01:54:25 +00:00
aafemt
6fbb6c5ad7
No more isc_array_gen_sdl() in public API
2003-08-29 10:55:07 +00:00
arnobrinkman
cdec93e466
missing line/column-numbers
2003-08-28 20:29:07 +00:00
brodsom
602c201989
-Remove NULL_PTR
...
-Remove unneeded NULL casts
-Remove (void) function return cast
2003-08-28 13:07:29 +00:00
aafemt
66c47aeb65
move debug and error handling stuffs away from dsql.h
2003-08-28 10:58:35 +00:00
arnobrinkman
6027b94811
Change code-style and prepare for more info on error-message
2003-08-27 23:00:43 +00:00
dimitr
323bae2372
1. MAP renamed to DSQL_MAP
...
2. Minor cleanup
3. Fixed BREAK/LEAVE code to support FOR EXECUTE STATEMENT loops
4. Added support for loop labels and LEAVE <label> statement
5. Fixed SUBSTRING to support value expressions as its arguments
2003-08-26 07:13:33 +00:00
arnobrinkman
11b4fcf5b7
1) Make COALESCE/CASE output descriptor more SQL-standard.
...
Exception is that we allow mixing datatypes with (var)char (except blob), because all datatypes are convertable to character-type and because this functionallity was available from 1st day COALESCE is introduced inside Firebird.
2) Fix bug with expressions without fields inside aggregate-functions.
Example :
SELECT
(SELECT Count(1) FROM RDB$DATABASE)
FROM
RDB$RELATIONS
2003-08-25 23:35:30 +00:00
arnobrinkman
79c10074c0
Already fix COALESCE/CASE output-descriptor behaviour inside HEAD branch to conform with SQL-standard.
...
FB1.5_RELEASE will follow when error-message is added
2003-08-24 22:15:23 +00:00
arnobrinkman
9cf1f386fa
fix bad behaviour with auto-union-cast
2003-08-24 15:22:11 +00:00
arnobrinkman
006070b331
added comment and nested derived table fix
2003-08-24 02:56:53 +00:00
arnobrinkman
c61cbdc5ca
fix some derived tables problems
2003-08-24 02:36:46 +00:00
aafemt
8798a33d84
ENUM removal
2003-08-22 10:56:55 +00:00
arnobrinkman
9b4b90d606
bugfix nested derived tables
2003-08-19 23:56:28 +00:00
arnobrinkman
05d343bda8
Oops missed something
2003-08-19 23:47:07 +00:00
arnobrinkman
506b858567
Added PLAN support for derived tables
2003-08-19 23:34:23 +00:00
robocop
e15aef8e87
Damn loop
2003-08-19 10:25:21 +00:00
arnobrinkman
f5002b3f5b
Code clean-up and re-apply comments as suggested by Claudio V.
2003-08-18 21:37:47 +00:00
arnobrinkman
5f844f7428
added comment
2003-08-16 13:14:35 +00:00
arnobrinkman
95ab087c1f
latest versions
2003-08-16 00:37:40 +00:00
arnobrinkman
9e82b6d20b
Fixed ambiguous columnname problems with derived tables.
...
Added support for unnamed derived tables.
2003-08-16 00:36:54 +00:00
arnobrinkman
cc3be26481
latest versions
2003-08-15 14:39:38 +00:00
arnobrinkman
c12b4da4b1
added comment and fix derived table bug inside view, that couldn't use unions.
2003-08-15 14:38:33 +00:00
aafemt
9dbf56310a
sdl is UCHAR again
2003-08-15 10:23:46 +00:00
arnobrinkman
193d613f7c
derived table support
2003-08-15 00:33:15 +00:00
arnobrinkman
0d203a2c36
derived table support
2003-08-15 00:02:18 +00:00
arnobrinkman
a19beb8922
derived table support
2003-08-14 23:34:37 +00:00
fsg
8647f177b5
make gcc happy again
...
FSG
2003-08-14 07:11:24 +00:00
robocop
c9dac29670
There are less unnamed fields now.
...
Changed the code style, too.
2003-08-13 11:09:57 +00:00
robocop
4530191c09
Little C->C++ style change
2003-08-13 11:08:50 +00:00
skidder
14edeaf008
Update parse.cpp
2003-08-11 11:24:52 +00:00
arnobrinkman
e9953885e5
forgotten cleanup, thanks for your attention BLAS
2003-08-11 01:06:52 +00:00
arnobrinkman
294dddc865
bugfix: CASE / COALESCE functions determine always NUMERIC even when all values where int or long.
2003-08-11 00:43:42 +00:00
arnobrinkman
77d9804ed0
Support all expressions directly in GROUP BY clause
2003-08-10 15:19:43 +00:00
arnobrinkman
0100d93cc9
Added optional AS keyword to table alias
2003-08-10 10:06:34 +00:00
brodsom
e3d16f06ab
-Fix cast warnings.
...
-Remove unneeded casts
2003-08-09 21:57:50 +00:00
skidder
64c12e15c4
Make Windows happier. DIFFERENCE defined as a macro there
2003-08-06 20:21:40 +00:00
skidder
143f8d2443
Implementation of fast physical incremental backup
2003-08-06 16:30:49 +00:00
arnobrinkman
f81b831315
2nd RC4 bugfix, but much better tracking of supported nested aggregates.
2003-07-29 00:29:17 +00:00
arnobrinkman
0df22b0b31
bugfix RC4: a higher context was supported with nested aggregates, but this isn't possible.
...
Only a lower context is possible with nested aggregates.
2003-07-28 19:22:56 +00:00
aafemt
b672867147
sdl is a plain char again. Some cleanup around it
2003-07-24 10:21:42 +00:00
skidder
905670f5f9
Separate DSQL cursors management and explicit locks as suggested by Ivan Prenosil
2003-07-11 22:36:05 +00:00
brodsom
8feff51688
Remove depends (unused and unmaintained)
2003-07-08 23:38:30 +00:00
dimitr
c86c516bb7
Fixed parse.cpp
2003-07-08 11:17:38 +00:00
skidder
659e44cc45
Fix problem in non-reserved Inserting/Updating/Deleting implementation found by Dmitry Emanov
2003-07-07 23:49:29 +00:00
brodsom
4197c0ca5a
remove obsolete file
2003-07-05 15:24:15 +00:00
dimitr
9bb1284b19
Correct the parser a bit.
2003-07-02 09:40:55 +00:00
brodsom
30ccb0a20b
Solve macro conflicts on win 32 when using bison and msvc
2003-07-02 00:16:56 +00:00
brodsom
46d88d1291
Enable use of bison 1.35 (tested with gnuwin32 version)
2003-07-01 23:19:37 +00:00
skidder
e9d8645824
Forbid pessimistic locks in queries with DISTINCT clause
2003-06-30 14:31:00 +00:00
brodsom
fda73f91a4
Changes only inside #ifdef DEBUG.
...
Needed to be able to build with -DDEBUG on gcc.(there are also some format corrections)
2003-06-30 10:48:03 +00:00
skidder
c4727d695b
Add checks to allow explicit pessimistic locks only in cases when we really support them
2003-06-29 20:36:52 +00:00
dimitr
df8750c65b
Fixed metadata cache issues with CREATE OR ALTER statement.
2003-06-28 13:59:02 +00:00
dimitr
5eaf6394d1
Some savepoint-related changes:
...
1. release single savepoint
2. fixed exception handling
2003-06-26 10:44:16 +00:00
dimitr
2740167100
Fixed one more limitation in the parser.
2003-06-24 09:28:38 +00:00
alexpeshkoff
fa3c980179
fixed diagnostic in EXECUTE STATEMENT & DirectoryList
2003-06-16 15:43:00 +00:00
skidder
213752d768
Oops. Part of my own RELEASE SAVEPOINT implementation leaked into to the previous commit
2003-06-15 22:26:04 +00:00
skidder
ee856f7729
Make INSERTING/UPDATING/DELETING non-reserved keywords. The patch causes compilation performance degradation for statements containing a lot of braces, but my testing indicated that this effect is surely unmeasurable for nesting level up to 250
2003-06-15 22:08:16 +00:00
dimitr
b41fee4014
New error messages for:
...
- gbak
- DSQL layer (aggregate tracking)
- JRD layer (EXECUTE STATEMENT)
- config stuff
2003-06-13 07:56:08 +00:00
dimitr
c1c723103f
Disallowed explicit locking for aggregate queries.
...
The same should be done for stored procedure streams (joins require some work too).
2003-06-12 09:38:01 +00:00
dimitr
112c7022b6
Fixed (hopefully) savepoints implementation:
...
1) RELEASE SAVEPOINT statement is added
2) SAVEPOINT statement now re-establishes existing savepoint with the same name
3) all savepoint stuff is changed to use single BLR verb
2003-06-10 13:40:19 +00:00
dimitr
7ffbfc1fd1
Let's be GNU Bison 1.75 friendly.
2003-06-05 12:37:49 +00:00
dimitr
52f85359cd
Committed up-to-date parse.cpp.
2003-06-05 11:08:47 +00:00
skidder
e0eab37746
Fix server crash when SKIP syntax with braces used (SF 747567). Really strange, but problem does not affect Linux version. This is why it escaped my testing
2003-06-02 16:11:13 +00:00
dimitr
5ac5b45d7a
Updated parse.cpp.
2003-05-30 12:29:31 +00:00
skidder
bdb55e8283
Oops. Forgot to commit sed-script for parse.y
2003-05-24 17:27:59 +00:00
skidder
d8bae3c569
Add comment
2003-05-24 15:18:35 +00:00
skidder
b9480b21e1
Make FIRST/SKIP keywords non-reserved
2003-05-23 16:55:40 +00:00
dimitr
43aaa45d42
Enabled BREAK/LEAVE and EXITcommands in non-system triggers.
2003-05-14 08:15:25 +00:00
skidder
f16736b802
Use explicit pessimistic locks only if WITH LOCK clause is specified
2003-05-11 19:32:41 +00:00
skidder
7904fcd7ee
Cleanup
2003-05-09 16:05:24 +00:00
arnobrinkman
192ba388d4
1) bugfix RC1: Aggregates from a different parent_context where not allowed in the HAVING clause.
...
2) Enabled aggregate-functions from different parent_context (with lower scope_level) to be used inside another aggregate-function
Example:
SELECT
MAX((SELECT COUNT(*) FROM RDB$RELATIONS))
FROM
RDB$RELATIONS
2003-05-07 01:57:18 +00:00
arnobrinkman
962b5e21a3
fixed a typo and changed some comments
2003-05-04 22:02:42 +00:00
alexpeshkoff
8a6430c352
Fixed server crash in EXECUTE STATEMENT combined with exceptions handling block
2003-05-02 15:20:17 +00:00
dimitr
90278add21
Damn, what I was thinking about that time?
2003-04-28 07:41:29 +00:00
arnobrinkman
a819ccb060
bugfix: stored procedure with input parameters and aggregate tracking/validating methods failed
2003-04-17 20:58:36 +00:00
arnobrinkman
975638783a
bugfix: Parameters from stored procedures in a sub-select where not remaped to the good context in a aggregate query.
...
example:
SELECT
(SELECT sp.x FROM SP_TEST(T1.ID) sp)
FROM
Table1 T1
GROUP BY
T1.ID
2003-04-16 22:49:41 +00:00
aafemt
e5146fd644
Introduce of ISC_STATUS_ARRAY
2003-04-16 10:18:51 +00:00
aafemt
b3436b5cd7
STATUS -> ISC_STATUS
2003-04-10 06:32:58 +00:00
dimitr
1205d8c4e5
Misprint.
2003-04-09 10:51:42 +00:00
dimitr
566516464c
no message
2003-04-09 10:18:54 +00:00
dimitr
f9849a9534
Fixed migration rule in the parser which allows columns to be renamed.
2003-04-09 10:14:19 +00:00
brodsom
42ef1314ec
DSQL warning fixes.
2003-04-08 00:31:20 +00:00
dimitr
7d7cef5157
no message
2003-04-06 11:34:31 +00:00
dimitr
be5247dc1c
1. Cleanup
...
2. ROWS_AFFECTED is renamed to ROW_COUNT
(see SQL2002 specification)
3. CONNECTION_ID/TRANSACTION_ID are renamed to CURRENT_CONNECTION/CURRENT_TRANSACTION
(see SQL2002 recommendations for context functions)
4. Solved most of the shift/reduce conflicts and all reduce/reduce conflicts in the grammar
5. Fixed ambiguity in ORDER BY clause, when both the value and the clause itself could contain COLLATE word
(now explicit collation sequence of the value is used in the ordering logic)
6. Some of newly introduced tokens are made non-reserved
7. Added code to enable ORDER/GROUP BY ordinal when asterisk is used in the select list
(not sure which version it should go, so it's commented out so far)
2003-04-06 11:20:24 +00:00
dimitr
1268d5f7aa
Cleanup.
2003-04-06 10:09:38 +00:00
skidder
d8b76fbbe0
Make PROD_BUILD compile again
2003-04-03 21:36:46 +00:00
brodsom
b674d5ac89
Avoid signed unsigned comparisons
2003-04-03 18:43:08 +00:00
eku
8446116d28
Fixed a compilation error with code generated by the SVR4 yacc.
2003-04-03 12:41:52 +00:00
brodsom
2c329ec811
- Spli macro to avoid not used warnings
...
- Minor code formatting
2003-04-03 09:29:10 +00:00
eku
53367847f5
SVR4 yacc doesn't like C++ style comments!
2003-04-03 06:55:32 +00:00
brodsom
927e886d81
Correct formats
2003-04-03 01:51:03 +00:00
brodsom
9784aedc80
- Update parser (with byacc 1.9)
2003-04-03 01:36:52 +00:00
brodsom
a399bf764d
Changes to allow use of bison to create parse.cpp
2003-03-31 23:40:53 +00:00
arnobrinkman
f83a6084ed
bugfix:
...
1) bug with sub-selects inside COALESCE function.
2) bug with parameter ordering.
2003-03-31 19:11:55 +00:00
dimitr
a6b7f7c3ef
Cleanup.
2003-03-16 12:04:13 +00:00
dimitr
9acd919add
Cleanup.
2003-03-16 10:54:29 +00:00
dimitr
5e5803d6ff
Fixed another bug with RECREATE VIEW.
2003-03-15 08:14:54 +00:00
arnobrinkman
b099026cdc
corrected mistake in previous commit.
2003-03-10 23:30:53 +00:00
arnobrinkman
f1ca8aed80
bugfix: A bug left with using a aggregate sub-query inside a IN clause.
2003-03-10 21:38:22 +00:00
dimitr
718af8c8c9
Fixed bug in RECREATE/ALTER VIEW.
2003-03-03 19:10:23 +00:00
brodsom
18ccbd5688
Put unused functions declaration and definition inside NOT_USED_OR_REPLACED ifdef.
2003-03-03 08:29:18 +00:00
alexpeshkoff
133865b4cb
Fixed EXECUTE STATEMENT to support INTO clause
2003-03-01 19:32:03 +00:00
alexpeshkoff
878b0b6091
Fixed EXECUTE STATEMENT to support INTO clause
2003-03-01 19:19:23 +00:00
alexpeshkoff
dac7dfc866
Fixed macro redefinition warnings
2003-03-01 15:59:08 +00:00
brodsom
165023d329
Remove FAR_VARIABLE
2003-02-28 12:57:13 +00:00
hippoman
5c5551eb0c
* Changed comments to point to used code
2003-02-27 16:38:33 +00:00
arnobrinkman
61ca1ca76e
comment added
2003-02-26 23:41:00 +00:00
arnobrinkman
267195bd6c
bugfix: With a large amount of SQL the server crashed on generating blr. Due a USHORT was used for str_length.
2003-02-26 23:28:26 +00:00
brodsom
89702f3e88
Restore inlines
2003-02-25 00:05:06 +00:00
dimitr
7d4444165b
Cleanup.
2003-02-24 09:37:52 +00:00
arnobrinkman
f890eca4ea
bugfix: DISTINCT with sub-selects (context already in use (BLR error)). Distinct items are now correctly parsed and not just copied from the select-list.
2003-02-23 01:36:22 +00:00
hippoman
3643e9d8d6
* changed function comment to new forrmat
2003-02-21 00:27:16 +00:00
brodsom
230cd1aa19
Remove lint and LIBC_SCCS defines (dummy)
2003-02-20 01:59:10 +00:00
brodsom
2b0472457a
Remove warnings
2003-02-20 01:39:22 +00:00
brodsom
46b759d9d2
Move old borland make files to builds directory
2003-02-19 13:12:38 +00:00
brodsom
3b486dfb95
Move def files to builds directory
2003-02-19 13:07:13 +00:00
skidder
aade54d330
Fixed bug with line number tracking introduced recently + some cleanup
2003-02-17 14:56:58 +00:00
dimitr
6052221f37
Allowed access to both contexts in universal triggers.
2003-02-15 15:10:20 +00:00
hippoman
1cb0c17ace
* Formated comments to make Doxygen Happy..
2003-02-15 03:01:51 +00:00
hippoman
ad14320d0e
* formated dsql.h comments to make Doxygen happy..
...
* changed DSQL_debug values as follow..
/*! \var unsigned DSQL_debug
\brief Debug level
0 No output
1 Display output tree in PASS1_statment
2 Display input tree in PASS1_statment
4 Display ddl BLR
8 Display BLR
16 Display PASS1_rse input tree
32 Display SQL input string
64 Display BLR in dsql/prepare
> 256 Display yacc parser output level = DSQL_level>>8
*/
2003-02-15 02:05:10 +00:00
eku
6b0df2eb51
Fixed "'SHARED' redefined"
2003-02-14 14:22:10 +00:00
eku
f5ecaa95ff
Fixed "`static' is not at beginning of declaration"
2003-02-14 14:20:21 +00:00
brodsom
3cb91fce80
Remove PIPE and STACK defines (PIPE_SERVER, PIPE_CLIENT, PIPE_LIBRARY, PIPE_SERVER_YVALUE, PIPE_BRIDGE_TO_V3, V3, V3_PATH, ALTPIPE)(STACK_EFFICIENT, STACK_REDUCTION)
2003-02-14 02:24:44 +00:00
brodsom
45efaaa7e0
Remove inline keyword.
2003-02-13 22:49:16 +00:00
dimitr
6e42d8c093
Fixed exception handling.
2003-02-13 12:01:28 +00:00
dimitr
f833079b2f
CONST -> const
2003-02-13 09:33:26 +00:00
tamlin
bc383ff498
A bit const correctness added and some reinterpret_casts removed.
...
Changed DSQL's str to actually hold char.
2003-02-12 19:28:13 +00:00
brodsom
9a71ae7987
Change #if 0 and #if 1 to NOT_USED_OR_REPLACED
2003-02-12 12:51:07 +00:00
brodsom
5e63f2cecc
Remove GUI_TOOLS define
2003-02-11 20:17:56 +00:00
brodsom
fa4f74eb4c
Remove SQL_DIALECT_1_NEW_DATATYPES_CONVERT_TO_TEXT define, code only provisional for beta 6.0 and not used in 6.0
2003-02-10 19:57:57 +00:00
eku
a7f18b2e31
Removed "register" variables from the source code. It's up to the compiler
...
to hold variables in CPU registers.
2003-02-10 13:28:35 +00:00
brodsom
ab6ba391f2
Change wrong define
2003-02-09 23:31:50 +00:00