robocop
e0badaed04
Solve problem reported by Bill Oliver in fb-devel: we should complain when someone tries to sort on more than 255 items.
2006-09-30 09:10:28 +00:00
asfernandes
f2e24565f0
Allow only one of WHEN MATCHED and WHEN NOT MATCHED in MERGE as the SQL spec
2006-09-17 01:41:24 +00:00
asfernandes
9b5ae679c3
Fixed problem with REPLACE and WHEN blocks
2006-09-16 15:53:51 +00:00
asfernandes
bafe7ee53c
Misc
2006-09-15 01:54:50 +00:00
asfernandes
19c8da717c
Be more simple as suggested by Claudio
2006-09-14 11:44:11 +00:00
asfernandes
a40b7b8ae5
MERGE statement
2006-09-14 02:05:32 +00:00
asfernandes
f47711602e
Fix the problem with CAST and parameters reported by Maycon Ferraça in fb-devel
2006-09-13 12:59:53 +00:00
dimitr
daa96c44e9
Fixed GCC-based builds.
2006-09-07 11:46:43 +00:00
asfernandes
9d4e6c7199
Misc
2006-09-06 02:43:37 +00:00
robocop
c9e311f45d
Misc.
2006-09-05 08:17:26 +00:00
asfernandes
55ec30965d
REPLACE statement
2006-09-03 01:09:23 +00:00
aafemt
c662ea7d9e
Warnings
2006-08-17 12:08:49 +00:00
robocop
471d052e82
Misc.
2006-08-13 06:46:16 +00:00
asfernandes
e538061c38
Implementation of CREATE/DROP COLLATION and ISQL show/extraction of collations
2006-08-07 16:39:21 +00:00
asfernandes
df38d56bb5
Misc
2006-08-06 18:03:22 +00:00
hvlad
7d1693ae39
Corrected logic of removing recursive members from joins in recursive CTE
2006-08-05 21:56:04 +00:00
dimitr
3231829cf8
Ported fix for CORE-855 to HEAD.
2006-08-04 04:32:27 +00:00
asfernandes
9fc1ccbba5
Misc
2006-08-02 01:22:11 +00:00
hvlad
b20aa92714
Common table expressions implementation
2006-08-01 20:37:58 +00:00
robocop
bcf2cb8701
1.- COALESCE/CASE and VIA (subqueries) allowed breach in computed field checks (no array and no blob).
...
2.- Misc: since gbak allows not only to backup metadata only but to restore metadata only (even from a full backup), changed the help message.
2006-07-30 02:59:29 +00:00
asfernandes
ea0435247a
Misc
2006-07-18 02:45:35 +00:00
dimitr
d5b27fdb17
1) Fixed CORE-831.
...
2) Solved CORE-779 (partially intermixed with another changes that will be committed tomorrow).
2006-07-17 12:44:18 +00:00
hvlad
fac53c8177
Added blr_src_info. Error call stack now contains not only
...
procedures\triggers names but line\column numbers also.
Thanks to Eugeney Putilin for idea
2006-07-04 14:44:43 +00:00
dimitr
78c23ca592
Some preparation for RETURNING in UPDATE/DELETE.
...
To be completed in v3.0.
2006-05-31 18:02:34 +00:00
dimitr
006d5871b0
Restored my previous solution. The final decision is that NOT IN cannot be index-optimized reliably.
2006-05-24 13:19:33 +00:00
alexpeshkoff
b056a118b5
1. Avoid use of STL
...
2. Reworked exceptions to make status_exception always hold correct status vector
3. Avoid use of RTTI
2006-05-19 15:17:02 +00:00
robocop
1cd8eb20da
Cope with old compilers.
2006-05-18 06:26:15 +00:00
dimitr
e3646a03d2
Fixed the regression reported by Adriano.
2006-05-17 04:33:44 +00:00
asfernandes
abc1a41b6d
Misc
2006-05-17 02:43:12 +00:00
dimitr
4976c7d29d
Committed the correct UPDATE behaviour. Disabled so far.
2006-05-16 09:09:18 +00:00
dimitr
8b45562f81
The DSQL code of the LIST function. Unstable yet.
2006-04-24 17:24:26 +00:00
hvlad
5f105d2154
Make input parameters of EXECUTE BLOCK statement nullable
2006-03-29 09:41:48 +00:00
arnobrinkman
ce6eeb13c7
Fix node compare function for derived fields.
...
Fixes field test-item #1449377 .
2006-03-14 10:57:11 +00:00
asfernandes
32f770b760
Fix incorrect malformed string error, reported by Richard Wesley
2006-03-10 00:08:44 +00:00
dimitr
958b1fea85
Fixed bug in RETURNING INTO code.
2006-03-07 14:42:19 +00:00
dimitr
5ac952b661
There's no need to transform NOT ANY to ALL, as NOT ANY effectively uses indices.
2006-02-15 13:35:53 +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
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
dimitr
75fade8b0a
Ported solution for SF #1371274 from Yaffil + minor cleanup.
2005-12-12 17:27:10 +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
arnobrinkman
ee9ac954ee
Fix column-name problem with UNION and derived fields.
...
Problem found by Volker Rehn.
2005-11-28 23:06:53 +00:00
arnobrinkman
d1e0291152
Add missing nodes to sub-select detection
2005-11-26 16:15:47 +00:00
arnobrinkman
a381385af0
Fix problem with sub-queries/derived tables in the HAVING clause
2005-11-08 23:49:50 +00:00
dimitr
5e8af7b048
Implemented RECREATE TRIGGER.
2005-10-29 09:15:37 +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
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
dimitr
e285db7acf
Fixed the issue with zero-initialized status vector during prepare.
2005-09-14 19:06:28 +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
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
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
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
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
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
e2a664a6a2
Fix and simplify PLAN alias lookup
2005-07-26 11:54:37 +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
1a3218625d
Added DSQL support for ROLLBACK RETAIN.
2005-07-20 10:05:57 +00:00
arnobrinkman
21c839b45a
Send annoying unemployed code out of the door
2005-07-13 20:07:13 +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
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
3d93cdf69c
Fix possible problems with larger columns sizes noted by Claudio
2005-06-10 02:03:08 +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
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
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
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
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
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
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
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
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