8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 13:23:02 +01:00
Commit Graph

82 Commits

Author SHA1 Message Date
dimitr
b9178d4df1 Small refactoring. 2014-12-21 19:16:51 +00:00
asfernandes
3a6c1093fb Fixed CORE-4574 - Incorrect result in subquery with aggregate. 2014-10-10 16:00:54 +00:00
alexpeshkoff
532181a7f9 Renamed as suggested by Nickolay and Dmitry 2014-07-28 13:01:10 +00:00
alexpeshkoff
4bdc2a3e19 Replaced macro FB_ALIGN with function fbAlign, minor related cleanup 2014-07-24 06:41:38 +00:00
skidder
7c743fc291 Fix build warnings 2014-07-17 18:48:46 +00:00
dimitr
153b06b2fd Minor structure changes. 2014-06-13 16:28:22 +00:00
asfernandes
3f8de25fcc Feature CORE-4403 - Allow referencing cursors as record variables in PSQL.
Improvement CORE-4434 - Extend the use of colon prefix for read/assignment OLD/NEW fields and assignment to variables.
2014-05-19 19:06:47 +00:00
robocop
cadd8accc4 Implemented STEP for generators/sequences and took the opportunity to make the blrOp param const. Please rebuild the databases. 2014-04-09 02:28:38 +00:00
asfernandes
c5ed1e0334 Misc. 2014-03-16 18:41:42 +00:00
dimitr
383b4840b5 Refactored the conjuncts handling code in the optimizer to be simpler and avoid duplication. As a side effect, this also fixes CORE-4365: Equality predicate distribution does not work for some complex queries. Cleanup up some legacy checks that I consider unnecessary. 2014-03-15 18:00:33 +00:00
asfernandes
d7550f6468 Fixed CORE-4357 - Parsing of recursive query returns error "Column does not belong to referenced table" for source that HAS such column. Relates to CORE-4322. 2014-03-06 16:20:24 +00:00
robocop
10a253d613 Make comparisons return plain int (PVS-Studio). 2014-02-25 06:20:09 +00:00
dimitr
e869780df7 Renamed a few methods for better readability. 2014-02-09 18:28:33 +00:00
dimitr
bd410d08aa Fixed refactoring errors that caused some optimizer regressions. Also, simplified code a little. 2014-02-09 15:58:33 +00:00
robocop
2810026363 Misc and warnings. 2013-12-29 00:35:50 +00:00
dimitr
4f094c7fd8 Removed the record size limit for aggregates/unions. 2013-08-21 09:14:09 +00:00
hvlad
01a6f1a6d0 Fixed bug CORE-4144 : Error "context already in use (BLR error)" when preparing a query with UNION 2013-07-22 08:29:01 +00:00
dimitr
9cc60617de Fixed regression appeared in test bugs.core_0965. 2013-07-16 05:07:57 +00:00
dimitr
e2d4568239 Fixed CORE-4102: Bad optimization of OR predicates applied to unions. 2013-05-23 08:27:15 +00:00
asfernandes
2b52e34f3e Fixed CORE-4084 - GROUP BY fails if subselect-column is involved. 2013-04-17 15:54:00 +00:00
dimitr
86f4b02ef3 1) Cleanup and renaming in the SCL code.
2) Reimplemented the USAGE privilege as a separate one.
3) Added USAGE permission checks for generators/sequences and exceptions.
4) Supported USAGE in GRANT/REVOKE for all object types.
5) Refactored SET GENERATOR and ALTER SEQUENCE as true DDL. blr_set_generator is supported only for backward compatibility, it's not generated by DSQL anymore.
6) Added START WITH clause for [RE]CREATE SEQUENCE and CREATE OR ALTER SEQUENCE.
7) Fixed a number of related errors.
2013-03-07 13:59:03 +00:00
dimitr
60d8b9fd37 Additional fixes for CORE-3981 (Sub-optimal predicate checking while selecting from a view) that also resolve the regression CORE-3986 (GSEC couldn't change user password after fix for CORE-3981). 2012-11-20 10:39:37 +00:00
dimitr
92e6b2e543 Fixed CORE-3967: subselect with reference to outer select fails. 2012-11-01 16:19:39 +00:00
asfernandes
e8b26fd5c7 Fixed assertion when subquery is used in group by. 2012-10-04 17:19:09 +00:00
asfernandes
d684e4a2f5 Fixed assert reported by Vlad more some related problem. 2012-09-24 01:40:44 +00:00
asfernandes
fd10a7eb22 Fixed CORE-3883 - Ambiguous field name in the trigger when it does a select from the table. 2012-07-26 16:20:09 +00:00
asfernandes
73e18ce5ea Correction - thanks to Claudio. 2012-05-06 22:39:30 +00:00
asfernandes
fd9324c5cf Fixed problems with plans introduced in old refactorings. 2012-05-04 17:01:06 +00:00
asfernandes
07747144f7 Unify DSQL/JRD sub-nodes. 2012-05-03 16:43:29 +00:00
asfernandes
a2b389f1db Getting rid of dsql_nod. 2012-04-25 01:42:47 +00:00
asfernandes
580172419b Misc. 2012-04-23 00:48:28 +00:00
robocop
70d5ebdfdf - Got rid of the fixed array that kept the stream count in the first element and 255 streams after it.
- Changed streams from UCHAR to ULONG as Dmitry wanted
- Got rid of some redundant flags to indicate BLR level
- Misc changes (for example, converted to test for DBB_read_only in Database to a function)
- BLR v6 is left commented (waiting for a better solution to appear, if any exists)
- This change is not going to raise the engine limits until a solution is found to express more than 255 streams in BLR.
2012-04-12 09:02:13 +00:00
asfernandes
38083d12dc Refactored nod_field_name, nod_var_name, nod_array and nod_collate. 2012-03-25 01:08:55 +00:00
alexpeshkoff
4e795f4047 Include platform definitions file common.h in firebird.h. Use OS-specific ThreadId instead artificial FB_THREAD_ID, avoiding unneeded casts in the code. This should fix BSD and MAC ports. 2012-03-01 08:55:43 +00:00
dimitr
bcd483d173 This should resolve CORE-3753. 2012-02-09 07:38:51 +00:00
robocop
21cd78a0fd Cleanup: unused functions, parameters & variables. 2012-01-24 03:37:43 +00:00
asfernandes
b0dfb22eeb Fixed CORE-3694 - internal Firebird consistency check in query with grouping by subquery+stored procedure+aggregate. 2011-12-08 15:13:28 +00:00
asfernandes
965bf3f159 Fixed the problem with windowed functions in recursive CTEs, reported by Frank Ingermann in fb-devel.
This fix is complementary to the one done in CORE-3683.
2011-12-04 18:36:26 +00:00
asfernandes
c627005a89 Feature CORE-3626 - Subfunctions in PSQL and EXECUTE BLOCK.
Tests at http://firebird.cvs.sourceforge.net/viewvc/firebird/fbtcs/GTCS/tests/FB_SQL_SUBFUNC_1.output.

Also did:
- Refactor to share more code/data between procedures and functions.
- Fixed some PSQL functions problems.
2011-10-16 20:36:07 +00:00
asfernandes
5ae632cf0b Feature CORE-1288 - Sub Procedures.
They're very simple for now. No access to parent variables nor to call neighbour procedures.

Tests at http://firebird.cvs.sourceforge.net/viewvc/firebird/fbtcs/GTCS/tests/FB_SQL_SUBPROC_1.output.
2011-10-02 22:11:41 +00:00
asfernandes
893701a5af Frontport fix for CORE-3489 - Blob transliteration may not happen inside the union. 2011-05-31 01:00:31 +00:00
robocop
82403a5621 Misc, style, etc. 2011-04-02 04:45:26 +00:00
dimitr
82b595ae7e Misc adjustments. 2011-03-10 08:13:02 +00:00
dimitr
89353af6e5 Fixed the porting mistake, thanks to Adriano. 2011-02-20 15:36:31 +00:00
dimitr
cc71f0835f Removed duplicated type declaration. 2011-02-20 15:34:08 +00:00
asfernandes
04d971ba3f Misc 2011-02-20 15:20:16 +00:00
dimitr
676b99ce16 Front ported the old fix for CORE-3283: BAD PLAN with using LEFT OUTER JOIN in SUBSELECT. 2011-02-20 14:43:46 +00:00
dimitr
e78cf74c83 Fixed CORE-3176: View with "subselect" column join table and not use index. 2011-02-20 13:23:36 +00:00
asfernandes
5573581488 Refactored nod_alias. 2011-02-17 14:25:56 +00:00
dimitr
4d2f09c8f0 Cleaned up the unused (since FB2) parameter. 2011-02-12 14:13:40 +00:00