hvlad
a2afa1051e
Fixed unregistered bug: AV in request driven by freed cursor
...
(when request is dropped flag REQ_orphan is set for child requests but
this flag is never checked)
2006-01-27 07:36:17 +00:00
dimitr
a3b2c23aff
CREATE VIEW should be aware that a column alias doesn't necessarily mean an expression.
2006-01-26 11:21:12 +00:00
robocop
770fd53775
Fix SF Bug# 1408079 and also the same problem with unterminated comment blocks /* ...
2006-01-25 08:40:39 +00:00
arnobrinkman
a52a8f5c66
Fix incorrect "Ambiguous field name error" reported by Ivan Prenosil:
...
SELECT
(SELECT RDB$FIELD_NAME FROM RDB$RELATION_FIELDS
WHERE RDB$FIELD_SOURCE = RDB$FIELDS.RDB$FIELD_NAME)
FROM RDB$FIELDS
WHERE RDB$FIELD_NAME NOT IN
(SELECT RDB$FIELD_SOURCE FROM RDB$RELATION_FIELDS)
2006-01-22 19:14:27 +00:00
asfernandes
e781d29e1e
Fixed problem caused by usage of UNICODE_FSS system domains in users views and tables - thanks to Dmitry
2006-01-21 14:55:16 +00:00
hvlad
c65b1fda0a
Regenerated parser files after parse.y change
...
By bison 2.1 now
2006-01-20 13:34:18 +00:00
hvlad
7c1372ee30
Again fix issue with parser and not correctly stored source for
...
CURRENT_TIME\CURRENT_TIMESTAMP in procedure parameters
default values. Reported by Martijn Tonies
2006-01-20 13:31:26 +00:00
paul_reeves
6baee04435
Forward port OldColumnNaming from Fb 1.5.3
2006-01-17 04:40:31 +00:00
alexpeshkoff
fb6757bbed
fixed gcc warning(s)
2006-01-16 16:31:15 +00:00
asfernandes
608a594696
Fixed problem causing collation lost in sqlsubtype when using dynamic charset - reported by Ivan Prenosil
2006-01-15 18:11:31 +00:00
robocop
1ca7a582f9
EXPRESSION_INDICES code is considered stable and therefore there's no need to keep it protected by macros. Please do a full rebuild.
2006-01-14 07:00:44 +00:00
robocop
be13107102
Misc.
2006-01-04 05:55:24 +00:00
dimitr
68ea35e64c
More realistic BLR buffer. We don't need redundant allocations.
2005-12-21 17:49:47 +00:00
dimitr
96f644b6bd
Fixed a few wrong error messages + minor cleanup.
2005-12-12 17:36:19 +00:00
dimitr
75fade8b0a
Ported solution for SF #1371274 from Yaffil + minor cleanup.
2005-12-12 17:27:10 +00:00
dimitr
52abeceb5e
Changed location of some defines in order to avoid internals inside ibase.h.
2005-12-05 11:31:45 +00:00
hvlad
84244fc30e
Regenerate parser files
2005-12-04 12:21:00 +00:00
hvlad
c333e74b4c
1. Correct end_default_opt rule
...
2. Fix wrong error reporting found by Claudio
2005-12-04 12:18:51 +00:00
asfernandes
68830f0724
Lookup for procedure parameters in isc_blob_lookup_desc
2005-12-02 00:28:14 +00:00
dimitr
9e7ae46d1f
Simplified code a bit. Fixed the crash with the usage of TRIM in aggregation.
2005-11-30 09:03:53 +00:00
hvlad
d7ccce5c37
Regenerated parser files after parse.y change
2005-11-29 16:13:03 +00:00
hvlad
217fd7e959
Second attempt to fix issue with parser and not correctly stored source
...
for DEFAULT CURRENT_TIME\DEFAULT CURRENT_TIMESTAMP
2005-11-29 16:09:02 +00:00
robocop
5508320ef7
Misc.
2005-11-29 06:24:56 +00:00
arnobrinkman
ee9ac954ee
Fix column-name problem with UNION and derived fields.
...
Problem found by Volker Rehn.
2005-11-28 23:06:53 +00:00
alexpeshkoff
62a24d46e4
1. Moved data structures, written to database file, into ods.h.
...
2. Added new types of clumplets to ClumpletReader and ClupmletWriter.
3. Applied modified ClumpletReader and ClupmletWriter to /remote and partially /jrd.
4. Added active protection from remote brute-force attack to services API.
2005-11-27 20:53:09 +00:00
arnobrinkman
d1e0291152
Add missing nodes to sub-select detection
2005-11-26 16:15:47 +00:00
dimitr
a34cf16466
Let's generate blr_blob2 for PSQL blobs instead of blr_quad.
...
This allow PSQL blobs to carry the charset/collation attributes.
2005-11-25 14:58:50 +00:00
hvlad
b144b0267d
Enlarged dsql and jrd hash tables sizes
2005-11-21 23:52:11 +00:00
hvlad
b5094b2b2c
Regenerated parser files after parse.y change
2005-11-21 17:58:07 +00:00
hvlad
a174b8336f
Fixed issue with parser and not correctly stored source
...
for DEFAULT CURRENT_TIME\DEFAULT CURRENT_TIMESTAMP
2005-11-21 17:57:20 +00:00
robocop
d1373b1555
Fix clash with winbase.h on IGNORE.
2005-11-18 04:39:47 +00:00
robocop
90174410a2
Let Ivan Prenosil test his beloved transaction options.
2005-11-17 04:22:10 +00:00
hvlad
f89e461887
Cached charsets by id (not only by name) in dsql. Removed irq_cs_bpc request as unneeded anymore
2005-11-16 07:49:28 +00:00
robocop
016931bb63
What about putting the nodes you added in node.h also in the DSQL debugging facilility, folks?
...
:-)
2005-11-12 23:36:09 +00:00
dimitr
a0ea9ad0bc
Globals must die, epysode III.
2005-11-12 18:48:09 +00:00
arnobrinkman
a381385af0
Fix problem with sub-queries/derived tables in the HAVING clause
2005-11-08 23:49:50 +00:00
robocop
405346ba33
Fix SF-bug field-test #1192225 .
2005-10-30 08:15:29 +00:00
dimitr
5e8af7b048
Implemented RECREATE TRIGGER.
2005-10-29 09:15:37 +00:00
alexpeshkoff
5724d3eb15
Fixed SS deadlock in DSQL
2005-10-28 16:34:59 +00:00
dimitr
953aa2dfd0
Fixed the bug noticed by Claudio.
2005-10-28 05:37:34 +00:00
dimitr
85388cd3c7
1) Fixed check constraints
...
2) A bit simplified generation of check option triggers
3) Cleanup of unused parser stuff
2005-10-26 18:21:32 +00:00
arnobrinkman
a93df44449
Fix NEW/OLD context problem found by Dmitry
2005-10-25 20:42:29 +00:00
dimitr
868a5bb21f
Better (and more honest) diagnostics.
2005-10-21 09:43:26 +00:00
dimitr
23eb1ca985
Change the visibility rules for uncommitted relations.
...
The goal is to simplify them and fix known issues with ALTER TABLE.
Hopefully, this won't cause any side effects.
2005-10-21 08:47:26 +00:00
robocop
68f3568b0f
Close the remaining, third item in SF Bug #217042 . Now the four items are solved.
...
However, this third item was the tip of the iceberg: computed fields silently dropped implicit or explicit charset/collation/sub_type specification, whether it was derived from the expression or dictated by an explicit cast.
Also, had to invent a new flag to deal with relations being just created now and whose db_key_length obviously doesn't exist. Still looking for better solution.
2005-10-08 06:52:57 +00:00
robocop
e2dd9845b5
Totally misc.
2005-10-08 06:47:34 +00:00
robocop
7d304b0fbb
Fix SF Bug #1292007
...
Move some hardcoded error texts to the msg database.
2005-10-06 06:08:10 +00:00
robocop
01e8fab3e0
Trim unneeded blanks and some control characters between DEFAULT clause and the default value itself in procedure parameters, too.
...
Trim unneded blanks and some control characters before the BEGIN or DECLARE clauses in a procedure body.
2005-09-30 07:50:39 +00:00
dimitr
75ac53eeb4
Temporarely rolled back to the previous end_trigger logic due to found issues.
...
Still looking for a proper solution.
2005-09-28 13:23:02 +00:00
arnobrinkman
3326dd95ff
Fix another "with check option" issue <sigh>
2005-09-27 20:41:18 +00:00
hvlad
1b26b6e6b5
Make code more robust. Reported privately by Tom Cole
2005-09-27 19:23:24 +00:00
dimitr
dead116ac8
Significant changes in the DDL source parsing (begin_*, end_* rules):
...
1) store WITH CHECK OPTION instead of WITH CHECK (views)
2) store DEFAULT <value> instead of <value> (procedure parameters)
3) attempt to fix the bug in end_trigger causing longer string to be stored (try e.g. DEFAULT CURRENT_TIME NOT NULL)
4) major cleanup of begin_trigger and indentation, simplified some parser rules
Now awaiting for the Claudio's attack :-)
2005-09-27 11:17:54 +00:00
dimitr
3e575cc3ba
Let's recognize an attempt to alter a not existing table earlier than in DYN.
...
In particular, this prevents a server crash introduced by some recent DDL checks.
2005-09-19 14:48:26 +00:00
dimitr
51a8e6dd62
Fixed dialect 1 regression caused by my recent changes.
2005-09-16 10:50:57 +00:00
dimitr
e285db7acf
Fixed the issue with zero-initialized status vector during prepare.
2005-09-14 19:06:28 +00:00
asfernandes
13910d5c73
Fix issue of SQLVAR.sqllen from non-system MBCS fields, thanks to Roman
2005-09-14 18:09:40 +00:00
dimitr
39bceddf43
Another attempt to fix the issue with uncommitted DDL.
2005-09-14 11:42:21 +00:00
robocop
aab2d20725
- Get rid of DBB_v3 in DSQL and put a message just in case we find ODS<=7 (impossible in theory, since FB wouldn't open such db).
...
- Put mnemonics for two hardcoded error msgs I hijacked from DYN years ago. Now they are defined for the SQLERR facility.
2005-09-10 07:15:24 +00:00
dimitr
e2ca3104e5
Cleanup.
2005-09-09 10:15:02 +00:00
dimitr
d946030bed
Small correction.
2005-09-09 09:07:08 +00:00
dimitr
9309486dba
Clear the DSQL metadata cache after ALTER EXTERNAL FUNCTION statement.
2005-09-09 06:40:44 +00:00
hvlad
c420a96abe
Removed unused member
2005-09-04 21:39:22 +00:00
hvlad
6e63680183
Correction
2005-09-04 21:33:57 +00:00
hvlad
a3c369866a
Add error handlers
2005-09-04 21:32:16 +00:00
hvlad
3f03b1d619
Small code reorganisation:
...
1. move two identical 'copy_status' functions from array.epp and blob.epp into utld.cpp
2. allow ERRD_punt use local instance of status-vector
2005-09-04 21:31:25 +00:00
robocop
36f8683511
Get rid of my old hack to solve a problem between John/Mark's FIRST/SKIP parameters type and dialect detection. The dialect is in the request.
2005-09-03 08:03:39 +00:00
robocop
057f098a28
- Misc.
...
- Detect a limit case with params and containing or starting.
2005-09-03 07:47:32 +00:00
dimitr
898cb02240
1) Made output parameter naming a common procedure instead of select-list private code.
...
2) Allowed value expressions in the RETURNING clause.
2005-09-02 05:30:16 +00:00
asfernandes
f93bf8d46a
Fixed problem of implict NOT NULL (in PRIMARY KEY constraint) being generated with the same constraint name of the PK.
...
Thanks to my brother Adilson for the test case.
2005-08-29 18:41:21 +00:00
dimitr
faa8162a2b
Fixed SEGV reported by Konstantin.
2005-08-25 12:37:26 +00:00
dimitr
0cd5e57eaa
Added optional seconds precision to CURRENT_TIME and CURRENT_TIMESTAMP
...
as agreed with Ann and others times ago.
2005-08-24 09:42:14 +00:00
dimitr
2f4312b6c6
Added optional seconds precision to CURRENT_TIME and CURRENT_TIMESTAMP
...
as agreed with Ann and others times ago.
2005-08-24 09:22:40 +00:00
dimitr
8df5a70299
Rolled back my commit as a performance looser.
...
More precise savepoints handling is being investigated.
2005-08-24 06:21:47 +00:00
dimitr
a30e17bce3
Fixed wrong keyword version.
2005-08-22 13:39:30 +00:00
dimitr
9a489515b9
Fixed PSQL exception handling which never worked consistently.
2005-08-22 10:12:13 +00:00
asfernandes
0b1eb55d62
Fixed SF field-test #1249187 - 2.0a3: String literals dest. for large CHAR fields truncated
2005-08-21 15:52:30 +00:00
arnobrinkman
b900f56435
Allow outer reference in derived table to higher scope-levels
2005-08-16 21:19:17 +00:00
robocop
22742ccdd7
Tweak DYN to solve several issues:
...
- Allow to set and drop defaults for table's fields (as it has been possible with domains).
- Stop people from setting a default value for array types.
- Close checking holes that allowed people to change from scalar types to array types and vice/versa.
- Improve some error messages.
2005-08-14 05:48:20 +00:00
dimitr
6494351243
Fixed a number of issues for Dialect 1 and Dialect 3 (string arithmetics) + some cleanup.
...
The issues are:
1) '1.5' / '0.5' doesn't work in Dialect 1
2) avg ('1.5') doesn't work in Dialect 1
3) 5 * '1.5' produces INT result instead of DOUBLE PRECISION in Dialect 1
4) sum ('1.5') produces NUMERIC(15, 2) result instead of DOUBLE PRECISION in Dialect 1
5) - '1.5' doesn't work in Dialect 1
6) '1.5' * '0.5' and '1.5' / '0.5' are not forbidden in Dialect 3
2005-08-06 05:29:31 +00:00
robocop
773b8035c1
Totally misc.
2005-08-04 04:03:01 +00:00
arnobrinkman
d41f73b112
Sigh, if i change something then i must do it right
2005-08-02 08:36:51 +00:00
arnobrinkman
ec541b28d5
Fix unreleased contexts problem with derived tables, found by Vlad.
2005-08-01 19:05:57 +00:00
arnobrinkman
a6deb7b96e
Fix mistake, noticed by Claudio
2005-07-31 14:13:30 +00:00
robocop
a32d2f48b6
Totally misc.
2005-07-31 03:34:04 +00:00
arnobrinkman
8a6f8e4a1c
Fix nullable flag for descriptor generated by MAKE_desc_from_list()
2005-07-28 13:35:08 +00:00
arnobrinkman
8b39342fdf
Fix "WITH CHECK OPTION" bug introduced with tighter alias handling.
...
In fact the tighter alias handling was showing a hidden "bug".
2005-07-27 18:57:15 +00:00
dimitr
0b3d60bbde
Fixed the GEN_ID(<name>, NULL) issue (reported by Claudio).
2005-07-27 07:36:03 +00:00
dimitr
50add99198
Fixed the NEXT VALUE FOR bug for dialect 3. Thanks to Claudio.
2005-07-27 05:36:43 +00:00
dimitr
3e0fe831cd
Fixed the arrays bug introduced by myself.
2005-07-26 12:16:29 +00:00
arnobrinkman
e2a664a6a2
Fix and simplify PLAN alias lookup
2005-07-26 11:54:37 +00:00
arnobrinkman
beb6fb213d
Fix and simplify PLAN alias lookup
2005-07-26 11:48:10 +00:00
arnobrinkman
22ac7c9cdc
Fix derived table issues with NEW/OLD contexts (Triggers/check-constraints)
...
Also adjust IN predicate behaviour to derived table.
PLAN parsing for derived tables will be fixed later.
2005-07-25 14:43:28 +00:00
asfernandes
d524eec86f
Fixed SF #1242379 - Collation changes VARCHAR's length
2005-07-22 02:08:14 +00:00
dimitr
81b86138b3
Correction.
2005-07-20 12:49:56 +00:00
dimitr
1a3218625d
Added DSQL support for ROLLBACK RETAIN.
2005-07-20 10:05:57 +00:00
dimitr
e26108da29
1) Fixed threading issues in DSQL (they always existed, but were hidden until recently).
...
2) Cached all METD requests.
2005-07-17 07:00:55 +00:00
dimitr
75a8789a09
Temporarily rolled back my fix.
2005-07-16 06:46:07 +00:00
arnobrinkman
21c839b45a
Send annoying unemployed code out of the door
2005-07-13 20:07:13 +00:00
dimitr
3a6419378d
Fixed SF #1012152 .
2005-06-24 15:06:54 +00:00
asfernandes
2cae7d39b7
Simplification
2005-06-17 01:33:14 +00:00
robocop
e28ed6b27c
Try to indicate position of incomplete commands.
...
Some casts because statuses are fixed 32 quantities, not natural int types.
2005-06-16 05:11:08 +00:00
robocop
a3e76836e3
Misc.
2005-06-16 05:02:37 +00:00
asfernandes
890494ac7c
1) Fixed SF #1016040 Missing external libraries causes engine exception
...
2) Use better error messages
2005-06-14 03:16:54 +00:00
dimitr
40b5c1d6bb
RETURNING implementation.
2005-06-13 12:45:42 +00:00
asfernandes
4efb74fc51
Removed some compiler messages
2005-06-13 02:12:14 +00:00
asfernandes
a44e8ffbd0
Fix TRIM(NULL FROM <something>) to return NULL
2005-06-12 21:20:12 +00:00
hvlad
f07656ec54
Fixed SF bug #1211325 (BLOBs in external tables)
2005-06-11 11:36:59 +00:00
robocop
b7e36b865d
Backport Tom Cole's fix for FP numbers as strings.
2005-06-11 03:14:22 +00:00
robocop
c674f50758
CREATE DATABASE can tolerate single line comments (AFAIK, client-side issue).
2005-06-11 00:22:47 +00:00
robocop
3a8cd43a05
Please Dmitry and try to report the line/column of an incomplete statement.
2005-06-11 00:20:22 +00:00
asfernandes
3d93cdf69c
Fix possible problems with larger columns sizes noted by Claudio
2005-06-10 02:03:08 +00:00
dimitr
00e0976294
Fixed bug with lost charset/collation in local variables,
...
reported by Eugene Kilin.
2005-06-08 13:42:59 +00:00
asfernandes
3647497a08
Misc.
2005-06-06 20:18:12 +00:00
asfernandes
559ce29c51
1) Replace length_ to strlen as noted by Claudio and Dmitry
...
2) Change USHORT to ULONG in intl.cpp
2005-06-06 18:14:10 +00:00
dimitr
d9294d7938
Added new error message.
2005-06-06 13:37:31 +00:00
dimitr
15151d5bba
Fixed charset/collation issues for view columns.
2005-06-06 11:06:01 +00:00
robocop
b8d1f00f94
- Corrections and changes to Adriano's commit, subject to his inspection.
...
- Solved an endless loop with trim and zero-length trim characters, etc.
- Some places are signaled with FB_COMPILER_MESSAGE for prompt attention.
2005-06-06 08:30:03 +00:00
arnobrinkman
8affc50d24
Fix unneeded evaluation of last item by COALESCE function, noted by Dmitry
2005-06-03 21:14:35 +00:00
asfernandes
59213efe7e
Merge INTL branch into HEAD
2005-05-27 22:45:31 +00:00
arnobrinkman
1e539b16c1
fixed missed return, thanks to Claudio
2005-05-23 23:16:49 +00:00
robocop
3aaa840483
Misc.
2005-05-22 03:11:41 +00:00
robocop
b490df3a41
ALTER EXTERNAL FUNCTION: be able to change the entry_point or the module_name when the UDF cannot be dropped to correct the declaration because it's used in some view, procedure, trigger or check.
2005-05-22 02:42:17 +00:00
robocop
95d8b36260
Misc.
2005-05-19 23:41:17 +00:00
robocop
1fc49649a0
Getting rid of commented code that belonged to the dead shared cache and/or WAL plus making COLLATION non-reserved word and having trivial special handling for COMMENT so it's recognized as token only if it's the first token.
2005-05-19 07:41:27 +00:00
robocop
934c5d8cf3
Getting rid of commented code that belonged to the dead shared cache and/or WAL plus identifying the keywords that have special handling as non-keyword, so isql and others future clients of KEYWORD_stringIsAToken() won't treat these as if they need double quotes.
2005-05-19 07:38:29 +00:00
robocop
da0a6bba5b
Getting rid of commented code that belonged to the dead shared cache and/or WAL plus fixing some indentation.
2005-05-19 07:34:46 +00:00
arnobrinkman
0132e696f2
Fix mapping problem when derived table was used as sub-query.
...
This was only possible since pass1_any() behaviour has been changed.
Normally a derived table cannot access fields outside the derived table context.
2005-05-18 18:55:57 +00:00
robocop
0285f6bf76
- Implement the proposed COMMENT keyword to allow descriptions in database objects. Subject to change or withdrawal.
...
- Enhance some messages. Reuse some msg numbers that were duplicate.
- Fix some issues found in Alex recent MetaName-related commits.
2005-05-17 07:17:25 +00:00
alexpeshkoff
b8929eecbf
front-ported my fix from 1.5.2 - fixed AV in ALTER TABLE
2005-05-12 18:23:01 +00:00
hvlad
33e495c7ad
Fixed unregistered bug - AV in incorrect written EXECUTE BLOCK statement. For example :
...
EXECUTE BLOCK AS
BEGIN
INSERT INTO DUMMY (ID) VALUES(?);
END
Thanks to Arno
2005-05-12 17:46:31 +00:00
dimitr
7c8fc55056
Fix for the bug reported by Bill Oliver.
2005-05-06 18:09:49 +00:00
arnobrinkman
0f07677e46
Fix errors generated by IN-predicate due pass1_any() change
2005-05-04 19:38:47 +00:00
arnobrinkman
6a73b87b62
Fix bug SF #1191006 Using where params in SUM return incorrect results
...
parameters weren't checked on equality in node_match()
2005-05-04 09:53:37 +00:00
dimitr
e288d2ac49
Fixed bug found by Arno.
2005-05-04 08:44:35 +00:00
dimitr
27340d7daf
1) Fixed buggy behaviour of IN vs FIRST/SKIP.
...
2) Allowed UNIONs in ANY/ALL/IN subqueries.
Subject of Arno's review.
2005-05-02 12:41:02 +00:00
dimitr
65588a5003
Optimized NOT conditions when possible.
2005-05-02 09:47:27 +00:00
arnobrinkman
0a5c47ca6b
Remove non-sense comment
2005-04-26 13:32:15 +00:00
arnobrinkman
9f929f2527
Fix SF bug #1016969
...
-804 Data type unknown with searched CASE and parameters in results
2005-04-26 11:46:07 +00:00
arnobrinkman
4f7123010c
Fix bug with VALUE keyword in check constraint and
...
bug Found by Tom Cole with VALUE keyword where VALUE represents a column
2005-04-24 18:26:12 +00:00
arnobrinkman
0aea42263e
Second fix for items-list where NULLs default descriptor shouldn't be used to determine the final output descriptor.
...
Only UNIONs were affected by this bug.
2005-04-20 13:06:42 +00:00
arnobrinkman
cfc703f766
Fix bug with alias hiding datatype by datatype-list coercion
2005-04-19 09:55:53 +00:00
robocop
d0115322ac
Misc.
2005-04-18 03:24:34 +00:00
dimitr
cce77ac325
Fixed issue reported by Adriano.
2005-04-16 18:21:09 +00:00
dimitr
aeaa8b2290
Removed the feature that was never used for the last years.
...
An intention was to disallow batch fetches from procedures,
but this code never worked due to recursion in PASS1_rse().
Accidentally, I've fixed the reason in FB2 and now users
observe noticable performance degradation. To keep the
performance, let's do batch fetches again. Those who are
not sure what their procedures do between suspends may
use a FOR UPDATE clause anyway.
2005-03-31 15:27:12 +00:00
robocop
da0b4784b6
Misc.
2005-03-31 06:21:55 +00:00
robocop
21af4a943a
1.- Disambiguate rules between READ BLOB/INSERT BLOB and metadata definitions involving blob fields.
...
2.- Fix the source of DSQL crash with READ BLOB.
3.- Fix (1) has the side effect of stopping invalid DDL like
create table t(b blob 0);
2005-03-31 06:20:29 +00:00
dimitr
543d0fa51b
Solved issues with EXEC PROC and input message (related to my previous changes).
2005-03-30 17:55:29 +00:00
robocop
dec3481e28
Variables in context.
2005-03-30 05:12:02 +00:00
dimitr
67e30e2dc3
Removed short-curcuit prepare for EXEC PROC requests.
2005-03-29 06:09:37 +00:00
robocop
318cd7ae44
Fix DY's copy/paste bug.
2005-03-27 04:51:21 +00:00
dimitr
d25fcdc0c4
Implemented RECREATE EXCEPTION and CREATE OR ALTER EXCEPTION.
2005-03-26 16:11:52 +00:00
dimitr
7307d7f490
More parameter checks in the PSQL case.
2005-03-26 14:05:44 +00:00
dimitr
b8e5350158
Parser simplification and minor cleanup.
2005-03-26 13:32:29 +00:00
dimitr
fa8f456325
Fixed server crashes related to some plan buffer overflows.
2005-03-23 07:14:12 +00:00
arnobrinkman
eac753f709
Fix typos found by Tom Cole
2005-03-13 12:17:32 +00:00
robocop
2f752f36aa
Totally misc.
2005-03-04 00:01:42 +00:00
alexpeshkoff
f4cd5a154f
Changed name to security2.fdb
2005-02-24 12:24:38 +00:00
dimitr
e3a9d86662
Simplify code paths a bit.
2005-02-21 13:18:49 +00:00
dimitr
37f3266bb0
Simplify code paths a bit.
2005-02-21 12:48:39 +00:00
robocop
5490b60181
Do not make a new branch if the code is the same but with a different variable.
2005-02-14 05:54:45 +00:00
robocop
541e3054ac
Put common code into functions.
2005-02-14 05:51:25 +00:00
asfernandes
42efc07a3a
NULL literals should have DSC_nullable in dsc_flags
2005-02-13 00:37:18 +00:00
arnobrinkman
a15c361120
1) Make ordinal working on select list which contain an asterisk
...
Examples:
SELECT * FROM RDB$RELATIONS ORDER BY 9
SELECT R.* FROM RDB$RELATIONS R ORDER BY 9
2) Add ORDER BY <alias> and GROUP BY <alias>
Examples:
SELECT RDB$RELATION_ID AS ID
FROM RDB$RELATIONS ORDER BY ID
SELECT
RDB$RELATION_NAME AS ID,
Count(*)
FROM
RDB$RELATION_FIELDS
GROUP BY
ID
2005-02-10 21:14:52 +00:00
asfernandes
97e2c81aff
Fixed SF #1116809 - Incorrect data type conversion
2005-02-06 13:15:22 +00:00
dimitr
d7e75a86b1
Fixed some metadata issues with views.
2005-02-05 12:48:33 +00:00
robocop
d39363ad73
Regenerate parse.cpp after Nickolay's changes.
2005-01-30 02:14:26 +00:00
robocop
816f54be2e
Misc.
2005-01-30 02:13:23 +00:00
hvlad
9b809e2193
Allow EXECUTE BLOCK to work with blob parameters.
2005-01-26 14:52:38 +00:00
arnobrinkman
c8785f03cd
fix derived table issue with derived column list and columnname from sub-select
2005-01-24 23:02:08 +00:00
dimitr
3f3eb11ba4
Return relation alias via API. SQLDA stays untouched for the time being.
2005-01-23 15:53:36 +00:00
arnobrinkman
8147470e7f
Fix alias usage in explicit PLAN
2005-01-21 14:09:02 +00:00
robocop
e567a0791c
Regenerate parse.cpp after Dmitry's changes.
2005-01-21 08:54:07 +00:00
dimitr
84e104e7b7
More compatibility modes for the parser.
2005-01-20 12:33:54 +00:00
dimitr
8d6e675b75
Always zero blr/message memory before usage.
...
Otherwise a reused message may cause garbage to be copied to XDR
which in turn may cause asynchronous exceptions in the asymmetric protocol code.
2005-01-18 15:04:07 +00:00
robocop
72e54eb27d
First attempt to fix SF Bug #512975 .
...
Please let me know if the problem disappears or there's a bad side effect that I didn't detect.
2005-01-17 09:16:40 +00:00
robocop
6eabbaf772
Fix irrelevant SF Bug #512975 .
...
CR-LF => blank. No trimming is made.
2005-01-12 05:09:42 +00:00
robocop
8b573aa0da
Change the license with Mark's permission.
2005-01-12 04:22:32 +00:00
robocop
7e306b86a8
Misc.
2005-01-12 04:20:17 +00:00
arnobrinkman
383926e046
Fix another check constraint and ambigous field problem.
...
Are there any more options left?, sigh: tablename, NEW, OLD, TEMP
2005-01-06 18:17:10 +00:00
arnobrinkman
0dca8c738d
Fix sub-select in derived table issue (context already in used error)
2005-01-06 13:14:38 +00:00
dimitr
3d826cc06c
Minor corrections.
2005-01-05 12:15:51 +00:00
dimitr
f2d2ad2542
1. Allowed implicit NOT NULL declaration for a PRIMARY KEY constraint (per SQL-99)
...
2. Minor fixes and cleanup
2005-01-04 13:17:16 +00:00
robocop
b5317a413a
Totally misc.
2004-12-31 10:41:43 +00:00
alexpeshkoff
dd2f879401
dsql_set_cursor_name cleanup
2004-12-26 15:32:49 +00:00
robocop
d65307b497
Style.
2004-12-24 08:52:39 +00:00
robocop
24742873ad
fb_string.h is moved to common/classes.
2004-12-17 05:41:47 +00:00
arnobrinkman
ff9070d8e5
remove optimization in DSQL, this is now done in the optimizer (the place where it belongs)
2004-12-15 20:15:20 +00:00
robocop
3efa4c7648
Misc.
2004-12-12 02:03:58 +00:00
robocop
86fe265ff1
Put some variables in context.
2004-12-12 01:58:43 +00:00
robocop
5291dc6544
Restore checks for length. We don't need tokens bigger than 1KB.
2004-12-12 01:57:19 +00:00
robocop
430ad70ed4
Misc.
2004-12-11 00:08:55 +00:00
alexpeshkoff
387e678cca
applied Clumplet* classes to dpb where possible
2004-12-09 19:19:47 +00:00
robocop
0dd1aced53
Misc.
2004-12-09 02:50:47 +00:00
robocop
5e8ed6c4d3
Prevent buffer overrun.
2004-12-08 05:59:42 +00:00
robocop
950216de4e
Misc.
2004-12-08 05:58:41 +00:00
alexpeshkoff
637e5ed95a
use new classes to preparse 'create database' statement
2004-12-05 11:57:25 +00:00
alexpeshkoff
991d78d626
a bit better approach to setup dsql thread context
2004-12-05 11:51:47 +00:00
dimitr
ab51816298
Fixed issues spotted by Claudio.
2004-12-03 07:07:15 +00:00
dimitr
882b8defe4
Restored datatype.
2004-12-03 06:49:01 +00:00
robocop
3ca7f5afb7
Misc.
2004-12-03 06:24:18 +00:00
dimitr
28ed1df100
1. Parser cleanup
...
2. SQL-99 synonyms for generators DDL/DML
3. Implemented REVOKE ADMIN OPTION FROM
2004-12-02 22:53:51 +00:00
arnobrinkman
8a079ca3d7
Fix check constraint bug with "ambigous fieldname" error
2004-12-02 18:57:01 +00:00
robocop
af6a16107a
Misc.
2004-11-30 06:18:39 +00:00
robocop
fd2bcc04e4
frb_sys_flag becomes fb_sys_flag
2004-11-29 09:09:42 +00:00
robocop
de3c7670dd
Misc.
2004-11-29 09:08:02 +00:00
arnobrinkman
664dddc827
bugfix: Making a derived field on a mapping failed when the mapping was mapping to another derived field.
...
Make also a derived field from a derived field node.
2004-11-28 22:38:45 +00:00
robocop
45d4cd976a
Silence warning.
2004-11-28 03:44:24 +00:00
dimitr
36e0f1449a
Fixed bug introduced some time ago by myself.
2004-11-27 21:19:58 +00:00
skidder
0850b03c7a
Regenerate parse.cpp
2004-11-25 01:38:04 +00:00
skidder
e823628754
Dmitry asked me to add support for calling UDF routines ignoring return arguments so did I
2004-11-25 00:47:20 +00:00
dimitr
05dd909c6c
Fixed my SEGV, thanks to Adriano.
2004-11-24 13:33:05 +00:00
robocop
d6535351a2
Misc: style.
2004-11-24 09:22:07 +00:00
robocop
ab23729381
Misc.
2004-11-23 04:05:49 +00:00
skidder
98381ac8a1
Regenerate parse.cpp
2004-11-22 20:53:14 +00:00
skidder
c40eb08a27
Remove CURRENT_DATABASE keyword
2004-11-22 20:50:34 +00:00
arnobrinkman
d599c8f945
Fix bug in aggregate-functions which burried EXISTS/SINGULAR predicate.
...
See bug #1063254
2004-11-17 22:01:44 +00:00
dimitr
d40cf9430d
Some corrections and cleanup.
2004-11-17 18:27:48 +00:00
dimitr
c1cab92cab
1) Reworked error reporting
...
2) Allowed positioned updates for explicit cursors
3) Fixed some possible server crashes
2004-11-17 14:50:33 +00:00
skidder
1e26d6c80d
CURRENT_DATABASE implementation. Established identity may also be used for isc_info_db_id datum
2004-11-11 05:37:52 +00:00
robocop
628b088d2c
Treat string literals and string constants with more respect.
2004-11-10 04:26:45 +00:00
robocop
71fd4ed0a7
Const and use symbolic constants instead of harcoded 20.
2004-11-08 03:15:07 +00:00
robocop
a7498d91e6
Treat string literals and string constants with more respect.
2004-11-08 03:14:17 +00:00
robocop
5a33aeef91
Misc: extra semicolons do not help. :-)
2004-11-07 10:38:13 +00:00
arnobrinkman
4d2a4f6925
bugfix: still were some ambiguous queries possible.
...
fe: select rdb$database.rdb$relation_id from rdb$database, rdb$database
2004-11-02 23:07:09 +00:00
dimitr
7506b3568c
Changed non-standard WEEKDAY and YEARDAY extentions to become non-reserved words.
2004-10-27 12:14:54 +00:00
aafemt
ded2e9ee92
Variable shadowing
2004-10-27 10:14:30 +00:00
dimitr
42c929cfb1
Ported UPDATE/DELETE extentions from Yaffil.
2004-10-27 09:33:08 +00:00
robocop
8cb395414e
Misc.
2004-10-26 07:21:47 +00:00
robocop
34543622a4
a) Error reporting functions must not overflow their buffers.
...
b) Use ISC_STATUS type when dealing with status vector.
2004-10-18 07:19:36 +00:00
robocop
9ac850c3aa
Totally misc.
2004-10-18 06:48:33 +00:00
dimitr
a9370eefa8
Replaced "==" with a SQL-99 compliant distinct predicate.
2004-10-17 08:47:15 +00:00
dimitr
cd413c9b8a
Added the equivalence operator. The major index optimizations are done.
...
Notes:
1) Some optimizations will follow after more deep analysis.
2) The syntax "==" is not yet agreed on. I'd prefer it to be changed.
2004-10-14 18:54:54 +00:00
dimitr
a9772bd861
Restored the old code layout, as suggested by Claudio.
2004-10-14 16:35:13 +00:00
dimitr
a1bbad7ccf
The entire RSE handling in the parser is slightly rewritten. New join syntax is introduced.
...
Notes:
1) Some features are disabled (via isc_wish_list) yet due to their incomplete implementation.
2) The parser may become unstable or cause regressions. It will be fixed ASAP.
2004-10-13 18:37:53 +00:00
robocop
a8da598248
Redundant casts.
2004-10-08 11:08:42 +00:00
robocop
2928b139ae
1.- Style.
...
2.- The const_cast is no longer needed.
2004-10-07 08:28:47 +00:00
robocop
ba48b1d1c9
Style
2004-10-07 08:27:45 +00:00
robocop
ed17cfafbf
Style:
...
if<space>(
for<space>(
switch<space>(
while<space>(
2004-10-04 08:15:00 +00:00
dimitr
9efeab8808
Fixed AV in the parser.
2004-10-03 11:39:03 +00:00
robocop
31ba754981
After talking to Ann, decided to disable several items:
...
- obsolete items like WAL and JOURNAL (cleaned in the past)
- crud from attempts never finished like the shared cache manager for Classic
- DSQL nodes that aren't used. This allowed freeing some keywords.
The functionality was disabled by commenting the code. No code has been deleted.
2004-10-03 04:49:04 +00:00
robocop
cf0f2761a4
parse.cpp needed to be rebuilt after Alex' changes
2004-09-27 03:42:58 +00:00
robocop
20b38f1aad
Got rid of spurious cast.
2004-09-26 11:23:32 +00:00
robocop
600a01d64e
Make compiler happy... nobody wants a cursor name with length 2^31
2004-09-26 07:41:39 +00:00
robocop
592d47e77e
Replace custom name_length() by the general one that uses the same logic
2004-09-26 07:26:42 +00:00
robocop
840bf14b36
If we are using namespace fb_utils, it doesn't make sense to prefix functions in it with fb_ again. Mechanical replacement made one by one (no bulk automatic changes).
2004-09-26 01:49:52 +00:00
robocop
7dcb66a250
When you call va_start, call va_end, don't assume it does nothing because some platforms don't have code for it!
...
Changed some sprintf to SNPRINTF. Work in progress WRT wrapper for this function.
2004-09-25 10:28:09 +00:00
robocop
6ae1fd9918
Style
2004-09-24 06:48:24 +00:00
dimitr
5a67d3a091
Fixed yet another issue with make.cpp noticed by Dimitry Sibiryakov.
2004-09-22 06:54:17 +00:00
dimitr
39a718784b
Fixed another my bug, spotted by Arno.
2004-09-13 19:36:30 +00:00
dimitr
72e9a4923b
Correction.
2004-09-12 10:48:55 +00:00
robocop
cc8beb54e5
Get rid of some reinterpret_cast's.
2004-09-09 09:24:42 +00:00
robocop
33c2a7eb17
Totally misc: typo in comment
2004-09-09 08:58:13 +00:00
robocop
8c2bc04f38
Style
2004-09-09 08:56:33 +00:00
alexpeshkoff
5ba5453a30
fixed AV in DECLARE FILTER
2004-09-08 12:01:30 +00:00
dimitr
0256d424e1
Allowed UNION DISTINCT equal to just UNION (see chapter 7.13 of the SQL spec).
2004-09-06 19:17:16 +00:00
alexpeshkoff
9ff8b3b687
fixed problems, noticed by Claudio
2004-09-06 08:14:34 +00:00
dimitr
f32272d076
Fixed a bug I introduced today.
2004-09-05 21:50:54 +00:00
dimitr
e58ba55a55
Solved issues with literal NULLs in the CASE-based functions.
...
To be reviewed by Arno.
2004-09-05 07:23:42 +00:00
dimitr
f45dc04f6a
Allowed EXTRACT(<part> FROM NULL) to return NULL of SMALLINT/INT (depending on <part>) datatype.
2004-09-04 18:43:11 +00:00
dimitr
cf89467735
Let's describe literal NULLs correctly in expressions.
2004-09-04 18:24:12 +00:00
dimitr
6ad51cf6e8
Fixed my mistake in the plan output. Noticed by Arno.
2004-09-02 07:10:34 +00:00
alexpeshkoff
c3db4aaa97
added (and used in sources) template to change and restore default pool
2004-08-30 18:11:08 +00:00
robocop
092dd6297e
BY SCALAR_ARRAY param can't be used as a return param.
...
There's no support for that. It's only input param to the UDF.
2004-08-27 09:24:39 +00:00
robocop
1994913da7
Bring DSQL up to date with UDF capabilities in the engine.
...
Introduce SCALAR_ARRAY token.
2004-08-27 04:52:32 +00:00
arnobrinkman
ce97981b91
Fix unneeded error-message with simple CASE and NULL (NULL as text in SQL)
...
CASE NULL WHEN NULL THEN 1 END
2004-08-22 00:53:04 +00:00
robocop
27d4dbd374
Not an aesthetical achievement, but prevent us from making mistakes in the same place again. Put variables in their minimal scope.
2004-08-21 09:20:06 +00:00
dimitr
d667e17db5
Fixed uninitialized variable usage reported by Valgrind.
2004-08-20 02:08:39 +00:00
dimitr
e5ef9b2782
Ported IIF function from Yaffil.
...
Implemented as yet another abbrevation for CASE.
Added as a non-reserved keyword.
2004-08-19 11:19:48 +00:00
skidder
a294b74cb8
Fix one more possible random crash noted by Valgrind. This particular problem is old and happens when UNION DSQL construct is used. Fix is the result of consultations with Arno Brinkman
2004-08-18 18:33:21 +00:00
skidder
1460ac61db
Fix one more serious issue noted by Valgrind. Views could be randomly using blr_singleton when defined
2004-08-18 00:02:24 +00:00
dimitr
c1407600f5
Allowed NULL to be a syntactical value.
2004-08-17 13:25:34 +00:00
dimitr
56e0b95ca5
Allow the DDL engine to understand literal NULLs in computed fields.
2004-08-17 11:19:41 +00:00
alexpeshkoff
31039a254e
next step preparing to allocate auto objects memory from appropriate pool
2004-08-16 12:28:43 +00:00
skidder
22f14639a0
Do not send stack and memory dumps to remote client when isc_dsql_sql_info and isc_dsql_prepare functions are used. Again, issue is pinpointed by Valgrind
2004-08-13 02:32:30 +00:00
dimitr
9dc9adf017
Fixed implementations of concatenation and SUBSTRING function.
...
Used new messages for error reporting. Changes should be fully SQLDA-compatible.
2004-08-02 19:49:12 +00:00
dimitr
d6151c2d8f
Fixed minor issue.
2004-08-01 18:01:54 +00:00
skidder
b980507ad2
Valgrind support
2004-07-30 22:38:08 +00:00
skidder
5494b34caa
size_t is more correct type for container sizes and indices
2004-07-16 23:06:31 +00:00
brodsom
4d2979865a
Correction (noticed by Claudio)
2004-07-02 07:26:18 +00:00
skidder
43e98c3f52
Fix crash when changing data type for field and specify wrong type or domain name
2004-07-01 00:46:10 +00:00
arnobrinkman
8cde3d2aee
1) Fix FB2 problem with union-auto-cast and losing field-name as column-name
...
2) Fix FB2 problem with WITH CHECK OPTION
2004-06-29 22:15:10 +00:00
robocop
320fe78b42
Misc changes
2004-06-21 02:48:47 +00:00
arnobrinkman
ffd4d94124
Fix problems with NUMERIC and DECIMAL datatypes in MAKE_desc_from_list() for Dialect 1.
...
This affects CASE, COALESCE and the auto-union cast.
2004-06-19 21:29:50 +00:00
brodsom
d2b64735c6
Removing wrong extra ;
2004-06-13 23:47:02 +00:00
skidder
6460544617
Fix 64-bit build
2004-06-13 23:27:29 +00:00
alexpeshkoff
1591a54e5e
Thread cleanup:
...
1. Added macros to declare thread entrypoints
2. THD_mutex_* functions use Firebird::Mutex
3. Thread local storage use fb_tls.h
2004-06-08 13:41:08 +00:00
robocop
1332d98618
Literal strings should be treated as const char*
2004-06-05 09:37:18 +00:00
kkuznetsov
a594b29c57
Fixed some more different prototypes of the same functions
2004-06-04 14:36:45 +00:00
kkuznetsov
0d0c58387d
Fix linkage errors caused by different declaration of extern "c" functions
2004-06-03 10:08:31 +00:00
robocop
f8f159dc9e
Changing some variables that have a trailing underscore to allow conflict with C++ keywords or engine structs.
2004-05-31 02:34:35 +00:00
robocop
5b282ef4b5
Misc: keep comment in sync with code
2004-05-29 04:36:09 +00:00
alexpeshkoff
9a34ce553c
make bool (isEmpty/hasData) checks for string and stack safe
2004-05-27 16:26:52 +00:00
brodsom
a799e5f44b
-Use C++ struct declaration style.
2004-05-24 17:22:35 +00:00
skidder
ed7234e65e
Fix problem with UDF argument mapping to parameters reported by Torsten Grundke
2004-05-24 12:09:12 +00:00
brodsom
75a0483d75
-Comment some common.h unused macros
...
-Replace VA_START macro with va_start function (it was already some places where it is not used)
2004-05-23 23:28:06 +00:00
brodsom
06f7148859
-Replace *_thread_data macros with inline functions
2004-05-22 14:23:10 +00:00
robocop
441817bd82
1.- Misc changes
...
2.- Style
3.- Recover dsc_ttype in dsc after Blas' cleanup as a synonym for dsc_sub_type in text types
2004-05-21 06:16:17 +00:00
brodsom
964219523c
Move SQL_DIALECT constants from ibase.h to sqlda_pub.h and use it in gpre.h instead the full ibase
2004-05-20 00:58:55 +00:00
brodsom
908ceca06c
Update
2004-05-19 20:12:44 +00:00
brodsom
68cb86b274
- Remove *_THREAD_DATA definitions from thd.h, are unneeded and conflicts with definitions in providers/services main headers (which need to use undef).
...
- Use different names for each service/provider *_THREAD_DATA macros.
2004-05-19 18:14:29 +00:00
brodsom
98d9fe6e63
Macro cleaning
2004-05-18 16:32:07 +00:00
brodsom
b76a60e8b7
Move THREAD_ functions from thd.h to thread_proto.h (and fix unix build)
2004-05-17 22:30:09 +00:00
brodsom
ee34db7e20
Macro cleaning (THREAD_*)
2004-05-15 00:58:46 +00:00
brodsom
6ec150ac00
-Avoid gcc -pedantic warnings
2004-05-14 19:20:01 +00:00
brodsom
141fe5aae7
-Removing c++ comments from public headers
2004-05-14 16:23:41 +00:00
brodsom
996b40079f
-Avoid shadow warning
2004-05-13 00:33:17 +00:00
brodsom
8699aec9c9
-Avoid shadow warning
2004-05-12 19:23:17 +00:00
brodsom
b30a0b8799
Macro cleaning
2004-05-12 00:02:37 +00:00
robocop
802f244ec1
Misc changes
2004-05-09 05:48:33 +00:00
brodsom
62a4b10c22
-Replace define with const
...
-Remove ifdef cplusplus from internal code
-Remove unused macros
2004-05-06 18:09:24 +00:00
eku
7009af2b13
Fixed compiler error: cannot convert dsql_nod**' to
dsql_nod*' in initialization
2004-05-06 05:46:24 +00:00
brodsom
b335e32d88
Obsolete compiler message
2004-05-05 13:59:10 +00:00
skidder
45fc09ce60
Fix bugs in my commit found by Claudio
2004-05-05 04:20:39 +00:00
skidder
16cc322505
Regenerate parse.cpp
2004-05-03 04:29:23 +00:00
skidder
e9f8ef102e
Fixes needed to make GCC 3.4 happy
2004-05-03 04:25:06 +00:00
skidder
8a4cb13eb2
Care about quirks of Windows platform
2004-05-03 01:53:24 +00:00
skidder
43cb0d1ce4
Y-Valve handle translation layer
2004-05-02 23:06:37 +00:00
skidder
c73aa5ee46
Please Claudio and do not return descriptors for VARCHAR(32767) for UDFs
2004-05-01 08:33:35 +00:00
brodsom
a549091c94
- Split sqlda.h to avoid duplicated definitions between ibase.h and sqlda.h
...
- Replace define for constants
- Remove contants.h where not used.
2004-04-30 22:47:16 +00:00
brodsom
2c0ab256cf
Removing duplicated definitions between
...
ibase.h and blob_filter.h
ibase.h and constants.h
2004-04-29 17:48:39 +00:00
brodsom
2f4865a195
Replace defines for constants
2004-04-29 14:51:02 +00:00
brodsom
e0854daa99
Removing ib_stdio.h
2004-04-28 22:00:03 +00:00
skidder
29481ae5e2
Make CSTRING map to VARCHAR, not CHAR in DSQL layer
2004-04-28 18:36:50 +00:00
alexpeshkoff
e362fdbef3
fixed number problems after lls to Stack conversion
2004-04-21 14:48:23 +00:00
alexpeshkoff
e0ce53cbec
fixed number problems after lls to Stack conversion
2004-04-21 14:23:46 +00:00
alexpeshkoff
045e9dc8ec
1. removed any mentions of blk_pool() from engine (and method itself)
...
2. replaced 'struct lls' with 'template Stack'
2004-04-18 14:22:27 +00:00
robocop
6d4c0ab908
Three changes to isql:
...
Fix isql bug #910430 .
Add SET HEADING ON/OFF option
Add -M2 command-line option to send output of statistics and plans to the same file than the rest of the output.
Those items do not appear when using HELP SET inside isql or with isql -? from the command line.
2004-04-11 04:04:18 +00:00
robocop
59b235cea3
Small corrections
2004-04-10 00:25:22 +00:00
hvlad
7ab6e4c2f4
Corrects an error at DDL generation when the total size of all generated BLR exceeds 64K, but each slice does not exceed 64K. For ex, procedure sources is 55K and generated BLR is 12K.
...
Note: this fix is safe because jrd8_ddl (DYN_ddl\DYN_execute) do not use parameter 'length', wrongly declared as USHORT
2004-04-09 08:03:59 +00:00
arnobrinkman
fe1e74c504
Fix wrong mapping for Count(*) in having clause when used with IN, ANY, SOME, ALL
2004-04-02 23:20:29 +00:00
skidder
b80d4eb99d
Fix counting of line numbers in DSQL parser when multi-line literals and identifiers are used
2004-04-02 03:24:25 +00:00
alexpeshkoff
2934843020
fixed memory leak in execute statement
2004-03-31 17:27:08 +00:00
robocop
1824343930
Cleanup.
...
Fixed a linking error with MSVC6, too.
2004-03-28 09:10:30 +00:00
skidder
f26d84f76b
1. POSIX build libraries export only public API. 2. Unify exports for PROD_BUILD and DEV_BUILD. 3. Support for context memory pools. 4. Memory manager has lower memory overhead exceptionally on 64 bit targets
2004-03-25 23:12:50 +00:00
arnobrinkman
dd64bc0749
Improved derived table support.
...
When using derived tables inside sub-selects it should be able to reference to higher contexts.
2004-03-21 02:10:39 +00:00
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
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