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

36434 Commits

Author SHA1 Message Date
Roman Simakov
291a8585e0 Formatting trigger1 to make it more human readable. 2018-06-18 10:44:14 +03:00
firebirds
214681c4a5 increment build number 2018-06-16 00:03:11 +00:00
firebirds
11cb7bad64 increment build number 2018-06-15 00:03:04 +00:00
hvlad
48ebbfc1f6 Add braces 2018-06-14 09:32:35 +03:00
firebirds
c2fbf442b6 increment build number 2018-06-14 00:03:10 +00:00
hvlad
111a04675e Another fix for bug CORE-5436 : [FB3 SC] Server hangs (under load test) 2018-06-13 14:50:56 +03:00
firebirds
d4a7ea6b6c increment build number 2018-06-12 00:03:34 +00:00
hvlad
56397c2d43 Misc 2018-06-11 19:13:47 +03:00
hvlad
c48ebfb786 Fixed bug CORE-5843 : Wrong handling of failures of TRANSACTION START trigger 2018-06-11 19:09:15 +03:00
firebirds
4724a18534 increment build number 2018-06-11 00:03:09 +00:00
hvlad
1d7c907b6a CORE-5832 : Implement way to reset user session environment to its initial (default) state:
- ignore prepared 2PC transactions when check if session reset is allowed
- if there is current active user transaction - rollback it before session reset and start new transaction with same properties after reset
- add warning if current transaction changes any table before reset
2018-06-10 13:29:14 +03:00
firebirds
63a9b170b7 increment build number 2018-06-08 00:03:41 +00:00
firebirds
c17706b5a3 increment build number 2018-06-06 00:03:09 +00:00
Roman Simakov
ec94304f7c Fixed CORE-5840: Ignor of reference privilege. 2018-06-05 16:22:55 +03:00
firebirds
c7521b5c56 increment build number 2018-06-02 00:03:23 +00:00
Roman Simakov
09c1ccc256 Fixed CORE-5755: No error if the GRANT target object does not exist 2018-06-01 16:52:39 +03:00
hvlad
bbf8348817 Make ALTER SESSION RESET throws isc_ses_reset_err when active transaction(s) present in current connection.
New error code created: isc_ses_reset_err.
2018-06-01 14:17:26 +03:00
firebirds
a793d56375 increment build number 2018-05-31 00:03:08 +00:00
hvlad
4defdeac4a This should fix bug CORE-5837 : Inconsistent results when working with GLOBAL TEMPORARY TABLE ON COMMIT PRESERVE ROWS 2018-05-30 16:57:48 +03:00
hvlad
16f762bdbc Update VIO_DEBUG code - mostly added relation id. 2018-05-30 16:57:26 +03:00
hvlad
3e057e10ca Merge branch 'master' into read_consistency 2018-05-27 17:32:54 +03:00
hvlad
d681f5288f Reset external connection before put it into pool.
Update the documentation.
2018-05-27 12:24:47 +03:00
hvlad
2930edb9c0
Merge branch 'master' into ExternalConnectionsPool 2018-05-25 13:42:38 +03:00
hvlad
cf63ca2335 Disable pool debugging 2018-05-25 13:34:11 +03:00
firebirds
5dcd20d536 increment build number 2018-05-25 00:03:14 +00:00
firebirds
1ec830bc2f increment build number 2018-05-24 00:03:16 +00:00
hvlad
fe68255f62 According to Adriano's suggestions 2018-05-23 20:42:22 +03:00
Alexander Peshkov
aa6cb5d05f
Initial implementation for CORE-5808 (#160)
* Implemented CORE-5808
2018-05-23 17:16:04 +03:00
AlexPeshkoff
332334ab3d Fixed CORE-5824: Segmentation fault during install on Linux 2018-05-23 15:26:40 +03:00
hvlad
672a130e1a Feature CORE-5832 : Implement way to reset user session environment to its initial (default) state 2018-05-23 11:53:10 +03:00
firebirds
7101efb5e4 increment build number 2018-05-23 00:03:12 +00:00
Dmitry Yemanov
99b9f26cea Fixed inconsistency in request/transaction state after error 2018-05-22 20:08:32 +03:00
AlexPeshkoff
fe04d32a49 Related to CORE-5830 and auto pointers changes, suggested by Vlad 2018-05-22 19:34:34 +03:00
AlexPeshkoff
42d8dc1317 Fix for CORE-5830: Encryption Interface crashing Firebird process when working on big db file (6.7GB) 2018-05-22 17:32:16 +03:00
firebirds
b727d4e082 increment build number 2018-05-22 00:03:00 +00:00
firebirds
0403b48345 increment build number 2018-05-21 00:03:09 +00:00
hvlad
da10e5045e Introduced new system privilege MODIFY_EXT_CONN_POOL to manage pool properties.
Update the documentation.
2018-05-20 23:44:12 +03:00
Adriano dos Santos Fernandes
527c2a023d Remove unused field. 2018-05-20 16:48:53 -03:00
firebirds
0f5dca07b3 increment build number 2018-05-18 00:03:08 +00:00
firebirds
325ad94c0a increment build number 2018-05-16 00:03:10 +00:00
hvlad
e5ba540295 This should fix bug CORE-5702 : Firebird Handle Leak Windows 2018-05-15 10:26:02 +03:00
firebirds
ab22e4f7a2 increment build number 2018-05-15 00:03:07 +00:00
AlexPeshkoff
3acc93f51b Fixed some usage patterns of dec_fixed values - thanks to Adriano 2018-05-14 18:10:12 +03:00
firebirds
21f0705175 increment build number 2018-05-11 00:03:07 +00:00
firebirds
3f417021da increment build number 2018-05-10 00:03:01 +00:00
hvlad
e8d3881fd7 Fixed bug CORE-5819 : Attachment might not gone after it was DELETEd FROM MON$ATTACHMENTS 2018-05-09 12:57:14 +03:00
firebirds
1b49baad6b increment build number 2018-05-05 00:03:08 +00:00
firebirds
504455779b increment build number 2018-05-04 00:03:07 +00:00
firebirds
328d204ca2 increment build number 2018-05-01 00:02:56 +00:00
firebirds
1f423077d1 increment build number 2018-04-28 00:03:10 +00:00
hvlad
608105f679 Another addition to the my recent patch (AV related with EDS) 2018-04-27 16:43:44 +03:00
hvlad
363dbc7bde Addition to the my recent patch (AV related with EDS) 2018-04-27 16:28:22 +03:00
firebirds
146627254d increment build number 2018-04-27 00:03:11 +00:00
hvlad
fe0a74bfe6 Allows to correctly free JTransaction after bugcheck 2018-04-26 22:41:31 +03:00
hvlad
8e9e03c1aa Fixed AV's at EDS subsystem
- pure virtual call from Manager::shutdown()
- garbage m_jrdTran pointer at Transaction::detachFromJrdTran()

It could happen when InternalConnection was not destroyed within its bound Jrd::Attachment by some extra-ordinal reason (such as bugcheck).
2018-04-26 22:41:13 +03:00
firebirds
5541ecfdd6 increment build number 2018-04-24 00:03:48 +00:00
firebirds
b1006f7588 increment build number 2018-04-22 00:03:43 +00:00
firebirds
c603bd673a increment build number 2018-04-21 00:04:08 +00:00
firebirds
3735171922 increment build number 2018-04-20 00:04:04 +00:00
hvlad
6cb0b2419c Fixed small memory leak 2018-04-19 16:43:09 +03:00
firebirds
7fd95d68a5 increment build number 2018-04-19 00:03:54 +00:00
firebirds
ce3937b513 increment build number 2018-04-14 00:08:23 +00:00
Dmitry Yemanov
0d8cde9252 More complete solution for early monitoring initialization 2018-04-13 10:47:46 +03:00
firebirds
d1e90e035e increment build number 2018-04-13 00:04:06 +00:00
hvlad
d5fa522646 Create MonitoringData early to avoid races later.
It fixed leakage of MonitoringData instance (and few related handles) when many connections created simultaneously.
See also CORE-5702.
2018-04-12 23:42:34 +03:00
firebirds
d097b4275c increment build number 2018-04-12 00:04:10 +00:00
AlexPeshkoff
0bf40a8453 Comments 2018-04-11 20:43:06 +03:00
AlexPeshkoff
affb39894b Fixed CORE-5791: ODS for windows builds and linux-x64 (on the one side) and linux-x86 (on the other side) does not match 2018-04-11 20:17:45 +03:00
firebirds
943b9407e8 increment build number 2018-04-11 00:04:11 +00:00
firebirds
a85437ae42 increment build number 2018-04-10 00:04:12 +00:00
Roman Simakov
300566d9ba Fixed CORE-5790 - User with DROP DATABASE privilege can't drop database 2018-04-09 17:25:44 +03:00
firebirds
1704e3d5ff increment build number 2018-04-07 00:04:12 +00:00
firebirds
476af424ac increment build number 2018-04-06 00:04:16 +00:00
Adriano dos Santos Fernandes
7f044bccf9 Misc. 2018-04-05 12:41:40 -03:00
hvlad
acb1c28a01
Merge pull request #155 from abzalov/master
CORE-5746: Remove the restriction on create/delete, enable/disable user indexes in the system tables
2018-04-05 11:02:03 +03:00
firebirds
c2ba6a8979 increment build number 2018-04-05 00:04:10 +00:00
hvlad
0cc3d04c9a Corrected additional fix for bug CORE-5702 : Firebird Handle Leak Windows 2018-04-05 00:38:35 +03:00
firebirds
681caa5995 increment build number 2018-04-03 00:04:05 +00:00
hvlad
64b6de01e4 Additional fix for bug CORE-5702 : Firebird Handle Leak Windows 2018-04-03 01:06:44 +03:00
abzalov
191a3b6f92 CORE-5746: Remove the restriction on create/delete, enable/disable th… 2018-04-02 22:54:47 +03:00
firebirds
19deaaaf05 increment build number 2018-03-31 00:03:58 +00:00
hvlad
606d91fd29 Let ExtDS preprocessor handle '\r', '\n' and '\r\n' as end of line. 2018-03-31 00:39:34 +03:00
firebirds
eaee6a6fdf increment build number 2018-03-29 00:04:09 +00:00
firebirds
0c75917d38 increment build number 2018-03-27 00:04:02 +00:00
firebirds
a68927e297 increment build number 2018-03-24 00:06:03 +00:00
firebirds
3b65d2d9a9 increment build number 2018-03-23 00:04:09 +00:00
hvlad
5da5cb566c Fixed crash when broken external connection is deleted.
Fixed bug when idle external connection is about to put into idle list again.
2018-03-22 16:07:51 +02:00
firebirds
40ab6c5db0 increment build number 2018-03-22 00:04:13 +00:00
AlexPeshkoff
1e8e7858db Patch for CORE-5779: support for riscv64, also some code fixes related with prior ports 2018-03-21 15:19:20 +03:00
firebirds
1dc40bee49 increment build number 2018-03-21 00:04:32 +00:00
hvlad
690b0576bf Fixed bug CORE-5773 : PSQL cursor doesn't see inserted record 2018-03-20 09:12:33 +02:00
firebirds
17ced5071f increment build number 2018-03-20 00:04:23 +00:00
hvlad
9422df896c Fix thread priority for attachmentShutdownThread (it was run at lowest priority) 2018-03-19 15:59:13 +02:00
firebirds
15d37fc989 increment build number 2018-03-17 00:03:59 +00:00
hvlad
a16249fcfc Fixed bug CORE-405 : Garbage vs indices/constraints 2018-03-16 15:17:35 +02:00
firebirds
5006cd038b increment build number 2018-03-16 00:04:15 +00:00
firebirds
40eb153afb increment build number 2018-03-12 00:04:13 +00:00
firebirds
dadab0aec3 increment build number 2018-03-10 00:04:06 +00:00
Adriano dos Santos Fernandes
de1c8e4aad Misc. 2018-03-09 00:07:14 -03:00
firebirds
3de8bd66b0 increment build number 2018-03-08 00:04:29 +00:00
AlexPeshkoff
1636227d40 Changed representation of high precision DECIMAL/NUMERIC to be exactly the same as for DECFLOAT(34) 2018-03-07 20:22:33 +03:00
firebirds
951438e59b increment build number 2018-03-03 00:02:08 +00:00
hvlad
fca4da841e Return back lost checkouts at sorting module.
It allows to handle AST requests during long sorts.
2018-02-28 18:38:50 +02:00
AlexPeshkoff
6e461ec1c5 Fixed CORE-5762: Wrong transaction number in RDB$PAGES relation may cause infinite recusrion in engine and segfault 2018-02-27 15:19:08 +03:00
firebirds
f7a663f3a0 increment build number 2018-02-22 00:04:43 +00:00
Dmitry Yemanov
9afef198c1 Postfix for CORE-2284/CORE-5677, fixes regression CORE-5756 2018-02-21 10:49:40 +03:00
firebirds
3947506346 increment build number 2018-02-21 00:04:14 +00:00
Adriano dos Santos Fernandes
8eee0ce39a Misc. 2018-02-20 11:42:15 -03:00
hvlad
85272ba789 Replace AtomicPointer by std::atomic 2018-02-20 14:12:25 +02:00
hvlad
fdecfd1319 Merge branch 'master' into read_consistency 2018-02-20 13:50:04 +02:00
AlexPeshkoff
7b61282da5 Fixed INF processing 2018-02-20 13:59:02 +03:00
firebirds
e17a0fac76 increment build number 2018-02-20 00:04:18 +00:00
Roman Simakov
578a83a858 Fixed CORE-5747: User can grant USAGE privilege by himself. Error messages were corrected. Note: GRANT OPTION is being checked taking into account currently used ROLES 2018-02-19 15:48:14 +03:00
Alexander Peshkov
a6d57fc4d8
Gbak (#139)
* Rewritten gbak using OO API
* Make gbak correctly work with wide records (if record format to be made > 64K)
* Improve gbak performance over network using batch interface
* Enhanced template AutoPtr to make use of it more comfortable
2018-02-19 13:38:28 +03:00
firebirds
3da584e505 increment build number 2018-02-17 00:04:03 +00:00
Adriano dos Santos Fernandes
0b0af90393 Misc. 2018-02-16 15:47:48 -02:00
Adriano dos Santos Fernandes
bee3105b47 Revert wrong push (branch gbak) to master. 2018-02-16 15:42:41 -02:00
Adriano dos Santos Fernandes
988f13dcd7 Misc 2018-02-16 13:06:16 -02:00
AlexPeshkoff
520a28fc19 Improve gbak performance over network using batch interface 2018-02-16 13:06:16 -02:00
Dmitry Yemanov
763f96a409 Raised max record size (to test new gbak implementation) 2018-02-16 13:06:16 -02:00
AlexPeshkoff
54607bbce4 Build gbak using OO API 2018-02-16 13:06:16 -02:00
firebirds
e4a78ce3fe increment build number 2018-02-16 00:04:26 +00:00
firebirds
1a6bb8c342 increment build number 2018-02-13 00:04:15 +00:00
Dmitry Yemanov
7d942c0607 Avoid reading the page buffer after it was released 2018-02-12 19:17:48 +03:00
firebirds
35dff679f2 increment build number 2018-02-10 00:04:09 +00:00
firebirds
7c8a46cf41 increment build number 2018-02-09 00:04:17 +00:00
firebirds
3d412da26c increment build number 2018-02-08 00:04:29 +00:00
firebirds
cec4be840e increment build number 2018-02-07 00:04:26 +00:00
hvlad
f162f2336e Initial implementation of external connections pool 2018-02-06 12:52:00 +02:00
firebirds
7666ee281f increment build number 2018-02-06 00:04:14 +00:00
firebirds
aae8f2fd29 increment build number 2018-02-03 00:04:18 +00:00
AlexPeshkoff
a372f319f6 Fixed CORE-5700: DECFLOAT underflow should yield zero instead of an error 2018-02-02 21:56:43 +03:00
firebirds
ce590c1c83 increment build number 2018-02-02 00:04:43 +00:00
AlexPeshkoff
a8473b0ee3 Frontported CORE-5735: Additional keyholder opens unauthorized connections to encrypted database 2018-02-01 18:10:09 +03:00
firebirds
50ad173172 increment build number 2018-01-30 00:03:28 +00:00
AlexPeshkoff
b191382b36 Fixed sort on decimal fixed value 2018-01-29 18:26:52 +03:00
firebirds
ff040f5429 increment build number 2018-01-29 00:03:18 +00:00
hvlad
00483343f8 Attempt to fix build. Dmitry, verify please. 2018-01-28 21:12:40 +02:00
hvlad
b0b65effe6 Improvement CORE-5727 : Make faster engine response on cancel\shutdown signals when scanning long list of pointer pages 2018-01-28 20:59:32 +02:00
Dmitry Yemanov
f926eb5df8 Add missing short-circuit permission check for DBA/DBO that avoids an unnecessary ACL lookup 2018-01-28 14:06:05 +03:00
firebirds
5c51b145f8 increment build number 2018-01-23 00:03:31 +00:00
AlexPeshkoff
dda1fc6055 Fixed CORE-5721: Information items isc_info_length and fb_info_crypt_state have same code 2018-01-22 17:08:48 +03:00
firebirds
368bdadd3a increment build number 2018-01-22 00:03:25 +00:00
hvlad
315767d8cd Fixed bug CORE-5720 : Sweep in Firebird 3 in CS mode could run too slow when there is big load on server 2018-01-21 11:52:54 +02:00
hvlad
df109c3bd8 Bug CORE-5707 : Begin and end of physical backup in the same transaction could crash engine
Crash fixed.
2018-01-21 11:48:29 +02:00
Dmitry Yemanov
eaa0df55cd CORE-5718: Make TempCacheLimit setting database-wise 2018-01-21 12:11:11 +03:00
firebirds
0f7e5675af increment build number 2018-01-20 00:03:26 +00:00
Dmitry Yemanov
a0f31c65d0 Corrected old mistake (fortunately painless) 2018-01-19 14:48:31 +03:00
firebirds
b29dea4270 increment build number 2018-01-18 00:03:21 +00:00
firebirds
453f7f0f93 increment build number 2018-01-17 00:03:33 +00:00
AlexPeshkoff
83fa6a1ffe Fixed CORE-5712: Access to the name of DB encryption key 2018-01-16 20:37:05 +03:00
firebirds
a2fc0d8878 increment build number 2018-01-16 00:04:10 +00:00
AlexPeshkoff
5fa2380d98 Reserve value for future porting from private tree 2018-01-15 17:16:01 +03:00
firebirds
0e2f6e6eca increment build number 2018-01-14 00:03:41 +00:00
firebirds
2d8d6b9393 increment build number 2018-01-10 01:39:45 +00:00
hvlad
62735f4cf8 Improvement CORE-5704 : Avoid UPDATE of RDB$DATABASE by ALTER DATABASE statement when possible 2018-01-09 20:29:58 +02:00
hvlad
dc2a7e5708 Improvement CORE-5703 : When database validation fixes "orphan page" errors it also should adjust "lowest free page" marker (pip_min) on corresponding PIP, if necessary 2018-01-09 17:52:35 +02:00
hvlad
66d9f43a39 Fixed bug CORE-5694 : Duplicate values in columns with a unique constraint 2018-01-09 17:50:42 +02:00
firebirds
ee2319b79d increment build number 2018-01-09 00:03:44 +00:00
Dmitry Yemanov
b95548183e Postfix 2018-01-08 20:10:30 +03:00
Dmitry Yemanov
4638dc1023 Fixed CORE-5598: block size exceeds implementation restriction error while inner joining large datasets with a long key using the HASH JOIN plan 2018-01-08 17:09:28 +03:00
firebirds
bbed486660 increment build number 2018-01-02 00:04:23 +00:00
Adriano dos Santos Fernandes
bfcc37e7eb Misc. 2018-01-01 12:38:34 -02:00
hvlad
ccbf5c724a Merge branch 'master' into read_consistency 2017-12-29 10:55:31 +02:00
firebirds
04462b52db increment build number 2017-12-28 00:03:51 +00:00
hvlad
5f896e859b It should fix bug CORE-5685 : Sometime it is impossible to cancel\kill connection executing external query.
Also, implement fb_cancel_abort option at engine and unify handling of network errors a bit.
2017-12-27 11:56:05 +02:00
firebirds
384224357c increment build number 2017-12-22 00:06:16 +00:00
firebirds
7f0b70618c increment build number 2017-12-21 00:06:10 +00:00
Dmitry Yemanov
9555ff04f7 CORE-5684: Error 'no current record for fetch operation' is raised while deleting record from MON using ORDER BY clause 2017-12-20 19:52:17 +03:00
firebirds
72dc8f96e5 increment build number 2017-12-18 00:05:27 +00:00
hvlad
860f179712 Fixed bug CORE-5681 : AV when external statement is executed and local transaction is rolled back 2017-12-17 02:05:00 +02:00
firebirds
40897c40de increment build number 2017-12-13 00:04:44 +00:00
firebirds
ac6389cef5 increment build number 2017-12-12 00:04:41 +00:00
Roman Simakov
3f62ad0e0a Fixed CORE-5677: RDB$PAGES is dirty after error after phase 3 of create_relation (#135) 2017-12-11 08:54:11 +03:00
firebirds
95138483da increment build number 2017-12-09 00:05:15 +00:00
AlexPeshkoff
ebc1b1cabc Changes here and there forgotten when adding new datatypes 2017-12-08 13:42:06 +03:00
firebirds
d6d2d2f984 increment build number 2017-12-06 00:04:44 +00:00
Dmitry Yemanov
183398b779 CORE-5676: Consider equivalence classes for index navigation 2017-12-05 19:59:31 +03:00
firebirds
a2e96019bf increment build number 2017-12-05 00:04:21 +00:00
firebirds
3583599898 increment build number 2017-12-04 00:04:16 +00:00
firebirds
202f4f6321 increment build number 2017-12-02 00:04:33 +00:00
hvlad
1824acb9e5 Merge pull request #113 from red-soft-ru/fix_CORE_5618
Fixed bug CORE-5618 : Part of the pages of the second level blobs is not released when deleting relations
2017-12-01 10:34:12 +02:00
Dmitry Yemanov
6a04e46573 Allow efficient IS NOT DISTINCT FROM for DBKEY access 2017-12-01 09:54:44 +03:00
firebirds
91a4ed6765 increment build number 2017-11-30 00:05:15 +00:00
hvlad
4ab70f384b Fixed PSV-Studio warnings 2017-11-29 20:18:10 +02:00
AlexPeshkoff
8c68ef533d Fixed CORE-5673: Unique constraint not working in encrypted database on first command 2017-11-28 17:14:46 +03:00
Dmitry Yemanov
11297a0a0a Frontported CORE-3295: Estimate the actual record compression ratio in the optimizer. It was somehow forgotten and never found its way into newer versions :-( 2017-11-28 09:47:36 +03:00
firebirds
504bebe47a increment build number 2017-11-27 00:04:27 +00:00
Adriano dos Santos Fernandes
5f5a869c65 Adjust after changes in master. 2017-11-26 19:05:24 -02:00
Adriano dos Santos Fernandes
904d9cc627 Correction - thanks to Dmitry. 2017-11-26 18:58:25 -02:00
Adriano dos Santos Fernandes
5e1b5e172e Better handling for the scratch pool and fixed CORE-5646.
CORE-5646 - Parse error when compiling a statement causes memory leak until attachment is disconnected.
2017-11-26 18:58:25 -02:00
Adriano dos Santos Fernandes
c5f8e6ca46 Avoid calls to JRD_get_thread_data. 2017-11-26 18:58:25 -02:00
Adriano dos Santos Fernandes
63a03dfc8f Remove pool reference and children lists in each node.
Children lists will be created and destroyed on demand.
2017-11-26 18:58:25 -02:00
Adriano dos Santos Fernandes
d65cf5aac8 Delete the scratch pool in the end of DML compilation. 2017-11-26 18:58:25 -02:00
Adriano dos Santos Fernandes
74c212f3e8 Remove kind field. 2017-11-26 18:58:25 -02:00
firebirds
0ffd7b571c increment build number 2017-11-24 00:04:26 +00:00
Dmitry Yemanov
40c7b29245 Improvement CORE-4529: Allow to use index when GROUP BY on field which has DESCENDING index 2017-11-23 15:49:30 +03:00
Dmitry Yemanov
57f2da480b Reworked solution for CORE-1295: Bad optimization of queries with DB_KEY. Now it solves also CORE-4492: OR/IN predicates for RDB lead to NATURAL plan 2017-11-23 12:13:24 +03:00
firebirds
f5081cd281 increment build number 2017-11-22 00:04:32 +00:00
Dmitry Yemanov
d88750ce97 Fixed CORE-5547: Server crashes while compiling stored procedure with nested references to query-based computed fields 2017-11-21 14:48:54 +03:00
firebirds
8449b7d578 increment build number 2017-11-21 00:04:32 +00:00
Dmitry Yemanov
3fb7558ea1 CORE-5659: Bad PLAN generated for query on Firebird v3.0 2017-11-20 11:02:52 +03:00
firebirds
9a02325430 increment build number 2017-11-15 00:05:33 +00:00
hvlad
d5f73f8018 Improvement CORE-5660 : Make flash of big number of dirty pages faster 2017-11-14 16:27:56 +02:00
firebirds
7ab99eb3ba increment build number 2017-11-14 00:05:05 +00:00
003732e9f4 Fixed CORE-5630: Can't create the shadow file 2017-11-13 19:34:36 +03:00
05e2ddd979 Postfix for CORE-5650: added check for missing function as suggested by Adriano 2017-11-13 13:04:33 +03:00
firebirds
e30f150200 increment build number 2017-11-11 00:04:54 +00:00
044edb7068 Changed a lot of isc_random messages to new gds codes 2017-11-10 20:13:05 +03:00
firebirds
281ad99d64 increment build number 2017-11-10 00:04:45 +00:00
firebirds
820a64eba8 increment build number 2017-11-08 00:04:36 +00:00
firebirds
bd6c589cb8 increment build number 2017-11-07 00:04:43 +00:00
firebirds
8ec375b274 increment build number 2017-11-04 00:04:32 +00:00
Adriano dos Santos Fernandes
3dd6a2f536 Improvement CORE-5647 - Increase number of formats/versions of views from 255 to 32K. 2017-11-03 14:59:59 +00:00
firebirds
7b0c03512a increment build number 2017-11-02 00:04:37 +00:00
Adriano dos Santos Fernandes
a2556be641 Feature CORE-5620 - Builtin functions FIRST_DAY and LAST_DAY. 2017-11-01 15:30:54 +00:00
Ilya Eremin
2dc72496ea Error function parameter is added to convertToUTF8 function to avoid modifying of tdbb_status_vector in trace (#125) 2017-11-01 16:16:48 +03:00
hvlad
9c66f3c8d0 This should fix bug CORE-5615 : Firebird 3 crashing randomly 2017-11-01 12:11:20 +02:00
firebirds
c4854c02ab increment build number 2017-11-01 00:11:47 +00:00
firebirds
dc8b62dc6e increment build number 2017-10-31 00:03:28 +00:00
hvlad
2769de8269 Fixed bug CORE-5600 : Invalid blob id when add a new blob column of type text and update another field 2017-10-30 21:34:24 +02:00
firebirds
19a7ec95e7 increment build number 2017-10-28 00:03:30 +00:00
Adriano dos Santos Fernandes
a7a431d996 Correction. 2017-10-27 13:44:05 +00:00
firebirds
27ebeede8d increment build number 2017-10-27 00:03:11 +00:00
Adriano dos Santos Fernandes
a6bd7a56b1 Fixed CORE-5645 - Wrong transaction can be passed to external engine. 2017-10-26 15:14:08 +00:00
firebirds
80bf814885 increment build number 2017-10-26 00:03:13 +00:00
5b37da810c Fixed CORE-5650: Segfault when procedure dropped on classic server 2017-10-25 16:12:13 +03:00
firebirds
1aa78fe239 increment build number 2017-10-25 00:03:15 +00:00
hvlad
5ef0c5bf24 Improvement CORE-5648 : Avoid serialization of isc_attach_database calls issued by EXECUTE STATEMENT implementation 2017-10-24 13:09:10 +03:00
firebirds
863865c9e1 increment build number 2017-10-24 00:03:21 +00:00
Alexander Peshkov
f53c23c17a New interface Batch helping to efficiently implement JDBC prepared statement batches (#99)
Batch interface implementation
2017-10-23 17:10:49 +03:00
firebirds
62a0eba48f increment build number 2017-10-18 00:03:13 +00:00
firebirds
3df490cc74 increment build number 2017-10-17 00:03:11 +00:00
firebirds
df0edb5425 increment build number 2017-10-14 00:09:13 +00:00
firebirds
dcfad30100 increment build number 2017-10-04 00:03:19 +00:00
6198bc8ee1 High precision datatype support - Numeric(34,x) (#108)
* Raise underflow when close to 0 decfloat value casted to double
* High precision NUMERIC datatype based on DECFLOAT
* Fixed bulk insert mode in isql for decfloat values
* Enforce correct decQuad format after arithmetic operations
* Minimum docs for high precision NUMERIC/DECIMAL

* Some fixes of code suggested by Adriano:
- Use "const" keyword for Decimal128 constants declared internally
- Remove unneeded buffer initialization
- Remove unused function makeDecimalFixed()
- Follow firebird naming conventions to make code better readable and avoid possible conflicts with various .h files
- Added forgotten scale for DecimalFixed
2017-10-03 17:06:08 +03:00
firebirds
f0154f8822 increment build number 2017-09-29 00:04:01 +00:00
firebirds
8f713fddc2 increment build number 2017-09-28 00:03:14 +00:00
Adriano dos Santos Fernandes
e4b42bc37b Misc. 2017-09-27 19:08:56 -03:00
firebirds
8bb15346d5 increment build number 2017-09-23 00:03:17 +00:00
Artyom Smirnov
e02f60e3cd Fix crash on external engine trigger executing for transaction triggers (#110)
trg->relation can be null, so need checking
2017-09-22 15:46:01 +03:00
firebirds
9b52459289 increment build number 2017-09-21 00:03:16 +00:00
c1296050a6 Fixed CORE-5610: Provide info about database (or alias) which was in use during "Error during sweep: connection shutdown" 2017-09-20 13:08:38 +03:00
firebirds
cd7fdf653a increment build number 2017-09-17 00:04:55 +00:00
hvlad
953c753588 Improvement CORE-5614 : Physical backup merge stage could run too long, especially with huge page cache 2017-09-16 11:24:34 +03:00
hvlad
a60b19f881 Fixed bug CORE-5613 : SuperServer could hung when changing physical backup state under high load 2017-09-16 11:23:44 +03:00
firebirds
56498c011e increment build number 2017-09-13 00:04:23 +00:00
Adriano dos Santos Fernandes
7226b545e7 More fixes for CORE-5606 - Add expression index name to exception message if computation failed. 2017-09-12 16:16:28 +00:00
firebirds
80be221310 increment build number 2017-09-12 00:04:26 +00:00
Adriano dos Santos Fernandes
f924ded403 Improvement CORE-5606 - Add expression index name to exception message if computation failed. 2017-09-11 16:42:11 +00:00
Adriano dos Santos Fernandes
4c73f4ac61 Misc. 2017-09-06 16:38:05 +00:00
firebirds
ea2b34e3ca increment build number 2017-09-06 00:04:30 +00:00
firebirds
786a7e3e8a increment build number 2017-09-05 00:04:33 +00:00
Ilya Eremin
a4ccbd2d95 Fixed conversion of parameters to UTF8 in trace: reading string length depending on descriptor type (#106) 2017-09-04 17:33:06 +03:00
hvlad
a5c4a29a32 Fixed regression CORE-5062 : slow changes on domain 2017-09-04 15:51:21 +03:00
firebirds
bffc93ac7e increment build number 2017-09-02 00:04:51 +00:00
firebirds
145f97dacb increment build number 2017-08-31 00:04:30 +00:00
firebirds
e3d06a6b3e increment build number 2017-08-30 00:04:30 +00:00
firebirds
8e0286d87d increment build number 2017-08-27 00:04:43 +00:00
Adriano dos Santos Fernandes
d9ecea01f1 Misc. 2017-08-26 18:57:41 -03:00
nikolay.samofatov
7e583e5849 Code cleanup - implement Dmitry's suggestion 2017-08-24 16:10:47 +03:00
firebirds
30b225ca69 increment build number 2017-08-24 00:04:20 +00:00
nikolay.samofatov
31b47a370a Restart only top-level requests in read consistency mode 2017-08-22 16:50:38 +03:00
nikolay.samofatov
c3500bb843 Restart requests in case of update conflicts 2017-08-21 17:29:09 +03:00
hvlad
fad46cfe90 Removed perf counter RECORD_IMGC_FAIL and corresponding column MON$RECORD_STATS.MON$RECORD_IMGC_FAIL 2017-08-18 10:43:28 +03:00
firebirds
76943472cf increment build number 2017-08-17 00:04:41 +00:00
2ac2aa8a71 Postfix for CORE-5536: services were broken due to incorrect remote info processing 2017-08-16 14:29:59 +03:00
24465a1e09 Info codes should better be explicit from backporting POV 2017-08-16 14:29:59 +03:00
firebirds
34b8ae06f6 increment build number 2017-08-16 00:04:46 +00:00
ec9e4ac4e4 Postfix for CORE-5536 2017-08-15 15:57:24 +03:00
hvlad
410dcfbe2d Fixed infinite wait when database changed RO mode to RW 2017-08-15 11:26:37 +03:00
hvlad
0086d40249 Since there is no more separate account of pre-committed transactions we need to know its state using TPC 2017-08-15 11:25:30 +03:00
firebirds
405bac331f increment build number 2017-08-15 00:04:42 +00:00
4e4be00b7d Implemented CORE-5536: Connections compressed and encrypted in MON$ATTACHMENTS table. Also added fb_info_conn_flags item to getInfo() call to return connection flags. 2017-08-14 20:16:59 +03:00
firebirds
5627033ceb increment build number 2017-08-14 00:04:44 +00:00
hvlad
f61f2ead0e Re-implement TPC_find_states 2017-08-10 11:59:53 +03:00
firebirds
dbd6ec8fbf increment build number 2017-08-10 00:04:54 +00:00
firebirds
97c97fe0c1 increment build number 2017-08-09 00:04:47 +00:00
hvlad
eae0a1d62f Merge branch 'master' into read_consistency 2017-08-08 12:16:18 +03:00
firebirds
b4ffa0b11e increment build number 2017-08-05 00:05:08 +00:00
firebirds
ca24b62555 increment build number 2017-08-03 00:04:35 +00:00
bc00115038 Fixed CORE-5591: Engine hangs soon after some errors during transaction start 2017-08-02 15:03:58 +03:00
firebirds
aefff61117 increment build number 2017-07-28 00:04:56 +00:00
firebirds
6b6a17a08f increment build number 2017-07-26 00:04:33 +00:00
Adriano dos Santos Fernandes
55c35b77c6 Merge pull request #102 from FirebirdSQL/work/core-4436-hash
Improvement CORE-4436 - Support for different hash algorithms in HASH system function.
2017-07-25 13:06:06 -03:00
Adriano dos Santos Fernandes
5ba4754077 Rework on HashAlgorithmDescriptor initialization. 2017-07-25 15:48:56 +00:00
firebirds
dd49fa6213 increment build number 2017-07-25 00:04:29 +00:00
Adriano dos Santos Fernandes
3a1a9b9d48 Support for different hashes algorithms in HASH system function. 2017-07-24 13:38:28 +00:00
Adriano dos Santos Fernandes
7fe1fbbae3 Refactor introducing HashContext and WeakHashContext. 2017-07-24 12:07:06 +00:00
firebirds
50eb1915f7 increment build number 2017-07-22 00:04:40 +00:00
firebirds
6e261b88b1 increment build number 2017-07-21 00:05:07 +00:00
Ilya Eremin
b17a729ab2 Conversion of statements, procedures and functions parameters (CHAR and VARCHAR) to UTF8 in trace log (#95) (#100)
* Conversion of statements, procedures and functions parameters (CHAR and VARCHAR) to UTF8 in trace log

* cloop interface version check is added for getTextUTF8 function
2017-07-20 17:03:34 +03:00
hvlad
3e1d53c724 - Sweep do not have to read backversions of active record (same as gc thread).
- Fixed bug in delete_version_chain: chain of one element was not deleted leaving orphan record versions.
- list_staying changes input record (rpb), if record was changed concurrently while backversion chain was walked.
It not allows VIO_intermediate_gc to detect change of primary record version and allow it to delete old backversions
while list_staying_fast walks the chain. To avoid it, forbid list_staying to re-read primary record version if
such change is detected. Also, list_staying_fast now checks just read backversion and exits in case of check
failure (instead of BUGCHECK's later in VIO_data).
2017-07-20 13:47:24 +03:00
firebirds
0a74b4c478 increment build number 2017-07-20 00:04:27 +00:00
295930dae5 Fixed CORE-5588: DbInfo interface is not passed to ancillary instances of plugin 2017-07-19 17:21:19 +03:00
firebirds
8717f58c4c increment build number 2017-07-19 00:04:08 +00:00
firebirds
702278622d increment build number 2017-07-18 00:04:23 +00:00
firebirds
57351a030c increment build number 2017-07-15 00:05:00 +00:00
firebirds
276834d5e1 increment build number 2017-07-13 00:06:30 +00:00
Adriano dos Santos Fernandes
4be766b8c8 Improvement CORE-5380 - Allow subroutines to call others subroutines and themself recursively. 2017-07-11 13:03:04 +00:00
firebirds
f350cccf85 increment build number 2017-07-11 00:02:24 +00:00
hvlad
bdc7bd8d3e Merge branch 'master' into read_consistency 2017-07-10 23:54:42 +03:00
hvlad
c34a914553 Move VIO_intermediate_gc() from prepare_update() to the points after update\delete (VIO_modify\VIO_erase).
It allows to use list_staying_fast() instead of slow list_staying().
Make user attachment to not call VIO_intermediate_gc() at VIO_chase_record_version() as it is almost
useless and could add significant perfomance penalty.
Make intermediate gc to honour ATT_no_cleanup flag and LCK_rel_gc lock (i.e. disable intermediate gc while
online validation running)
Make page precedence work correctly when new versions chain is created and attached to the primary
record version.
Update snapshots list used in gc\sweep threads.

Experimental\questionable:
- disable garbage_collect() call from list_staying_fast() as it probably could lead to
  broken versions chains (no proof so far)
- limit number of "restarts" when list_staying walk record which is actively changed
2017-07-07 16:33:33 +03:00
hvlad
3e00fb832d Add two performance counters
- RECORD_IMGC - number of successful calls of VIO_intermediate_gc, and
- RECORD_IMGC_FAIL - number of failed calls of VIO_intermediate_gc

Corresponding columns in MON$RECORD_STATS:
- MON$RECORD_IMGC
- MON$RECORD_IMGC_FAIL

RECORD_IMGC_FAIL sooner of all shouldn't be included into final code,
but it is useful when developing
2017-07-07 16:16:08 +03:00
firebirds
5fa7911a1b increment build number 2017-07-07 00:02:24 +00:00
firebirds
df86564122 increment build number 2017-07-04 00:06:47 +00:00
Roman Simakov
74b04f862a Fixed CORE-5576: Bugcheck on queries containing WITH LOCK clause. 2017-07-03 22:28:09 +03:00
firebirds
b3f85fbf94 increment build number 2017-07-03 00:03:09 +00:00
firebirds
a0d26e7684 increment build number 2017-07-02 00:02:37 +00:00
hvlad
068e40ed12 Port important fix from master 2017-06-29 11:43:09 +03:00
hvlad
8983e95fe0 Maintain dbb_next_transaction as it is really used in INF and monitoring 2017-06-29 11:42:26 +03:00
firebirds
8837ea3d7e increment build number 2017-06-29 00:03:22 +00:00
firebirds
05ea338826 increment build number 2017-06-20 00:09:24 +00:00
Adriano dos Santos Fernandes
072ff67c76 Misc. 2017-06-18 22:49:33 -03:00
firebirds
101a9e1822 increment build number 2017-06-19 00:17:29 +00:00
firebirds
1c72dd3be1 increment build number 2017-06-18 00:02:15 +00:00
firebirds
53d64eba32 increment build number 2017-06-17 00:02:45 +00:00
firebirds
a8dee20788 increment build number 2017-06-14 00:06:05 +00:00
Adriano dos Santos Fernandes
6d257d1852 Oops. 2017-06-13 16:34:53 +00:00
Adriano dos Santos Fernandes
c28e734cc7 Improvement CORE-5563 - Use exception instead bugcheck for EVL_expr. 2017-06-13 16:28:23 +00:00
firebirds
9695ba1df7 increment build number 2017-06-13 00:02:36 +00:00
Adriano dos Santos Fernandes
019503ff99 Fixed CORE-5567 - Direct system table modifications are not completely prohibited. 2017-06-12 19:53:42 -03:00
firebirds
6c9fa72ea4 increment build number 2017-06-12 00:03:51 +00:00
firebirds
1624f65d9c increment build number 2017-06-11 00:03:25 +00:00
firebirds
6709b60e2f increment build number 2017-06-10 00:07:37 +00:00
Adriano dos Santos Fernandes
d8fea3ec91 Avoid method calls in NULL objects.
It's undefined behavior even with non-virtual methods not accessing *this.
2017-06-09 17:10:46 +00:00
firebirds
aa9263e42a increment build number 2017-06-09 00:07:33 +00:00
68aa9c157c Fixed CORE-5562: Firebird crashes when UDF gets loaded and unloaded frequently 2017-06-08 12:43:36 +03:00
firebirds
479b57d4d5 increment build number 2017-06-08 00:35:58 +00:00
Adriano dos Santos Fernandes
301b2ae1dd Fix errors and some warnings with the clang release build. 2017-06-07 16:24:26 +00:00
firebirds
c82375721a increment build number 2017-06-06 00:02:30 +00:00
hvlad
f04731b448 Support for read consistency mode:
- SET TRANSACTION READ COMMITTED READ CONSISTENCY, and
- isc_tpb_read_consistency option
2017-06-02 11:02:02 +03:00
firebirds
1fdebca762 increment build number 2017-05-31 00:02:27 +00:00
Adriano dos Santos Fernandes
e9ece3aa5b Misc. 2017-05-30 08:08:37 -03:00
hvlad
bb0afc79b7 Fixed bug CORE-5555 : 3.0 error handling for SELECT WITH LOCK breaks compatibility with 2.5 2017-05-30 13:27:07 +03:00
firebirds
a2502a0d69 increment build number 2017-05-30 00:02:32 +00:00
firebirds
eda12ed77a increment build number 2017-05-29 00:02:28 +00:00
8db98a351d Fixed CORE-5553: Database cannot be encrypted if DatabaseAccess is set to None 2017-05-28 15:44:10 +03:00
firebirds
20597522e7 increment build number 2017-05-26 00:04:29 +00:00
013f78427a Fixed function SIGN() when used with DECFLOAT 2017-05-25 15:57:25 +03:00
firebirds
72b543ce06 increment build number 2017-05-24 00:02:37 +00:00
firebirds
24afb402c2 increment build number 2017-05-23 00:02:28 +00:00
15a699add3 Revert PI() to return double precision value - we anyway have no trigonometric functions with decfloat argument support 2017-05-22 19:01:17 +03:00
firebirds
6734f8962f increment build number 2017-05-20 00:02:21 +00:00
Adriano dos Santos Fernandes
67222d7ae9 Fixed CORE-5542 - Database-level triggers related to TRANSACTION events (i.e. start, commit and rollback) do not take in account their POSITION index (when more than one trigger for the same event type is defined). 2017-05-19 17:27:16 +00:00
3897136029 Fixed deadlock introduced by me half-a-year ago 2017-05-19 17:29:17 +03:00
firebirds
eebdd3504a increment build number 2017-05-17 00:02:20 +00:00
hvlad
cc102b7352 Make all internal connections to the security database use embedded provider only.
It should fix bug CORE-5540 : Every other execution of embedded isql slow.
2017-05-17 00:15:11 +03:00
firebirds
61e226627f increment build number 2017-05-16 00:02:23 +00:00
hvlad
425192a720 Fixed bug CORE-5537 : Assign DB access_mode to RW (by using gfix or fbsvcmgr) leads FB 4.0 Classic to create new firebird-process on every such attempt 2017-05-15 13:47:50 +03:00