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

516 Commits

Author SHA1 Message Date
alexpeshkoff
20e846369e Implemented CORE-3370: Resolve additional aspects of multiple security databases from services and cross-database requests POV (mapping names) 2014-04-04 15:57:18 +00:00
robocop
fc2e740044 Fix constness. 2014-04-02 02:32:42 +00:00
dimitr
3d9eb474f1 Moved the helper class to the public scope for reuse outside the optimizer. 2014-03-30 12:57:51 +00:00
robocop
daae978a9c Misc. 2014-03-26 19:10:08 +00:00
dimitr
98c9f00c2c Allowed conditional bitmap scans for the index navigation. 2014-03-25 14:43:14 +00:00
robocop
e4e6de7ebf Misc. 2014-03-21 23:03:56 +00:00
dimitr
6a028e3cbb Fixed a regression in my recent commit, thanks to Adriano. 2014-03-17 17:37:41 +00:00
asfernandes
2ba73f6fb2 Scope. 2014-03-16 18:46:57 +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
robocop
ae8f6d6b8f Misc. 2014-03-03 04:37:29 +00:00
dimitr
d91fd2ed8a Fixed CORE-4353: Sorting records are larger than really necessary. 2014-02-25 09:01:28 +00:00
dimitr
07192953e3 Fixed CORE-4344: Error "no current record for fetch operation" when table inner join procedure inner join table. 2014-02-19 10:19:00 +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
dimitr
91b6ad05ac Placed booleans closer to the retrieval for limited navigational scans. Hopefully, this shouldn't affect anything else. 2014-01-17 14:53:08 +00:00
asfernandes
0ec5daac05 Misc. 2014-01-06 00:51:37 +00:00
dimitr
15113ae2dd Resolved CORE-1482: Make optimizer to consider ORDER BY optimization when making decision about join order.
Also, improved (hopefully) cost calculation for navigational retrievals.
2014-01-05 19:40:07 +00:00
alexpeshkoff
64b4f89d43 Changed syntax of user definition operators according to discussion in devel
Added virtual table sec$user_attributes with parsed user's attributes
Implemented CORE-2004: Ability to alter user inactive/active
Implemented CORE-2063: Added CREATE OR ALTER USER operator
Implemented CORE-3931: Ability to set comment for the user
2013-12-17 14:20:25 +00:00
dimitr
99146542eb Fixed crashes or wrong results (empty result set) for inner joins and INTL columns. 2013-12-02 17:16:24 +00:00
dimitr
dfbc754180 Fixed CORE-4270: Error in case of subquery with windowed function + where <field> IN(select ...). 2013-11-18 15:33:44 +00:00
asfernandes
51b0d1aca4 Frontport fix for CORE-4244 - Problem with creation procedure which contain adding text in DOS864 charset. 2013-10-15 15:26:34 +00:00
dimitr
c1cbd97163 Increased the sort record size limit to 1MB. I've kept this limit due to the possible performance implications, but it can be extended/removed any time. 2013-08-21 09:11:57 +00:00
dimitr
6b5ee63711 Fixed the optimizer regression causing different from FB2 plans being generated + some cleanup. 2013-08-18 15:32:53 +00:00
dimitr
ee3b7cb14f Cleanup. 2013-08-05 15:58:15 +00:00
asfernandes
9e128655b2 Fixed CORE-4158 - LIKE with escape doesn't work. 2013-08-04 01:20:38 +00:00
dimitr
811558bd23 Removed incorrect assertion. 2013-07-15 16:51:51 +00:00
dimitr
837e11502d Restored (in the modified form) the code wrongly removed three years ago. This acts as a complimentary fix for CORE-4142. 2013-07-09 16:14:58 +00:00
dimitr
e5901e9651 Fixed CORE-4142: Server crashes while preparing a query with DISTINCT and ORDER BY. 2013-07-09 15:18:02 +00:00
asfernandes
b6a4d39596 Misc. 2013-07-06 23:11:13 +00:00
dimitr
fec38d76b2 Slightly refactored the optimizer regarding navigational walks. 2013-06-30 17:33:02 +00:00
dimitr
b3781ed537 Fixed the issue reported by Alex privately. 2013-06-25 17:46:13 +00:00
dimitr
040650b750 One more bugfix for full outer joins. 2013-04-30 15:27:51 +00:00
dimitr
6d7b9184cf Fixed CORE-4091 (Incorrect full join result with ROW_NUMBER() Function in CTE) and one part of CORE-4083 (full outer join in subrequest with coalesce). 2013-04-28 11:52:02 +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
alexpeshkoff
2a01e4bcf9 Implemented CORE-3861: Make it possible to encrypt database
Also some cleanups, the most important are:                                                                                                                   
- meaningful ctor on Jrd::Lock, helping to avoid code dup                                                                                                     
- avoid unneeded h-file dependencies, making boot build engine dependent
2012-05-31 16:53:42 +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
dimitr
fc2cf89375 1) Fixed the infinite loop in the optimizer.
2) Fixed the refactoring error causing a crash.
2012-04-09 05:11:50 +00:00
dimitr
1a45f24925 Fixed CORE-3798: fb server die when carry out the LEFT + INNER JOIN. This is a v3 only regression. 2012-03-25 17:21:28 +00:00
asfernandes
a0194aeaf3 Simplificate CastNode. There is no need for a format there. 2012-03-17 16:06:05 +00:00
dimitr
8080bb2100 Front-ported CORE-3553: Nested loop plan is chosen instead of the sort merge for joining independent streams using keys of different types. 2012-03-14 16:04:06 +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
alexpeshkoff
77d484a6da Fixed CORE-3736: WITH LOCK clause is allowed for users with read-only rights on some table, thus blocking others from updating this table 2012-01-19 15:11:32 +00:00
dimitr
82b595ae7e Misc adjustments. 2011-03-10 08:13:02 +00:00
dimitr
0063f01a22 Cleanup up the code no longer needed. 2011-02-26 09:38:33 +00:00
dimitr
cc71f0835f Removed duplicated type declaration. 2011-02-20 15:34:08 +00:00
dimitr
4d2f09c8f0 Cleaned up the unused (since FB2) parameter. 2011-02-12 14:13:40 +00:00
dimitr
a59dc809a0 Misc. 2011-02-12 08:59:55 +00:00
dimitr
bb1f7ad9a6 Implement CORE-3076: Better performance for (table.field = :param or :param = -1) in where clause. 2011-02-07 17:54:24 +00:00
asfernandes
7800060e22 Misc 2011-02-04 23:58:10 +00:00