8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 20:43:04 +01:00
Commit Graph

39490 Commits

Author SHA1 Message Date
hvlad
8a3450efbb Backport fix for bug CORE-4134 : Race condition when auto-sweep is started 2013-07-08 14:29:26 +00:00
dimitr
0c708df016 CORE-3704: Add new context variables to the SYSTEM namespace. 2013-07-08 08:26:08 +00:00
firebirds
9dc40ceb31 nightly update 2013-07-08 01:39:30 +00:00
dimitr
123415bc5e Unfortunately, the only correct way to reference stream internals (e.g. get field descriptors) in node comparison routines is either to compare nodes along with their corresponding CSBs or to compare only nodes and handle streams outside. I'm favoring the latter approach. And no, remapping is a wrong solution either (trunk is to be reworked again in this regard, sigh). This fixes CORE-4139 at the cost of removed CAST vs FIELD comparison trick. Let's see whether somebody is going to be affected. 2013-07-07 15:11:06 +00:00
asfernandes
0e7302f7e9 Fixed CORE-4136 - Sharp-S character treated incorrectly in UNICODE_CI_AI collation. 2013-07-07 02:02:47 +00:00
firebirds
bc8b540216 nightly update 2013-07-04 01:50:06 +00:00
dimitr
0338b6c768 Better protection against AST delivery during detaching. Second attempt combined with cleanup. 2013-07-03 13:20:55 +00:00
dimitr
bc73e05d43 Better protection against AST delivery during detaching. 2013-07-03 09:23:37 +00:00
dimitr
93eb387be3 Backported CORE-3874: Computed column appears in non-existant rows of left join. 2013-07-03 06:33:39 +00:00
asfernandes
272b47f6ed Fixed CORE-4137 - Wrong metadata output script generate by isql / CHARACTER SETISO8859_1 sintaxe error. 2013-07-03 02:12:05 +00:00
firebirds
a78722a489 nightly update 2013-07-01 01:03:46 +00:00
hvlad
7d2c37d9e0 Backported from trunk: prevent starting a lot of threads when forced shutdown is in progress. 2013-06-30 19:13:37 +00:00
firebirds
39d257fd66 nightly update 2013-06-30 00:47:38 +00:00
dimitr
cfe3f24da2 Fixed CORE-4118: Expression index may be not used for derived fields or view fields. Also, generalized the old trick with CAST in expression indices. 2013-06-29 13:47:00 +00:00
firebirds
f84c16a50e nightly update 2013-06-28 01:16:38 +00:00
asfernandes
6dedc68d41 Rework on CORE-4125 to work with ICU 3.0. 2013-06-26 02:15:24 +00:00
firebirds
22d12617bb nightly update 2013-06-26 00:27:44 +00:00
asfernandes
fc1d01fe8c Backported fix for CORE-4225 - Using COLLATE UNICODE_CI_AI in WHERE clause (not indexed) is extremely slow. 2013-06-25 15:35:29 +00:00
firebirds
d8b748ef57 nightly update 2013-06-21 00:49:45 +00:00
asfernandes
91b8169c15 Fixed CORE-2912 - Exception when upper casing string with lowercase y trema (code 0xFF in ISO8859_1) 2013-06-20 15:43:45 +00:00
dimitr
0e5d964350 Attempted to please the GCC compiler. If this doesn't help, another solution is to be backported from trunk. 2013-06-20 07:41:21 +00:00
dimitr
73a39d54a4 Fixed CORE-4127: Server crashes instead of reporting the error "key size exceeds implementation restriction". 2013-06-20 06:11:00 +00:00
dimitr
4ae620ecbd The first fix for CORE-4123: Firebird crash when executing an stored procedure called by a trigger that converts string to upper.
Adriano, please review. BTW, I'm far not sure that other TextType members (those calling texttype_fn_* routines from INTL) cannot silently return "special" return codes either.
2013-06-19 16:18:06 +00:00
dimitr
300f130198 Attempted to fix a possible crash due to the wrong request pointer remaining in tdbb after sub-request execution. While being there, cleaned up some redundant code. 2013-06-19 06:12:56 +00:00
alexpeshkoff
75a9613543 Backported fix for CORE-4121: Segfault when engine is shutting down inside blob get/put function invoked from UDF 2013-06-18 13:17:08 +00:00
firebirds
59acf19150 nightly update 2013-06-16 01:01:12 +00:00
hvlad
68a53fe236 Make code a bit more robust 2013-06-15 19:02:21 +00:00
hvlad
7118059b72 Fixed memory leak followed by AV (introduced at fix for CORE-3989).
Dmitry, please review.
2013-06-15 18:28:26 +00:00
dimitr
ae68898f20 Fixed CORE-4117: Ignoring computed by field as Exception parameter. 2013-06-15 05:57:48 +00:00
firebirds
4118cd514a nightly update 2013-06-08 01:03:30 +00:00
alexpeshkoff
fb08ee8458 Backported fix for CORE-3942: Restore from gbak backup using service doesn't report an error 2013-06-07 10:41:38 +00:00
dimitr
81c4023396 Since we (unexpectedly for me) seem to support BLR > 64KB, I'm committing a workaround for CORE-4113 (EXECUTE BLOCK prepare fails). The debug info does not support longish BLR, so don't pretend to find something there beyond the 64KB limit. If someone can think of a better solution, please jump in. 2013-06-07 09:51:13 +00:00
firebirds
220ada8b80 nightly update 2013-06-01 00:46:58 +00:00
dimitr
92bc35d9b9 Fixed CORE-4107: Wrong resultset (subquery + derived table + union). 2013-05-29 12:13:55 +00:00
firebirds
477b4504b8 nightly update 2013-05-24 01:20:45 +00:00
alexpeshkoff
272ac70d33 CORE-3993: disable AST delivery at final steps of attachemnt destruction 2013-05-23 11:55:18 +00:00
dimitr
525a178114 Fixed CORE-4102: Bad optimization of OR predicates applied to unions. 2013-05-23 08:25:56 +00:00
firebirds
8a395f40f7 nightly update 2013-05-23 00:48:47 +00:00
hvlad
c2cec20b39 Fixed bug CORE-4101 : firebird.log contains "I/O error during "write" operation" records but database works correctly 2013-05-22 16:13:32 +00:00
firebirds
5cd192a41f nightly update 2013-05-21 00:42:51 +00:00
robocop
ef3e3e7610 Misc. 2013-05-20 03:26:59 +00:00
firebirds
93885d746b nightly update 2013-05-16 00:40:15 +00:00
hvlad
276b7ecd0a Fixed bug CORE-4100 : Automatic sweep could be run when there is no need for it 2013-05-15 14:29:55 +00:00
firebirds
d4f4c8f4f6 nightly update 2013-05-10 00:43:19 +00:00
asfernandes
929de3d26e Backported fix for CORE-4083 - Full outer join in derived table with coalesce (iif). 2013-05-09 01:17:24 +00:00
firebirds
0f1a59a24d nightly update 2013-05-08 02:13:41 +00:00
hvlad
bffe15166b Fixed bug CORE-4094 : Wrong parameters order in trace output 2013-05-07 11:36:26 +00:00
firebirds
bff7e341ff nightly update 2013-04-30 01:21:46 +00:00
dimitr
42f91780ad Misc. 2013-04-29 10:04:59 +00:00
firebirds
61f5c6b0fc nightly update 2013-04-29 01:03:55 +00:00
dimitr
f97adb9bf6 Corrected the target buffer length. 2013-04-28 14:10:47 +00:00
dimitr
d27648637b Simple fix for CORE-4093: Server crashes while converting an overscaled numeric to a string. It assumes the resulting string being limited in length by the scale (value <= 128). A more generic solution (e.g. disallow overflowing scales) would be appreciated for the trunk. 2013-04-28 13:33:56 +00:00
firebirds
6e99e299e8 nightly update 2013-04-18 01:12:06 +00:00
alexpeshkoff
046c1c6cb0 Fixes related with CORE-3993 2013-04-17 08:04:45 +00:00
firebirds
5eed40e9f3 nightly update 2013-04-16 01:16:25 +00:00
alexpeshkoff
7ee2887e84 Postfix for CORE-3935 and CORE-3993: avoid opening same database file twice 2013-04-15 16:54:58 +00:00
firebirds
ac5fafb405 nightly update 2013-03-30 01:41:31 +00:00
dimitr
524cd87874 Fixed the error I introduced recently. 2013-03-29 12:11:56 +00:00
firebirds
0444916f76 nightly update 2013-03-25 03:25:19 +00:00
dimitr
5e93b6ba7e Fixed CORE-1604 (Error at database creation by user with non-ascii name) and CORE-3243 (CURRENT_USER and MON$USER don't work properly). 2013-03-24 15:36:18 +00:00
firebirds
bae4a9a7a0 nightly update 2013-03-24 02:26:15 +00:00
asfernandes
c2683380c8 Improvement CORE-4047 - Increase number of input parameters for External Functions (UDFs) to 15. 2013-03-23 02:14:04 +00:00
firebirds
3b2a9ac236 nightly update 2013-03-18 04:16:46 +00:00
dimitr
cd869f43d6 Fixed CORE-4036: Bugcheck or database corruption when attempting to store long incompressible data into a table. 2013-03-17 14:40:00 +00:00
dimitr
0ff58447cf Support for MSVC10. 2013-03-17 12:26:21 +00:00
dimitr
71ceac0bbb Backported the refactored database shutdown from trunk. As a side effect, it also resolves CORE-4045: Server crashes during database shutdown. 2013-03-17 12:24:27 +00:00
firebirds
3ac3ae884e nightly update 2013-03-13 03:15:37 +00:00
alexpeshkoff
7e8a1d161a New fix for CORE-3995: Slight problem with GBAK parameter checking 2013-03-12 11:44:06 +00:00
firebirds
41305ec16b nightly update 2013-03-12 02:01:15 +00:00
alexpeshkoff
eb1b48090e Bacported fix for CORE-3360: update ... returning ... raises -551 (no perm to update) for a column present only in the returning clause 2013-03-11 15:44:58 +00:00
firebirds
26b130eb9a nightly update 2013-03-11 11:25:20 +00:00
hvlad
b811b82d35 Restore previous code for Win64 platform as it missed __control87_2() routine. 2013-03-10 08:35:04 +00:00
firebirds
863d4b6e4d nightly update 2013-03-08 02:48:42 +00:00
hvlad
0ade3f4cc9 Fixed the way floating point exceptions are masked.
This is quick and incomplete solution for the CORE-4043 (FBCLIENT.DLL forces Delphi to ignore EZeroDivide exceptions). 
Complete solution should be MT-safe and sooner of all requires FP-exception handling code in the engine.
2013-03-07 12:11:12 +00:00
dimitr
29d893141e Fixed Windows build. Thanks to Dmitry Kovalenko. 2013-03-07 05:32:13 +00:00
firebirds
69b424c989 nightly update 2013-03-07 01:26:56 +00:00
alexpeshkoff
af11f55815 Fixed CORE-4058 2013-03-06 11:33:08 +00:00
firebirds
bdfaa69ba6 nightly update 2013-03-05 03:08:27 +00:00
firebirds
cac6ee66d3 nightly update 2013-03-02 02:02:11 +00:00
alexpeshkoff
4cdebb8d50 Postfix for CORE-3990 2013-03-01 13:50:59 +00:00
alexpeshkoff
d9145c849a Backported fix for CORE-3990: Fix broken EDIT in isql 2013-03-01 11:56:38 +00:00
firebirds
8477039f3e nightly update 2013-03-01 02:47:43 +00:00
alexpeshkoff
ef9448f7eb Postfix for CORE-3908: Engine leaks memory and crashes when lot of autonomous transactions have been started and finished 2013-02-28 16:24:31 +00:00
firebirds
63653e72f1 nightly update 2013-02-28 00:44:27 +00:00
alexpeshkoff
2a29d5f10d Backported fix for CORE-3908: Engine leaks memory and crashes when lot of autonomous transactions have been started and finished 2013-02-27 14:49:45 +00:00
firebirds
2d04eade67 nightly update 2013-02-27 02:30:28 +00:00
alexpeshkoff
87ab3bf41f Fixed CORE-4055: Dialect is not set in internal connections to security database 2013-02-26 11:58:15 +00:00
hvlad
1ceba373f2 Fixed bug CORE-4054 : role not passed on external execute stmt 2013-02-26 11:13:20 +00:00
firebirds
bcf4c19e39 nightly update 2013-02-26 01:23:02 +00:00
hvlad
f05d1bb095 Ported fix for bug CORE-4051 : Memory leak when sorting big records 2013-02-25 10:05:23 +00:00
firebirds
08a441603c nightly update 2013-02-15 01:21:40 +00:00
robocop
a947d21f7c Misc. 2013-02-14 04:29:13 +00:00
firebirds
7046c6858b nightly update 2013-01-31 08:17:23 +00:00
dimitr
9a9cfb31df Fixed the recently introduced deadlock. This is the simplest possible patch, other solutions are possible. 2013-01-30 11:23:17 +00:00
firebirds
71017c810b nightly update 2013-01-26 08:38:50 +00:00
dimitr
a9358db6c7 Slightly optimized fetches for internal EXECUTE STATEMENT. 2013-01-25 12:37:45 +00:00
firebirds
94233be876 nightly update 2013-01-25 09:51:21 +00:00
dimitr
56924b0a2d Slightly improved the condition for the Adriano's backward compatibility workaround, this optimizes METD_move() into a plain memcpy() for strings with an explicitly declared charset. 2013-01-24 16:47:03 +00:00
dimitr
ad604b8862 This trivial optimization saves a few percents of performance when reading/writing DBKEYs from/to compatible local variables. 2013-01-24 09:29:46 +00:00
dimitr
216ef35338 Backported dbkey/recver optimization. 2013-01-24 07:10:29 +00:00
firebirds
084005c7e0 nightly update 2013-01-19 03:55:29 +00:00
dimitr
38ae66edb0 A little bit more defensive approach to the dbb handle validation. It also avoids the second handle lookup. 2013-01-17 16:32:48 +00:00
firebirds
4851c402b1 nightly update 2013-01-17 03:56:03 +00:00
dimitr
e0068e7fcd Simplest fix for CORE-4038: Broken optimization for the stored dbkeys. 2013-01-16 17:02:23 +00:00
firebirds
c68dc7ea6d nightly update 2013-01-11 03:52:10 +00:00
firebirds
a1b7a1f584 nightly update 2013-01-09 04:24:05 +00:00
paul_reeves
d948dfffde Fix for CORE-4020
Instantiate cpl applet methods with LPARAM instead of long.
2013-01-08 13:47:47 +00:00
firebirds
a24d30f926 nightly update 2012-12-30 03:35:20 +00:00
alexpeshkoff
e713fdb4c5 Backported fix for CORE-3932: can create but cant delete user with username containing double quotes with gsec 2012-12-29 11:16:34 +00:00
firebirds
016c34fbc4 nightly update 2012-12-29 03:35:35 +00:00
alexpeshkoff
9215878883 Use same context for ASTs and async API calls 2012-12-28 16:19:29 +00:00
alexpeshkoff
4d5faef00b Once I've got NULL object here, could not reproduce, but fix is trivial 2012-12-28 16:16:34 +00:00
alexpeshkoff
198dd90a22 Avoid use of already dropped attachment in system transaction 2012-12-28 12:40:56 +00:00
alexpeshkoff
506021360e Validating attachment by proving its existence in the attachment list makes no sense after validation in handle's array 2012-12-28 10:31:45 +00:00
alexpeshkoff
b8a04dae7e Explicit NULL check makes no sense when validating against array of known handles (pointers) 2012-12-28 10:22:30 +00:00
firebirds
524948c027 nightly update 2012-12-28 03:37:44 +00:00
alexpeshkoff
c98ccc6f4c Fixed CORE-3944: SuperClassic crashes when running script that delete attachments and move database to offline 2012-12-27 13:26:31 +00:00
firebirds
562620dd7d nightly update 2012-12-27 04:05:51 +00:00
dimitr
95047dd88f Easy fix for the crash reported by Alex privately. More generic solution is desirable. 2012-12-26 10:27:30 +00:00
firebirds
4a9dffec26 nightly update 2012-12-25 03:34:40 +00:00
dimitr
654b668434 Favor quick search over quick add/remove. This is more important in our code, especially in the debug build. 2012-12-24 14:26:02 +00:00
firebirds
72ede8a0cc nightly update 2012-12-24 03:34:01 +00:00
dimitr
88635bfc4a Corrected the check_database() logic. 2012-12-23 06:52:07 +00:00
firebirds
5f12ef1d9b nightly update 2012-12-23 03:37:43 +00:00
dimitr
8ef43e01dc Moved the statement cancellation logic from the transaction level to the attachment level. It reuses the already existing ATT_cancel_raise handling and simplifies the code.
Also, encapsulated the shutdown/cancellation signaling code.
2012-12-22 16:56:36 +00:00
dimitr
4d8273fe11 Fixed the missing dbb flags, especially DBB_security_db. 2012-12-22 15:02:18 +00:00
dimitr
e432c56660 We don't need the new flags for these tasks. 2012-12-22 12:55:34 +00:00
dimitr
916828a19e Fixed the crash that appears after PublicHandle became an inherited class (thus containing vtable). 2012-12-22 12:30:13 +00:00
firebirds
ae650b596e nightly update 2012-12-21 03:51:39 +00:00
alexpeshkoff
4c3978ea22 Backported fix for CORE-3995: Slight problem with GBAK parameter checking 2012-12-20 15:28:25 +00:00
firebirds
af103214d5 nightly update 2012-12-19 09:24:18 +00:00
dimitr
72fd24bf66 Slightly refactored the error handling. 2012-12-18 19:35:51 +00:00
dimitr
b2a6cadd84 Attempted to fix the user savepoint logic I've accidentally broken in a recent commit. 2012-12-18 13:30:16 +00:00
dimitr
1a70da9ff9 Fixed the Windows build. 2012-12-18 11:20:56 +00:00
firebirds
7435a2de81 nightly update 2012-12-15 04:00:52 +00:00
alexpeshkoff
74938ad13e Fixed CORE-3935 and CORE-3993 2012-12-14 17:45:38 +00:00
firebirds
b37cf969a9 nightly update 2012-12-14 04:05:50 +00:00
dimitr
7a6b9f8966 1) Encapsulated the remaining external looper calls inside a SEH block. It allows to catch async exceptions coming while result set is being fetched. No performance penalty has been noticed.
2) Slightly refactored the looper call chain to avoid code duplication.
3) Fixed CORE-4010: Fetch cannot be subsequently interrupted via DELETE FROM MON$STATEMENTS.
2012-12-13 18:00:35 +00:00
firebirds
b422a1736e nightly update 2012-12-13 04:08:58 +00:00
dimitr
79c9da1c05 Misc. 2012-12-12 08:31:00 +00:00
dimitr
9dbf5dce69 Yet another complementary bugfix for CORE-4004. 2012-12-12 07:46:09 +00:00
firebirds
a37e04ec4a nightly update 2012-12-12 04:09:08 +00:00
dimitr
c848fc69a8 Avoid garbage to be written to the shadow's header page. It does not really hurt, but anyway. 2012-12-10 05:10:45 +00:00
firebirds
5a1ce71dc7 nightly update 2012-12-07 04:14:40 +00:00
dimitr
ae48c19a87 Another bunch of changes for CORE-4004: Sometimes long-running operations cannot be interrupted by asynchronous shutdown / cancellation requests. The looper nodes should never ignore req_unwind and transform it to something else.
Review and testing would be appreciated, especially in regard to EXE_assignment.
2012-12-06 11:43:48 +00:00
firebirds
5ae85cea08 nightly update 2012-12-05 04:06:14 +00:00
hvlad
543b50779f Alternative fix for CORE-3034 (Bugcheсk 300 (can't find shared latch)), see also CORE-4004 (Sometimes long-running operations cannot be interrupted by asynchronous shutdown / cancellation requests) 2012-12-04 10:28:01 +00:00
firebirds
9062a43c89 nightly update 2012-12-04 04:47:17 +00:00
dimitr
65178c062a Yet another complementary bugfix for CORE-4004 that avoids an index root page remaining locked after cooperative GC has been terminated by user. 2012-12-03 11:04:34 +00:00
dimitr
8d7cce247d Complementary patch to the prior one. It avoids unnecessary operations (system table lookups) if we don't need index or constraint names to be reported in the error message. 2012-12-03 10:47:11 +00:00