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

55947 Commits

Author SHA1 Message Date
Adriano dos Santos Fernandes
96f32c95f6 Fix #7167 - Incorrect transliteration of field names in constraint violation errors. 2022-04-07 14:33:23 -03:00
Adriano dos Santos Fernandes
c7f5662d94 Correction, thanks to Dmitry. 2022-04-07 09:01:57 -03:00
firebirds
1e2493a252 increment build number 2022-04-07 00:06:55 +00:00
Adriano dos Santos Fernandes
63f54f109f Misc. 2022-04-06 14:47:47 -03:00
Ilya Eremin
8bd4a7abca Allow threads which are running purge_attachment() to start new transactions during DB shutdown because it's needed for ON DISCONNECT triggers
Autonomous transactions which are used inside ON DISCONNECT triggers are allowed as well.
2022-04-06 19:44:51 +03:00
Ilya Eremin
1eedc88a15 Comment 2022-04-06 19:44:51 +03:00
Ilya Eremin
ddec610a08 Print ON DISCONNECT trigger exceptions (including cancelling) to trace if log_errors = true 2022-04-06 19:44:51 +03:00
Ilya Eremin
fc85f89be4 Print ON DISCONNECT trigger name with a stack trace to firebird.log when it is cancelled by a timeout
It may help to determine where the trigger is hanging.
2022-04-06 19:44:51 +03:00
Ilya Eremin
040db0e05a Add OnDisconnectTriggerTimeout parameter to firebird.conf 2022-04-06 19:44:51 +03:00
Ilya Eremin
d64868cdcd Execute ON DISCONNECT triggers in the following cases:
1. During database shutdown (gfix -shut full -force 0).
2. An attachment is deleted from MON$ATTACHMENTS by another attachment.
3. An attachment is closed by idle timeout.

ON DISCONNECT triggers will still not be executed during server shutdown.
2022-04-06 19:44:51 +03:00
Adriano dos Santos Fernandes
446d4fa392 Fix problem found by Dmitry where node->getDesc is called after parts of csb is released. 2022-04-06 12:35:51 -03:00
firebirds
10cbd12c0e increment build number 2022-04-05 00:06:33 +00:00
Dmitry Yemanov
6cb8eacb9a Fixed index navigation in inner joins. 2022-04-04 10:44:53 +03:00
Dmitry Yemanov
bb77ba2644 Code simplification 2022-04-04 10:44:53 +03:00
firebirds
2d0ffb75f3 increment build number 2022-04-04 00:06:43 +00:00
Vlad Khorsun
0a4e1f2229 Fixed #7161 : Update zlib to 1.2.12 2022-04-03 15:05:29 +03:00
Dmitry Yemanov
d2adb6e3d2 This should fix crashes surfaced by my yesterday's commit 2022-04-03 10:13:02 +03:00
firebirds
2e8bfcb1b0 increment build number 2022-04-03 00:06:43 +00:00
Dmitry Yemanov
4e813e0e37 Fixed regression in outer joins 2022-04-02 14:48:37 +03:00
Dmitry Yemanov
747d2ed2c2 Fixed #7164: Multi-way hash/merge joins are impossible for expression-based keys 2022-04-02 11:40:16 +03:00
Dmitry Yemanov
f179eb489e Make plans consistent between debug and release builds 2022-04-02 11:40:16 +03:00
Dmitry Yemanov
f023ba9957 Enable merge joins. Attempted a cost-based choice between hash and merge joins. 2022-04-02 11:40:16 +03:00
firebirds
e4a7614aeb increment build number 2022-04-02 00:07:13 +00:00
Dmitry Yemanov
5c93044184 Fixed cardinality for full outer joins 2022-04-01 15:54:36 +03:00
Dmitry Yemanov
aa13dff750 Invert flags order to match generateRetrieval() 2022-04-01 15:54:36 +03:00
Dmitry Yemanov
7ee34987dc Next round of optimizer refactoring. Make sure booleans delivered to the inner RSEs and utilized there are not evaluated multiple times. 2022-04-01 15:54:36 +03:00
firebirds
8e23bb7c13 increment build number 2022-04-01 00:07:31 +00:00
Dmitry Yemanov
12fc195093 Code simplification 2022-03-31 19:29:12 +03:00
Dmitry Yemanov
f57eb26b62 This should fix regressions caused by my prior commit(s). 2022-03-31 19:29:12 +03:00
Dmitry Yemanov
d662da7593 Misc debugging improvements 2022-03-31 19:29:12 +03:00
firebirds
e62e4c2e0d increment build number 2022-03-31 00:06:42 +00:00
Dmitry Yemanov
ae1c85f8f8 Minor refactoring. Reworked fix for #3218 (Optimizer fails applying stream-local predicates before merging), now it covers both cases mentioned in the ticket. 2022-03-30 10:56:15 +03:00
Dmitry Yemanov
343c1f97df Adjustments for cardinality estimations. Minor optimizer refactoring. 2022-03-30 10:56:15 +03:00
Dmitry Yemanov
c234434894 Initial estimation of rivers cardinality. Adjustments will follow. 2022-03-30 10:56:15 +03:00
firebirds
6708318ba1 increment build number 2022-03-30 00:06:45 +00:00
AlexPeshkoff
6209413992 Reworked fix for #7160: Missing checkout in trace manager when performing user mapping may cause server hang 2022-03-29 16:50:50 +03:00
AlexPeshkoff
902bbaec8d Attempt to fix #7160: Missing checkout in trace manager when performing user mapping may cause server hang 2022-03-29 15:18:49 +03:00
firebirds
96abd02998 increment build number 2022-03-28 00:06:27 +00:00
Vlad Khorsun
59403d7fef Adjust debug messages to avoid false failures of some fbt tests. 2022-03-27 14:16:16 +03:00
firebirds
348bb77fc0 increment build number 2022-03-25 00:07:26 +00:00
AlexPeshkoff
dd17c5585c Use correct way to count updated records in management plugin 2022-03-24 20:36:16 +03:00
Adriano dos Santos Fernandes
6214b12028 Fix issue reported by Pavel Zotov:
recreate table test (id int primary key)!
commit!

execute block as
begin
  execute statement 'drop table test';
  in autonomous transaction do
    execute statement ( 'insert into test values ( ? ) ') (1);
end!

commit!

Output on 5.0.0.426 (built: 18.03.2022):
========
========
(no errors, expected)

Output on 5.0.0.435 (built: 19.03.2022):
========
Statement failed, SQLSTATE = 42000
unsuccessful metadata update
-object TABLE "TEST" is in use
========
2022-03-24 08:55:07 -03:00
firebirds
5251444ef3 increment build number 2022-03-20 00:05:57 +00:00
Adriano dos Santos Fernandes
35da8f4553 Remove deprecated GitHub Actions Windows 2016 environment. 2022-03-19 15:04:02 -03:00
asfernandes
78ef42d38a Update tzdata to version 2022a. 2022-03-19 14:33:29 -03:00
firebirds
463605e093 increment build number 2022-03-19 00:06:41 +00:00
Adriano dos Santos Fernandes
652ebe49ff PoolAllocator: fix VS 2017 build. 2022-03-18 08:17:35 -03:00
Adriano dos Santos Fernandes
4c9fffd9b9 Compiled statement cache. 2022-03-18 08:17:35 -03:00
Adriano dos Santos Fernandes
0ecf1d71d5 Misc. 2022-03-18 08:17:35 -03:00
Adriano dos Santos Fernandes
c677ac8b5b Added copy constructor to SortedObjectsArray. 2022-03-18 08:17:35 -03:00