8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-27 18:03:04 +01:00
Commit Graph

481 Commits

Author SHA1 Message Date
Dmitry Yemanov
fedcbbb534 Attempt to fix CORE-5392: BUCHECK 179(decompression overran buffer) or unexpected lock conflict may happen during record version backout. 2016-12-05 14:50:21 +03:00
b5c665e618 Missing break - thanks to Adriano 2016-10-10 17:04:07 +03:00
hvlad
d5ec668334 Let UPDATE and DELETE statements ignore records already deleted in the same statement (but still visible because of stable cursor).
It fixed bugs
CORE-5322 : Cascade deletion in self-referencing table could raise "no current record for fetch operation" error), and
CORE-5142 : Error "no current record to fetch" if some record is to be deleted both by the statement itself and by some trigger fired during statement execution
2016-09-07 22:45:17 +03:00
7bf7455cb3 Fixed CORE-5248: Improve consistency in GRANT syntax between roles and privileges according to SQL standard 2016-08-24 18:47:39 +03:00
Adriano dos Santos Fernandes
e5b1a902c7 Misc. 2016-08-23 22:23:33 -03:00
hvlad
97aead186a Avoid hangup in SS when error happens at system attachment initialization time 2016-08-17 15:45:30 +03:00
hvlad
90b35adb7c Attempt to make self-referencing foreign keys with ON UPDATE CASCADE work correctly.
It also fixes a bug CORE-5305 : CASCADE UPDATE fails for self-referencing FK
2016-08-10 13:58:21 +03:00
7ad99b795e Added support for system privileges 2016-05-31 20:07:08 +03:00
Dmitry Yemanov
f2d0b64ba2 Misc adjustments after CORE-5232 and more encapsulation for the Lock
class.
2016-05-10 10:44:30 +03:00
Dmitry Yemanov
174c252e0c Major refactoring of savepoints. Beware of possible regressions. 2016-05-06 20:16:14 +03:00
Dmitry Yemanov
34399c1bf4 Bugfix CORE-5222: SELECT WITH LOCK may raise unexpected update conflict
errors under concurrent load.
2016-04-30 17:12:01 +03:00
Dmitry Yemanov
f9c3f81cb9 CORE-5182: Inconsistent effects of subsequent statement execution if
failing during record refetch.
2016-04-04 09:45:28 +03:00
83845251c5 Added VIO prefix as requested 2016-03-29 11:52:25 +02:00
hvlad
9ae426a757 Please MSVC14:
-add space before XXXFORMAT macros to not confuse it with user-defined literals

-use existing snprintf

