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
brodsom
3a9b561a11
Remove JPN_ defines
2003-02-07 18:46:49 +00:00
arnobrinkman
bd7a1b6bed
bugfix: wrong context was used with FieldX IN (sub-select) predicate.
...
Caused by me by an other bugfix SF BUG # [ 213859 ]
2003-01-30 22:14:02 +00:00
arnobrinkman
9b5c62d89c
bugfix: It wasn't possible to use non-aggregate related-fields from a aggregate query inside an sub-query.
...
Example (this failed) :
SELECT
Count(T1.F1),
SUM((SELECT T2.F2 FROM Table2 T2 WHERE T2.F1 = T1.F1))
FROM
Table1 T1
2003-01-30 13:30:15 +00:00
hippoman
801a2ad538
Some fixes to to DSQL_pretty:
...
-. Added some missing verbs and mispellings
-. Fixed a bug displaying parameters info.
2003-01-25 01:50:32 +00:00
dimitr
9ba418a493
Disallowed PLAN clause in views until it works.
2003-01-23 09:18:59 +00:00
alexpeshkoff
b8610ddefe
Finished y-valve C++ conversion cleanup
2003-01-22 16:37:59 +00:00
skidder
884c38d6c4
Memory manager changes - added memory usage stats, empty extents are now deallocated
2003-01-18 21:45:24 +00:00
dimitr
fd2f852e49
Cleanup.
2003-01-18 19:39:12 +00:00
dimitr
37b87ac7ed
Fixed porting bug which caused zero to be returned as bytes-per-character value.
2003-01-17 12:52:04 +00:00
skidder
3622fc966f
Fix intermittent bug in aggregate reference tracking
2003-01-17 12:47:19 +00:00
dimitr
801ae673ec
Rolled back previous commit.
2003-01-17 12:40:01 +00:00
dimitr
0474fdc4ca
Restored compatibility with FB1. Index name is no longer assigned automatically for constraints.
2003-01-17 11:11:02 +00:00
skidder
ba5e11b15c
Integrate new memory manager into the engine
2003-01-16 17:47:10 +00:00
dimitr
55ed1b6444
1. Reworked internal info stuff once more.
...
2. Added DSQL support for parametrized events.
3. Fixed bug with cursors in triggers.
4. Added support for runtime trigger action checks (INSERTING/UPDATING/DELETING).
5. Fixed bug with concatenation and trashed RDB$FIELD_LENGTH.
2003-01-15 12:00:33 +00:00
dimitr
8e838186f5
Reworked internal info stuff.
2003-01-15 11:57:28 +00:00
dimitr
2fb1a59ef4
Remove REQ_SAVEPOINT from allowed requests in EXECUTE STATEMENT.
2003-01-14 13:47:30 +00:00
arnobrinkman
3dcc0600c8
bugfix: SF BUG # [ 213859 ] Subquery connected with 'IN' clause
2003-01-12 20:27:00 +00:00
alexpeshkoff
8f04fd8e3b
Cleanup of mixed use of macro FRBRD and struct why_hndl
2003-01-12 18:16:50 +00:00
arnobrinkman
411c18bbf2
bugfix on my latest commits
2003-01-12 16:29:59 +00:00
arnobrinkman
5b8422a178
bugfix on my latest commits
2003-01-12 00:41:28 +00:00
arnobrinkman
1b552b007e
Introduce backwards compatibilty within aggregates.
...
Deepest field inside aggregate determine where an aggregate-context should belong too.
2003-01-11 02:49:13 +00:00
skidder
2975b16cce
Allow arbitrary expressions in ORDER-BY clause
2003-01-09 16:50:24 +00:00
arnobrinkman
31eea59b1a
bugfix: PLAN wasn't correctly returned. bug probable introduced by c to c++ port.
2002-12-29 22:26:35 +00:00
alexpeshkoff
6adbcc873b
Fixed problem with
...
extern "C" DDL_resolve_intl_type
2002-12-22 11:42:19 +00:00
dimitr
411c994122
Now we understand single-line comments (--) in any position of the SQL statement.
2002-12-19 14:48:22 +00:00
dimitr
8842052537
Prepared parser to allow non-reserved words as valid symbol names.
2002-12-19 13:14:41 +00:00
dimitr
7f71918bc3
no message
2002-12-19 13:08:21 +00:00
dimitr
2861cbf063
no message
2002-12-19 08:57:53 +00:00
dimitr
9dc68b4a7b
Fixed bug with BREAK and partially implemented labels and LEAVE statement.
2002-12-18 15:01:50 +00:00
arnobrinkman
d3bfe539d3
fix so that win32/msvc6 builds works again
2002-12-16 23:54:30 +00:00
skidder
9b57d8b649
Several little changes to make engine compilable again on Linux
2002-12-16 21:19:51 +00:00
alexpeshkoff
a83fcfeab9
Sorry for wrong DATABASE directive :-(
2002-12-16 16:25:09 +00:00
alexpeshkoff
90cdfbdaf5
Rename all links to why.cpp handle to struct why_hndl *
...
Warning! Don't commit parse.cpp and dsql.tab.h, because:
1. I use another YACC version.
2. They must be removed from CVS at all.
Execute STATEMENT also here
2002-12-16 15:38:26 +00:00
arnobrinkman
24fa36302d
bugfix previous added code. correct way of retrieving length for
...
an variable inside SP/Trigger. This was needed for CASE expressions.
2002-12-16 00:48:53 +00:00
arnobrinkman
d8450be335
bugfix: length of text variables inside procs/triggers wasn't copied to descriptor structure.
2002-12-13 02:02:38 +00:00
dimitr
2300540ff8
Fixed serious bug with views I unfortunately introduced in Alpha 5 :-(
2002-12-11 10:09:22 +00:00
dimitr
0523aa4951
Cleanup.
2002-12-11 09:45:59 +00:00
eku
5b8ffd81c2
Removed unused variables.
2002-12-10 11:53:53 +00:00
dimitr
6e51db6e6e
1. Implemented ORDER BY clause in subqueries.
...
2. Disallowed FIRST/SKIP for views.
3. Allowed zero as valid argument for FIRST.
2002-12-03 18:04:36 +00:00
skidder
c60c29f4c8
Oops. Forgot to enable parameter duplication in parameter bug emulation mode
2002-12-03 13:48:18 +00:00
skidder
5187fa6c44
Added configuration parameter to enable older parameter ordering behavior
2002-12-03 13:37:06 +00:00
eku
34e9391a97
Use the new macro FB_NELEM to calculate the number of elements in an array.
2002-12-02 09:45:52 +00:00
hippoman
9a8f0768b9
Changed struct fld and FLD to local module names
2002-11-30 17:45:02 +00:00
arnobrinkman
97caf1f635
bugfix: allow use of other outer-references in a aggregated sub-select
2002-11-25 20:29:39 +00:00
skidder
2b995ac2ab
Make SQLDA parameter mapping consistent with order and number of parameters in source SQL string
2002-11-24 15:22:03 +00:00
arnobrinkman
2ea3a3664a
no message
2002-11-24 13:03:51 +00:00
skidder
f13636d29c
Fixed nulls first/last and collation handling in "order by" clause of unions
2002-11-22 15:27:59 +00:00
arnobrinkman
b986fe4438
bug : UDF node didn't contain any character set, was always NONE.
2002-11-20 23:48:34 +00:00
hippoman
7387e6fb70
changed nod,tra,req,trg,rel,ctx,prc struct names to local module names
2002-11-20 23:18:16 +00:00
dimitr
776c54bdac
Renamed MSG to DSQL_MSG.
2002-11-19 12:35:28 +00:00
skidder
53f625e077
New explicit pessimistic locks implementation. It is logically consistent in all TPB modes and should be very fast.
2002-11-18 20:27:24 +00:00
hippoman
62cf7d7a88
change TRA,REQ,TRG,REL,CTX or PRC, to module local names.
2002-11-17 00:04:19 +00:00
dimitr
5f61e44ddc
Global names change:
...
FBOK=>FB_SUCCESS
FAILURE=>FB_FAILURE
xxx_FBOK=>xxx_SUCCESS
2002-11-14 08:33:08 +00:00
alexpeshkoff
865b39fec1
Fixed bug with exception inside for/while loop in triggers
2002-11-13 15:57:29 +00:00
kkuznetsov
6887f405ab
Renaming all occurences of SUCCESS to FBOK
2002-11-13 15:01:21 +00:00
dimitr
470713caa1
no message
2002-11-13 14:47:54 +00:00
alexpeshkoff
e39d470832
Avoid deadlocks:
...
lock databases_mutex only when THREAD_EXITed
2002-11-12 16:04:01 +00:00
skywalker
166ff6f924
Changes to make some NOD entries now XXX_NOD as per module (assume this
...
is part of Ignatio's change).
Change to define xdr_hyper when it's available locally. (The standard
#include file rpc/xdr.h is not included and the definition needs to be
in remote/xdr_proto.h for some reason).
2002-11-12 05:05:01 +00:00
hippoman
c75a6d3019
* Changed NOD struct name to DSQL_NOD.
2002-11-11 19:08:37 +00:00
dimitr
8177404f3f
A bit improved parser's debug output. Thanks to Ignacio J. Ortega.
2002-11-10 07:58:13 +00:00
dimitr
1cd12e4972
Fixed small parser bug. Thanks to Ignacio J. Ortega.
2002-11-10 07:48:52 +00:00
dimitr
127c64dc9c
Committed Ignacio's fix for DSQL_pretty (affects debug builds only).
2002-11-09 08:05:26 +00:00
dimitr
eb75186f5e
Cleanup.
2002-11-01 08:53:05 +00:00
dimitr
1d4e51d5a0
A bit more cleanup.
2002-10-31 13:08:18 +00:00
dimitr
7aaa9dc9ee
Let's report real statement, not it's internal meaning.
2002-10-31 12:22:05 +00:00
dimitr
1b2fc90266
Disallowed Nickolay's SAVEPOINT feature for SPs/triggers.
2002-10-31 12:01:53 +00:00
dimitr
8043127aac
Cleaned up to remove those damned line numbers.
2002-10-31 11:28:56 +00:00
seanleyne
0b82f4aa07
Removed obsolete "Netware" port
2002-10-30 06:40:58 +00:00
skidder
8e6622a20e
Merging changes from skidder branch - explicit locks, savepoints, build system changes
2002-10-29 20:20:44 +00:00
seanleyne
11e4f78a30
Code cleanup, removed obsolete "MPEXL" port
2002-10-29 02:59:57 +00:00
dimitr
5c8530579d
Re-allowed plans in triggers.
2002-10-25 08:29:12 +00:00
eku
0c1b55dd08
Code cleanup:
...
Since we already have the define ISC_STATUS_LENGTH for the the length of
the status vector, we should use it! Replaced 'status[20]' with
'status[ISC_STATUS_LENGTH]'.
Replaced the different symbolic names for the maximum length of a path
(MAX_PATH, MAX_PATH_LENGTH, MAXPATHLEN) with one uniq symbol MAXPATHLEN.
2002-10-24 09:01:44 +00:00