This should fix part of the issues at CORE-5099 and CORE-5120
2016-03-17 12:33:26 +02:00
aafemt
27395a0831 Savepoints refactoring that fixes CORE-4701, CORE-4424 and CORE-4483 2016-03-02 15:33:16 +00:00
asfernandes
6259b1b1e0 Misc. 2016-02-15 02:53:24 +00:00
hvlad
6af5a2f894 Simplest fix for bug CORE-5110 : False PK\FK violation could be reported when attachment used isc_dpb_no_garbage_collect flag 2016-02-12 13:13:11 +00:00
dimitr
dc7aad88ed 1) Slightly refactored recheduling and checkout logic.
2) Re-enabled checkouts in PIO routines, this resolves CORE-4179. Windows build may be broken, please validate.
3) Implemented faster reaction on asynchronous cancellation/shutdown requests.
4) Avoided locking dbb_sync in AST. This change also solves races during massive attachment shutdown.
2015-11-29 15:12:31 +00:00
dimitr
212faade87 Simplified the locking logic and fixed races during record backout. 2015-11-02 11:46:43 +00:00
dimitr
4e4d8002e5 CORE-4965: Extend the transaction ID space beyond 2^32 transactions. Initially developed in the v2.5 custom branch, then reworked and now merged into v3.0. 2015-10-19 13:32:02 +00:00
asfernandes
9fbee6b719 Misc. 2015-10-13 02:22:57 +00:00
alexpeshkoff
139331c7e3 Enhanced memory leaks search - changed FB_NEW to FB_NEW_POOL,
plain new to FB_NEW, making allocated with it blocks tagged with file/line.
Make related code slightly better readable.
2015-10-12 14:26:00 +00:00
alexpeshkoff
bcf2c0eb10 Implemented CORE-4955: Define a new option for DROP SHADOW command to leave the shadow file in the filesystem 2015-10-09 13:30:45 +00:00
dimitr
c0c083e423 Fixed setting RDB$PACKAGE_BODY_SOURCE to NULL. 2015-10-06 12:10:44 +00:00
dimitr
2a1d6e246a Use simpler solution for CORE-4928. Let's not open new gates for direct table modifications. 2015-10-06 10:58:56 +00:00
asfernandes
9769499937 Fixed CORE-4950 - Statistics for any system index can not be updated/recalculated. 2015-10-02 17:30:09 +00:00
asfernandes
ecdc6ea8c6 Misc. 2015-09-27 20:02:43 +00:00
robocop
a1349d3b44 Misc. 2015-09-22 06:00:39 +00:00
hvlad
f7e248ca63 Improvement CORE-4935 : Increase performance of backout of dead record version (or undo of just created primary record version) when backversions chain is too long
Improvement CORE-4936 : Reduce internal contention in background garbage collector
Other small improvements: 
- garbage collector\sweep now skip record header if transaction is below OIT - it allows to reduce number of page fetches
- missed points to gather RECORD_FRAGMENT_READS and RECORD_BACKVERSION_READS statistics
2015-09-16 21:16:13 +00:00
asfernandes
10d3c38b68 Fixed CORE-4928 - It is not possible to save the connection information in the ON CONNECT trigger, if the connection is created by the gbak. 2015-09-10 17:06:47 +00:00
dimitr
606d459a63 Totally misc. 2015-08-18 10:00:52 +00:00
hvlad
4751f3a33c Wrong check, thanks to Claudio 2015-07-03 08:05:18 +00:00
asfernandes
ae30b29011 Misc. 2015-06-29 01:02:52 +00:00
hvlad
2e78b5a7e0 Feature CORE-4707 : Implement ability to validate tables and indices online 2015-06-19 12:07:41 +00:00
dimitr
8744b80766 1) Reverted a more complex refetch logic introduced recently to its original state.
2) Protected against an undo record being used in VIO modify/erase/writelock routines.
3) Avoided false deadlocks in read-committed transactions.
This should cure CORE-4369, CORE-4561 and CORE-4618 at once.
2015-06-02 10:43:16 +00:00
asfernandes
adf1fd737d Misc. 2015-05-02 03:54:03 +00:00
alexpeshkoff
164e2cbcba Check for source nullifying a bit more accurate 2015-04-27 13:15:44 +00:00
alexpeshkoff
852c4366b2 Make it possible for DBA only to NULLify sources 2015-04-24 17:47:29 +00:00
alexpeshkoff
512f0d944e Write-protect one more system relation 2015-04-20 11:42:17 +00:00
alexpeshkoff
0afc4289de Postfix for CORE-4731 2015-04-16 11:58:19 +00:00
alexpeshkoff
18c902de46 Fixed CORE-4715: Restore of shadowed database fails using -k ("restore without shadow") switch 2015-04-15 14:01:24 +00:00
alexpeshkoff
d42402d0b9 Fixed CORE-4731: Prohibit an ability to issue DML or DDL statements on RDB$ tables 2015-04-15 13:19:18 +00:00
asfernandes
2828aee4ab Fixed CORE-4733 - Command "Alter table <T> alter TYPE <C> <DOMAIN_WITH_NOT_NULL" does not verifies data in column <C> and makes incorrect assignments in <C> to ZERO / JULIAN_DATE / ASCII(0) for types INT, TIMESTAMP and VARCHAR. 2015-04-05 02:24:40 +00:00
asfernandes
b50abdb04c Optimize check of column NULLs when changing field or domain to NOT NULL. 2015-04-05 02:24:26 +00:00
alexpeshkoff
f96129ceef Fixes assertion in DFW, caused by uninitialized descriptor 2015-04-01 15:10:06 +00:00
asfernandes
336456d140 Misc. 2015-03-28 00:36:04 +00:00
alexpeshkoff
16768b177d Be more consistent putting IStatus into fast inline wrapper. Also some syntax sugar as suggested by Dmitry 2015-03-27 17:51:19 +00:00
robocop
7873b1f983 Misc. 2015-03-24 01:30:20 +00:00
alexpeshkoff
6c5f9b77fe Cleanup - avoid automatic type conversion in FbLocalStatus as suggested by Claudio 2015-03-23 11:06:51 +00:00
alexpeshkoff
c4c9daf132 Avoid limits on size of status vector in engine. Ensure that status is always clean on entry to interface methods. 2015-03-20 18:02:30 +00:00