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

35699 Commits

Author SHA1 Message Date
hvlad
db6debb072 Fixed bug CORE-5234 : Access violation on UDF crashes server 2016-05-18 19:07:47 +03:00
firebirds
7d3424d27b increment build number 2016-05-17 00:02:47 +00:00
Dmitry Yemanov
9f3a0095e7 This should fix CORE-5241 (Affected rows are not counted for some update
operations with views). Old hacks are not actual these days.
2016-05-16 19:07:45 +03:00
Dmitry Yemanov
6a6eb3c554 Fix CORE-5231 (EXECUTE STATEMENT: BLR error if more than 256 output
parameters exist).
2016-05-16 13:03:29 +03:00
Dmitry Yemanov
4690eb6a0d Misc adjustments/renaming/comments based on Vlad's feedback. 2016-05-16 11:31:13 +03:00
firebirds
4653b6b80a increment build number 2016-05-16 00:02:47 +00:00
Dmitry Yemanov
dc52507399 Fix request savepoint stack handling when tx-level savepoint was already
dropped.
2016-05-15 23:17:28 +03:00
Dmitry Yemanov
46a7d66246 Change the savepoint start function, as suggested by Dimitry Sibiryakov. 2016-05-15 18:51:55 +03:00
Dmitry Yemanov
fbd7bd86da Add missing index depth protection during index creatiion + new error
code/message.
2016-05-15 16:07:44 +03:00
Dmitry Yemanov
08c42cb080 Rework fast_load() local structures to achieve a clearer code. Reduce
number of runtime allocations. Restore the original (before MAX_KEY
increase) stack requirements.
2016-05-15 12:41:45 +03:00
Dmitry Yemanov
decab0d0b4 Fix page numbers datatype + misc cleanup & adjustments. 2016-05-15 12:41:44 +03:00
firebirds
5d39f5fb7d increment build number 2016-05-15 00:02:41 +00:00
firebirds
f603860cb9 increment build number 2016-05-14 00:02:50 +00:00
firebirds
13ad68de93 increment build number 2016-05-13 00:02:41 +00:00
Roman Simakov
238fff3a2d Fixed CORE-1815: Ability to grant role to another role (#23)
* Initial patch for cumulative roles

* Fixed multiple records in USER_PRIVILEGES and reworked logic on additional grant default role and admin option
2016-05-12 17:03:54 +03:00
Adriano dos Santos Fernandes
ab49785f7a Fixed problems reported by PVS-Studio - http://www.viva64.com/en/b/0396/ 2016-05-12 08:31:12 -03:00
hvlad
07b8cde474 Refactor relation protection routines into a class.
Alex, please review changes related with DFW_reset_icu.
2016-05-12 14:05:29 +03:00
hvlad
c95aaf9300 Place expression index support routines where it should be.
Add protection from changes while expression index is built.
Remove PCMET module.
2016-05-12 14:03:01 +03:00
firebirds
6f0544d54a increment build number 2016-05-12 00:02:41 +00:00
Adriano dos Santos Fernandes
c31769c46a Fixed problems reported by PVS-Studio - http://www.viva64.com/en/b/0396/ 2016-05-11 13:16:24 -03:00
firebirds
986c37303b increment build number 2016-05-11 00:02:46 +00:00
Dmitry Yemanov
170656443c Postfixes for CORE-2192, thanks to Pavel Zotov. 2016-05-10 10:44:30 +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
firebirds
67bf1deb4c increment build number 2016-05-10 00:02:37 +00:00
Adriano dos Santos Fernandes
82b18b30f2 Misc. 2016-05-08 23:05:39 -03:00
firebirds
41d8b9ec55 increment build number 2016-05-09 00:02:43 +00:00
Dmitry Yemanov
64fa4d3c59 Merge pull request #21 from jrtc27/lock-big-endian
Fix locking on big-endian architectures
2016-05-08 19:19:30 +03:00
firebirds
4d8d85836f increment build number 2016-05-08 00:02:41 +00:00
James Clarke
0dc0a4b595 Fix locking on big-endian architectures
4e4d8002e5 extended locks to have 64-bit
keys in most cases, but some were left as 32-bit. However, code using
these 32-bit locks assumed that the significant bytes of the key's long
value started from lck_string[0], which is false on big-endian
architectures.  This commit adds Lock::getKeyString(), which gets a
pointer to the first used byte of lck_string, and should be used in
place of accessing lck_string directly.
2016-05-07 22:09:09 +01:00
firebirds
c48c816049 increment build number 2016-05-07 00:02:46 +00:00
Dmitry Yemanov
8186c1e40b CORE-2192: Extend maximum database page size to 32KB. All underlying
changes were already implemented during the v3 development.
2016-05-07 00:16:37 +03:00
Dmitry Yemanov
522f4c09bd Switch to 64-bit savepoint numbers as a straightforward solution for
CORE-5228 (Restore may hang if the database contains more than 4 billion
records).
2016-05-06 23:18:36 +03:00
Dmitry Yemanov
3b7b3161fb Bugfix CORE-5226. 2016-05-06 20:19:04 +03:00
Dmitry Yemanov
174c252e0c Major refactoring of savepoints. Beware of possible regressions. 2016-05-06 20:16:14 +03:00
firebirds
535a0e5204 increment build number 2016-05-03 00:03:01 +00:00
Dmitry Yemanov
7e0c287412 Bugfix CORE-5224: Transaction id tags for services API do not support
new 48 bit transaction ids.
2016-05-02 09:28:25 +03:00
firebirds
a82dc91e82 increment build number 2016-05-01 00:02:49 +00: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
firebirds
3b0ee41625 increment build number 2016-04-30 00:04:36 +00:00
firebirds
9042343c61 increment build number 2016-04-29 00:02:42 +00:00
Dmitry Yemanov
5df083273b Correction, as per Sean's comment. 2016-04-28 22:06:40 +03:00
Dmitry Yemanov
1d2eed6f24 CORE-5216: Provide location context (line/column numbers) for runtime
errors raised inside EXECUTE BLOCK.
2016-04-28 15:38:15 +03:00
firebirds
dcfcd3e94a increment build number 2016-04-27 00:02:41 +00:00
firebirds
8a7fef6d42 increment build number 2016-04-26 00:02:41 +00:00
1adadd969f Cleanup - use fb_utils::copy_terminate() where needed 2016-04-25 18:39:02 +03:00
cee67bffae misc 2016-04-25 18:38:18 +03:00
firebirds
35518861ce increment build number 2016-04-25 00:02:45 +00:00
firebirds
a300df6972 increment build number 2016-04-23 00:02:42 +00:00
firebirds
787d50e535 increment build number 2016-04-22 00:02:40 +00:00
1184d3e263 Fixed CORE-5203: Single CPU core fully utilized with Trace session 2016-04-21 20:34:51 +03:00
firebirds
5463e3cd77 increment build number 2016-04-21 00:02:40 +00:00
firebirds
1581ad463a increment build number 2016-04-20 00:02:38 +00:00
firebirds
783806a4ed increment build number 2016-04-15 00:02:40 +00:00
firebirds
2e29017962 increment build number 2016-04-14 00:02:40 +00:00
firebirds
f29f5504e0 increment build number 2016-04-13 00:02:38 +00:00
Adriano dos Santos Fernandes
a7948792b1 Warning. 2016-04-12 14:24:07 -03:00
firebirds
62ac4f0b5a increment build number 2016-04-12 00:02:34 +00:00
142f91496c Cleanup - use global constant for SYSDBA user name 2016-04-11 18:04:41 +03:00
firebirds
19b64ace8f increment build number 2016-04-11 00:02:37 +00:00
2a1725ec6e Postfix for CORE-5189: use unsigned operation code in User interface 2016-04-10 21:06:02 +03:00
Adriano dos Santos Fernandes
899e92c20c Misc. 2016-04-10 00:08:35 -03:00
firebirds
207437b8fd increment build number 2016-04-10 00:02:34 +00:00
firebirds
28c9469f75 increment build number 2016-04-09 00:02:35 +00:00
hvlad
3f06ba27c2 Fixed code formatting accidentally broken by my recent commit 2016-04-08 23:11:06 +03:00
firebirds
a4137db6cd increment build number 2016-04-08 00:02:34 +00:00
hvlad
6a169ddf0a Front ported fix for bug CORE-4645 : internal Firebird consistency check (cannot find tip page (165), file: tra.cpp line: 2375) 2016-04-07 21:55:17 +03:00
Dmitry Yemanov
54cde2c6ec Rework solution for CORE-5146. 2016-04-07 15:38:07 +03:00
firebirds
160e755112 increment build number 2016-04-07 00:02:34 +00:00
firebirds
aa799cefa1 increment build number 2016-04-05 00:02:36 +00:00
Adriano dos Santos Fernandes
d7eb6fe4d0 Fixed CORE-5167 - Allow implicit conversion between boolean and string. 2016-04-04 14:49:44 -03:00
Dmitry Yemanov
4e54079aea Fix assertion that appear to be incorrect. 2016-04-04 10:15:30 +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
firebirds
6b26ac79f0 increment build number 2016-04-04 00:02:38 +00:00
Adriano dos Santos Fernandes
ede09bf269 Misc. 2016-04-03 16:26:11 -03:00
firebirds
764d6e7ffd increment build number 2016-04-03 00:02:35 +00:00
Dmitry Yemanov
59e6c1f0cf Postfix for CORE-5067. It prevents deadlocks involving the header page
and some data pages (due to disabled AST delivery).
2016-04-02 13:16:13 +03:00
firebirds
074b91d090 increment build number 2016-04-02 00:02:35 +00:00
Roman Simakov
5021c37285 Merge 2016-04-01 17:52:13 +03:00
Roman Simakov
87d35a5688 Fixed my mistake in previous commit 2016-04-01 12:32:55 +03:00
Roman Simakov
20efdc3c4c Fixed TRA_get_inventory to get vector including top. Cleaned up TPC_update_cache function as unneeded more. 2016-04-01 12:20:43 +03:00
firebirds
5e3cc4b988 increment build number 2016-04-01 00:02:44 +00:00
Dmitry Yemanov
8905e15435 Relax heuristics for FIRST ROWS strategy. This should fix CORE-5146
(Suboptimal join order if one table has a selective predicate and MIN is
calculated for the other one).
2016-03-31 20:26:54 +03:00
edc3725e0b Merge branch 'master' of ssh://github.com/FirebirdSQL/firebird 2016-03-31 16:21:02 +03:00
cd20518ec7 Fixed CORE-5181: Build fails when HAVE_MMAP is not defined 2016-03-31 16:20:37 +03:00
Dmitry Yemanov
1d276543a5 Misc cleanup after my prior commit. 2016-03-31 15:58:32 +03:00
Dmitry Yemanov
c3858e1e65 Refactored database-level info to be retrieved directly into the MON$
snapshot, without intermediate storage in shmem. This should also fix
CORE-5179 (Database-level statistics (MON$STAT_GROUP = 0) may contain
multiple rows under concurrent load).
2016-03-31 13:53:08 +03:00
hvlad
ba7a6f9706 Fixed bug in tx status block's deallocation.
Fixed bug in TIP loading code.
Correctly remove files using with shared memory.
2016-03-31 13:51:38 +03:00
hvlad
2f0c8b2683 Fixed wrong flags assignment when backversions chain is stored.
Correct debug output and add a bit of new debug messages.
2016-03-31 13:35:57 +03:00
firebirds
bcbdd0ea52 increment build number 2016-03-31 00:02:39 +00:00
firebirds
767bc99058 increment build number 2016-03-30 00:02:32 +00:00
83845251c5 Added VIO prefix as requested 2016-03-29 11:52:25 +02:00
firebirds
6932807f7c increment build number 2016-03-29 00:02:37 +00:00
Adriano dos Santos Fernandes
f58ecf78b4 Fixed CORE-5166 - Wrong error message with UNIQUE BOOLEAN field. 2016-03-28 12:47:39 -03:00
Dmitry Yemanov
6ae1145394 Merge pull request #10 from aafemt/CORE-5174
Fix CORE-5174
2016-03-28 18:07:26 +03:00
Adriano dos Santos Fernandes
cf1a65dece Misc. 2016-03-27 23:36:37 -03:00
firebirds
8d90f042b2 increment build number 2016-03-28 00:02:32 +00:00
hvlad
5836bcf2e8 Correct type usage (AttNumber, StmtNumber, TraNumber). Code formatting. 2016-03-28 01:47:15 +03:00
a8949baecf Fix CORE-5174 2016-03-27 14:43:25 +02:00
hvlad
cbf6dea3ee Functions to read\write attachment id from\to header page 2016-03-27 14:54:22 +03:00
Dmitry Yemanov
f6e4f41bd9 Simplify migration for old databases affected by changes in
CLIENT_ADDRESS. Refresh outdated readme.
2016-03-27 11:20:27 +03:00
Adriano dos Santos Fernandes
de9e70ec4e Misc. 2016-03-27 00:11:43 -03:00
firebirds
eb51292982 increment build number 2016-03-27 00:02:34 +00:00
Adriano dos Santos Fernandes
83e95377bc Fixed CORE-5165 - HAVING COUNT(*) NOT IN ( <Q> ) prevent record from appearing in outer resultset when it should be there (<Q> = resultset without nulls). 2016-03-26 19:24:09 -03:00
Roman Simakov
4bf78be588 Cosmetic changes and returned lost bugcheck 2016-03-26 17:13:10 +03:00
firebirds
ed38cf98a6 increment build number 2016-03-26 00:02:06 +00:00
firebirds
06a8c7d7cd increment build number 2016-03-25 07:20:32 +00:00
firebirds
3282ab04eb Revert the wrong script run. 2016-03-25 05:32:10 +00:00
Firebird Admin
00aa2d4e74 increment build number 2016-03-25 05:11:34 +00:00
Firebird Admin
6847637623 increment build number 2016-03-25 05:11:32 +00:00
Firebird Admin
8893a9a6ad increment build number 2016-03-25 05:11:30 +00:00
Firebird Admin
e69c65bcb0 increment build number 2016-03-25 05:11:28 +00:00
hvlad
8dbcf67162 Post merge fixes, hopefully final pass 2016-03-24 19:00:06 +02:00
firebirds
773c7bfe3f increment build number 2016-03-24 17:30:32 +03:00
hvlad
131e3b8fba Merge branch 'master' into read_consistency 2016-03-24 12:55:19 +02:00
hvlad
aa822857ea Some fixes after merge, to be continued... 2016-03-24 12:54:44 +02:00
hvlad
3c62d90518 Merge branch 'master' into read_consistency 2016-03-24 11:58:13 +02:00
dimitr
1ae6a9b5c3 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. 2016-03-24 01:56:54 +02:00
Dmitry Yemanov
aab8eba467 Misc. 2016-03-23 18:24:36 +03:00
Dmitry Yemanov
1fef2e605a Fixed CORE-4985: Non-privileged user can implicitly count records in a
restricted table.
2016-03-23 18:24:22 +03:00
Dmitry Yemanov
7e8f8a1c0d Cleanup and refactoring: parsing strings in BLR. 2016-03-23 15:49:02 +03:00
hvlad
dfb2aafcd1 Replaced libatomic_ops by std::atomic, fixed few errors 2016-03-23 10:27:27 +02:00
Dmitry Yemanov
a1086589b6 Fixed handling of non-ASCII table names inside TPB. 2016-03-23 10:29:35 +03:00
hvlad
50c23d16ed Let nbackup skip another tags on header page and limit search by page boundaries 2016-03-22 20:11:17 +02:00
de12c06f38 Fixed CORE-5162: SEC$ tables and tag/attributes 2016-03-22 19:31:44 +03:00
b51a37ac0d Fixed CORE-5155: [CREATE OR] ALTER USER statement: clause PASSWORD (if present) must be always specified just after USER 2016-03-22 18:38:04 +03:00
Roman Simakov
5a6cbc2dc2 Restored assign attachment id in tip_cache for read only DB. Otherwise we have deadlock between GC thread and main attach thread. 2016-03-22 17:44:36 +03:00
Roman Simakov
7888507d7d Fixed global lock of shared memory init 2016-03-22 17:44:20 +03:00
Roman Simakov
f3fd2d7cb5 Initial apply patch of Nikolay 2016-03-22 17:43:58 +03:00
hvlad
54e25d4a79 System index for RDB$BACKUP_HISTORY (RDB$GUID) 2016-03-22 11:18:37 +02:00
hvlad
fa0bae17e2 Applied initial patch from red-soft 2016-03-22 10:35:55 +02:00
Adriano dos Santos Fernandes
08746df97e Fixed CORE-5159 - Regression: engine may throw transliteration errors when running from non-ASCII system path. 2016-03-21 14:48:21 -03:00
Adriano dos Santos Fernandes
c2d7536030 Fixed CORE-5153 - Regression: Server crashes when aggregate functions are used together with NOT IN predicate. 2016-03-21 12:28:06 -03:00
hvlad
e891e0f43c Fixed bug CORE-5161 : Unique index could be created on non-unique data 2016-03-21 16:39:22 +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
firebirds
5c4d97f05c nightly update 2016-03-16 00:09:45 +00:00
firebirds
95ebd3cc6f nightly update 2016-03-15 00:08:50 +00:00
aafemt
8cf7ff3434 Fix false positive index missing entries on already deleted records 2016-03-14 09:11:04 +00:00
dimitr
81343e94a3 Misc changes. 2016-03-14 09:02:02 +00:00
firebirds
9098e9465e nightly update 2016-03-12 00:08:24 +00:00
firebirds
5653ce3c8c nightly update 2016-03-11 00:09:40 +00:00
firebirds
5bf80cd789 nightly update 2016-03-10 00:08:36 +00:00
alexpeshkoff
71f4da06d3 Fixed CORE-5144: Deadlock when database is encrypted or decrypted under high parallel load 2016-03-09 14:58:08 +00:00
firebirds
91c3270d37 nightly update 2016-03-09 00:11:10 +00:00
hvlad
b713cb895e Fixed bug CORE-5140 : Wrong error message when user tries to set number of page buffers into not supported value 2016-03-08 17:10:30 +00:00
firebirds
dc206d1009 nightly update 2016-03-08 00:08:15 +00:00
firebirds
92a60b4f97 nightly update 2016-03-07 00:09:14 +00:00
firebirds
13ab88e62f nightly update 2016-03-06 00:09:35 +00:00
dimitr
0b97f5fc41 Misc refactoring:
1) Renamed Hash class to HashTable
2) Reversed data/length arguments
3) Moved hash() routine to its own class/namespace
4) Fixed the license text
2016-03-05 17:40:49 +00:00
aafemt
a1d55c3e6e Optimized hash function for lock manager and hash join 2016-03-05 12:28:04 +00:00
firebirds
ab8fa6bf83 nightly update 2016-03-05 00:09:20 +00:00
firebirds
e5fdfec4bf nightly update 2016-03-04 00:10:06 +00:00
paulbeach
150fdb8710 Fix qsort_r for Darwin 2016-03-03 15:04:02 +00:00
firebirds
21730b582a nightly update 2016-03-03 00:09:15 +00:00
aafemt
27395a0831 Savepoints refactoring that fixes CORE-4701, CORE-4424 and CORE-4483 2016-03-02 15:33:16 +00:00
firebirds
87e6a22b6b nightly update 2016-03-01 00:09:46 +00:00
firebirds
c5815ed1e5 nightly update 2016-02-29 00:09:09 +00:00
dimitr
82553cf5d2 Misc: remove the redundant space in the explained plan output. 2016-02-28 08:45:42 +00:00
firebirds
53f244a8bb nightly update 2016-02-28 00:08:37 +00:00
firebirds
0d0cdff99b nightly update 2016-02-27 00:09:13 +00:00
dimitr
f82597bad9 Split a 5-way join into two smaller joins to help the optimizer in cases when statistics is outdated (index creation time suffers when there are many tables/indices). While being there, cache requests that weren't cached yet. 2016-02-26 17:19:29 +00:00
alexpeshkoff
926e3d903e Fixed some asserts and segfaults in crypto manager
Disable simultaneous nbackup & encrypt/decrypt operation
2016-02-26 12:55:34 +00:00
firebirds
bc0e65fd4b nightly update 2016-02-26 00:09:25 +00:00
hvlad
2dc879afca This should fix known issues with MERGE and stable cursor (see CORE-3362).
Thanks to Dmitry for idea
2016-02-25 09:20:01 +00:00
asfernandes
6760fe25c8 Misc. 2016-02-25 01:50:46 +00:00
firebirds
26b2e5a9d1 nightly update 2016-02-25 00:09:00 +00:00
dimitr
477af6bb96 Checking the datatype at compile time is unreliable: some nodes return one type at compile time and another type at runtime, thus causing unexpectedly missing casts. I'm moving the check to runtime, this should fix the remaining regressions (fingers crossed). 2016-02-24 20:11:34 +00:00
firebirds
b0abaa75f0 nightly update 2016-02-24 00:08:54 +00:00
dimitr
04f5f59ff8 Yet another postfix for CORE-5097, it resolves regressions for core_1173.fbt and core_1525.fbt. 2016-02-23 08:20:02 +00:00
firebirds
1229a361cc nightly update 2016-02-23 00:09:11 +00:00
firebirds
482331ad21 nightly update 2016-02-22 00:08:54 +00:00
dimitr
fb49b002c6 Fixed the comment. 2016-02-21 09:02:11 +00:00
dimitr
67151a6b43 Corrected my old commit re. optimization of the system requests. 2016-02-21 08:54:31 +00:00
firebirds
f99d0ea607 nightly update 2016-02-21 00:08:36 +00:00
firebirds
2a7a2ecff9 nightly update 2016-02-20 00:11:24 +00:00
firebirds
b8a11dcb4d nightly update 2016-02-19 00:09:06 +00:00
firebirds
0e0a5abb45 nightly update 2016-02-18 00:08:33 +00:00
hvlad
f2c8f05846 Front ported for CORE-5067 : Blocking new connections as a consequence of the too long sweep security2.fdb 2016-02-17 09:21:09 +00:00
firebirds
2f04c8d375 nightly update 2016-02-17 00:08:52 +00:00
firebirds
25e28f21c5 nightly update 2016-02-16 00:09:49 +00:00
asfernandes
6259b1b1e0 Misc. 2016-02-15 02:53:24 +00:00
firebirds
b1d78c9258 nightly update 2016-02-15 00:09:30 +00:00
firebirds
a699b57800 nightly update 2016-02-13 00:09:48 +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
firebirds
5d673233f3 nightly update 2016-02-12 00:09:34 +00:00
firebirds
d183257ab9 nightly update 2016-02-11 00:08:59 +00:00
asfernandes
05dc362017 Fixed CORE-5107 - set autoddl off and sequence of: ( create view V as select * from T; alter view V as select 1 x from rdb$database; drop view V; ) leads to server crash. 2016-02-10 17:53:44 +00:00
firebirds
da15c3ccba nightly update 2016-02-08 00:08:48 +00:00
alexpeshkoff
0e45ec6caa Postfix for CORE-5100, thanks to Dmitry Sibiryakov 2016-02-07 07:44:46 +00:00
firebirds
bdeca659cd nightly update 2016-02-07 00:09:13 +00:00
firebirds
7fc9275d08 nightly update 2016-02-06 00:09:07 +00:00
alexpeshkoff
56e5ec3d78 Fixed CORE-5105: Deadlocks when database is initially encrypted 2016-02-05 15:21:58 +00:00
alexpeshkoff
e7270beacd Postfix for CORE-5100: avoid races caused by temporary changed bdb_buffer 2016-02-05 15:13:47 +00:00
hvlad
c0e078af12 Missed piece for CORE-5104, thanks to Alex again 2016-02-05 15:09:54 +00:00
hvlad
99cbccccb8 Fixed bug CORE-5104 : External data source selects became slow
Thanks to Alex
2016-02-05 15:05:14 +00:00
firebirds
0d5f08234d nightly update 2016-02-05 00:09:18 +00:00
asfernandes
b5a34e985f Move the code and add the CAST only when required, per Dmitry comment. 2016-02-04 14:28:26 +00:00
hvlad
0719958901 Fixed bug CORE-5101 : Backup restore is slow in FB3 when the database contains many small tables with indices 2016-02-04 10:33:02 +00:00
alexpeshkoff
0c2f694ead Postfix for CORE-5100: restored binary compatibility with crypt plugins for RC1 2016-02-04 09:22:03 +00:00
firebirds
7c0cd594b7 nightly update 2016-02-04 00:10:30 +00:00
asfernandes
51d57b0a97 Fixed CORE-5097 - COMPUTED-BY expressions are not converted to their field type inside the engine. 2016-02-03 15:22:36 +00:00
alexpeshkoff
bebf1d5a70 Implemented CORE-5100: Improve control over database crypt keys 2016-02-03 13:20:41 +00:00
firebirds
91f7b5ec56 nightly update 2016-02-03 00:10:30 +00:00
firebirds
2f824e345d nightly update 2016-02-02 00:10:04 +00:00
alexpeshkoff
08d4a3ed45 Fixed CORE-5044: Pages are encrypted for each shadow separately 2016-02-01 16:16:42 +00:00
dimitr
8db2fdbd02 Fixed (or worked around, if you wish) redundant UTF8->system conversions happening if isc_dpb_utf8_filename tag is located in the middle of DPB. 2016-02-01 15:05:44 +00:00
firebirds
9dca0e22ab nightly update 2016-02-01 00:09:15 +00:00
firebirds
c8d6c34ec5 nightly update 2016-01-31 00:09:25 +00:00
asfernandes
436b531774 Misc. 2016-01-31 00:06:06 +00:00
firebirds
af9cd08f83 nightly update 2016-01-30 00:08:47 +00:00
alexpeshkoff
784260a967 Simplified code - thanks to Vlad 2016-01-29 15:46:06 +00:00
alexpeshkoff
92f1cef51d Fixed regression in CryptoManager added after RC1 - avoid reading incorrect header when database is locked by nbackup 2016-01-29 14:12:15 +00:00
firebirds
f586ec80fe nightly update 2016-01-29 00:08:49 +00:00
firebirds
346c6d2c04 nightly update 2016-01-28 00:10:41 +00:00
hvlad
714e6c2eaf Remove LCK_idx_reserve introduced with 64-bit transaction ID.
Restore original logic in BTR_next_index (wait for tx lock when index build is in progress). 
Use irt_repeat::irt_root to store high 32 bit of tra_num. 
It also fixed deadlock related with LCK_idx_reserve lock (reported privately).
2016-01-27 11:11:38 +00:00
firebirds
efc65175f8 nightly update 2016-01-26 00:08:27 +00:00
hvlad
8fc0267026 Cleanup 2016-01-25 14:17:50 +00:00
alexpeshkoff
b0edf7875e Postfix for CORE-5082: reorganized sources according to Vlad request 2016-01-25 13:52:16 +00:00
firebirds
1d7aa7c7bd nightly update 2016-01-25 00:09:57 +00:00
dimitr
99ad42ab82 This should fix the races while accessing the relation statistics inside dbb_stats. Reads/writes/fetches/marks are incremented (CCH) and read (INF) unprotected, as it's crash safe and read skews are acceptable. Other counters (both global and relation wise) are protected with a mutex. They're incremented on demand based on the attachment counters (via diffs). While being there, cleaned up the currently unused performance counters. 2016-01-24 21:14:18 +00:00
alexpeshkoff
eacbf41269 Fixed CORE-5082: Server does not validate correctness of user/password pair provided in EXECUTE STATEMENT operator 2016-01-24 17:58:28 +00:00
firebirds
6bed521926 nightly update 2016-01-22 00:09:23 +00:00
hvlad
5b2f99456d Fixed bug CORE-5078 : "Invalid BLOB ID" error 2016-01-21 11:00:07 +00:00
robocop
af3cb7700a Misc. 2016-01-21 00:25:55 +00:00
robocop
e7a69b2932 Typo. 2016-01-21 00:25:23 +00:00
firebirds
7521b16b53 nightly update 2016-01-21 00:10:02 +00:00
hvlad
69afe4b976 Fixed bug CORE-5075 : Triger on DISCONNECT with dynamic SQL (ES 'insert into ...'): 1) does not work in 3.0
Also, log exception happens in ON DISCONNECT trigger.
2016-01-20 10:05:14 +00:00
firebirds
7542d3037a nightly update 2016-01-19 00:09:32 +00:00
alexpeshkoff
b09b956eab Fixed CORE-5077: ISQL does not show encryption status of database 2016-01-18 17:30:37 +00:00
firebirds
af0a7b2add nightly update 2016-01-18 00:10:14 +00:00
asfernandes
052af7edd4 Misc. 2016-01-17 01:46:26 +00:00
firebirds
c14a3355c9 nightly update 2016-01-15 00:09:22 +00:00
hvlad
d82e043042 Fixed crash reason (see CORE-5075).
Error on disconnect requires more analyzing.
2016-01-14 23:09:01 +00:00
firebirds
c3eb0903c2 nightly update 2016-01-14 00:10:20 +00:00
dimitr
051e6f6b4c Minor correction. 2016-01-13 10:08:31 +00:00
firebirds
bb5e328b12 nightly update 2016-01-12 00:09:16 +00:00
firebirds
bd8a101090 nightly update 2016-01-11 00:09:49 +00:00
firebirds
d3d02e43ae nightly update 2016-01-07 00:09:51 +00:00
asfernandes
dcdec26c77 Revert to the bad (that works) commit for CORE-5062. It's difficult to work when both the original architects and the users do bad things in relation to CHAR and MBCS. 2016-01-06 18:20:39 +00:00
firebirds
ddb1da8d89 nightly update 2016-01-04 00:09:22 +00:00
firebirds
7e71b2c290 nightly update 2016-01-03 00:10:14 +00:00
alexpeshkoff
aa55704f0f Fixed CORE-5060: Cannot CREATE VIEW that selects from a system table, despite having all grants 2016-01-02 14:41:17 +00:00
alexpeshkoff
f4defcd2bc Postfix for CORE-5056: better error reporting, thanks to Claudio 2016-01-02 11:41:50 +00:00
hvlad
9165f8b596 New feature CORE-1538 : Add an option to isc_database_info to return the number of free pages in a database 2016-01-02 11:28:53 +00:00
asfernandes
30e729d7c5 Revert fix for CORE-5062 for better investigation. 2016-01-02 01:45:46 +00:00
asfernandes
7638ad530a Fixed CORE-5062 - CHAR_TO_UUID on column with index throws expression evaluation not supported Human readable UUID argument for CHAR_TO_UUID must be of exact length 36. 2016-01-02 01:04:30 +00:00
firebirds
6e6c32bf68 nightly update 2015-12-31 00:09:29 +00:00
alexpeshkoff
7b5b0ca838 Fixed CORE-5056: Write-lock of database file is cleared ("W" disappears from output of lsof <db_name>) when remote machine obtains DB header running "fbsvcmgr <remote_host>/port:service_mgr action_db_stats <remote_dbname>" 2015-12-30 15:16:43 +00:00
firebirds
515f5e5408 nightly update 2015-12-30 00:12:03 +00:00
dimitr
3b04931ea0 Fixed CORE-4708: Content of MON$EXPLAINED_PLAN in MON$STATEMENTS is truncated if exceeds the 32KB limit. 2015-12-29 19:00:05 +00:00
dimitr
8db7decfbd Tag the shmem session clumplets with username. This allows much faster lookups for non-locksmith users. Also, it allows to simplify some code. While being there, cleaned up some unused logic. 2015-12-29 15:17:20 +00:00
alexpeshkoff
0558b970fe Fixed CORE-5047: mapUser() routine establish secondary attach using wrong provider 2015-12-29 14:39:00 +00:00
firebirds
a19a555ad7 nightly update 2015-12-29 00:10:39 +00:00
dimitr
df55756907 Unwind the cache before throwing. This prevents lock-ups during database shutdown. 2015-12-28 06:22:32 +00:00
firebirds
a20ae4fa30 nightly update 2015-12-26 00:09:56 +00:00
robocop
539fd4d80e Misc. 2015-12-25 01:08:17 +00:00
firebirds
6ea7ae93d7 nightly update 2015-12-25 00:09:23 +00:00
firebirds
fc9f31ba44 nightly update 2015-12-24 00:09:39 +00:00
firebirds
9928a8396b nightly update 2015-12-23 00:10:18 +00:00
firebirds
a4b437e2a5 nightly update 2015-12-22 00:10:42 +00:00
dimitr
129f4826de Cleaned up the unused routine. 2015-12-21 09:48:12 +00:00
firebirds
04476b0a70 nightly update 2015-12-20 00:11:28 +00:00
dimitr
302cd6b401 Fixed CORE-4840: Transactions with isc_tpb_autocommit can hang the server. 2015-12-19 10:43:47 +00:00
firebirds
3bc500e57d nightly update 2015-12-19 00:09:46 +00:00
asfernandes
0e686e0c58 Avoid warnings with clang. 2015-12-18 16:34:33 +00:00
firebirds
2f36485fbe nightly update 2015-12-18 00:09:17 +00:00
aafemt
0903af542e Rollback 2015-12-17 13:44:34 +00:00
firebirds
3583fcb4e6 nightly update 2015-12-17 00:09:09 +00:00
dimitr
e39801c450 This should fix the minor error reporting regression noticed for bugs.core_3323. 2015-12-16 16:43:59 +00:00
firebirds
08a462d3cc nightly update 2015-12-16 00:10:28 +00:00
alexpeshkoff
8d436826c6 Mostly comments needed after fix for CORE-5041, also added some checks to be safer with repeated I/O 2015-12-15 16:54:23 +00:00
firebirds
d5e5d40b15 nightly update 2015-12-15 00:08:56 +00:00
aafemt
1fc4e352b0 Allow key holders to be called on client side (CORE-5043) 2015-12-14 14:07:05 +00:00
firebirds
ef33da01b9 nightly update 2015-12-14 00:09:54 +00:00
asfernandes
047175e1a5 Misc. 2015-12-13 01:02:02 +00:00
firebirds
49a7242c29 nightly update 2015-12-12 00:09:37 +00:00
aafemt
7cf4523886 Allow only one ALTER DATABASE ENCRYPT query in transaction 2015-12-11 19:46:32 +00:00
alexpeshkoff
53bc8eb2cb Postfix for CORE-5041: try to leave slow I/O mode as soon as possible 2015-12-11 13:44:49 +00:00
dimitr
6b6b605e01 Fixed possible problems with asynchronous query cancellation (recent regression). 2015-12-11 06:52:44 +00:00
firebirds
31e23b993d nightly update 2015-12-11 00:10:22 +00:00
alexpeshkoff
0891bc723d Fixed CORE-5041: Database may get corrupted after ALTER DATABASE ENCRYPT/DECRYPT issued multiple times per database open time 2015-12-10 16:58:58 +00:00
firebirds
fc04ada549 nightly update 2015-12-10 00:10:27 +00:00
aafemt
84573c0854 Perform db encryption checks at ddl time to avoid corrupting database by wrong plugin name in header 2015-12-09 14:22:13 +00:00
firebirds
5308c3d5eb nightly update 2015-12-07 00:09:51 +00:00
asfernandes
35dc963ebd Misc. 2015-12-06 22:49:24 +00:00
firebirds
8163908a98 nightly update 2015-12-05 00:08:55 +00:00
firebirds
48a328d403 nightly update 2015-12-04 00:09:50 +00:00
firebirds
0ca1dd8b1a nightly update 2015-12-02 00:12:35 +00:00
hvlad
6a41c96166 Fixed AV in CS introduced recently. Dmitry, please review. 2015-12-01 21:12:31 +00:00
dimitr
bf7951b259 Second round of my checkout/rescheduling changes. 2015-12-01 12:23:43 +00:00
firebirds
75b89cb090 nightly update 2015-11-30 00:11:54 +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
firebirds
6f608d9ab8 nightly update 2015-11-28 00:09:51 +00:00
firebirds
bac40c7cdd nightly update 2015-11-27 00:10:16 +00:00
roman-simakov
ce8d458e46 Fixed CORE-4978: Improved validation and fix of lost data pages. Thanks to Vlad for help. 2015-11-26 09:28:31 +00:00
firebirds
81a5ad0794 nightly update 2015-11-25 00:10:36 +00:00
hvlad
e74b4d384d Fixed bug CORE-5034 : At least 5 seconds delay on disconnect could happen if disconnect happens close after Event Manager initialization 2015-11-24 23:33:13 +00:00
hvlad
7f470a4aea Fixed bug CORE-5033 : File fb_user_mapping could be left in Firebird lock directory after correct shutdown of all Firebird worker processes 2015-11-24 23:17:26 +00:00
firebirds
a3763abd81 nightly update 2015-11-24 00:11:26 +00:00
firebirds
7edbefc1dd nightly update 2015-11-21 00:10:33 +00:00
hvlad
a6d615c0cd Fix one of the reason for AV in the engine (see CORE-4680, test by Pavel Zotov at 18 Nov 2015).
The race when gone attachment released database object while another attachment is initialized and uses same database object.
Could happens with shared cache (former SS) only.
2015-11-20 10:17:54 +00:00
dimitr
fb7f56077c Misc. 2015-11-20 08:47:15 +00:00
firebirds
227214a4ee nightly update 2015-11-20 00:10:22 +00:00
asfernandes
9f8062b7d1 Misc. 2015-11-19 01:12:04 +00:00
firebirds
5b680cc366 nightly update 2015-11-19 00:10:40 +00:00
asfernandes
85cae875bf Misc. 2015-11-18 01:10:08 +00:00
firebirds
bd795e29e7 nightly update 2015-11-18 00:10:08 +00:00
dimitr
ff1222c994 Fixed CORE-5220: Regression: ORDER BY clause on compound index may disable usage of other indices. 2015-11-17 10:47:59 +00:00
firebirds
f148dbf724 nightly update 2015-11-17 00:09:54 +00:00
dimitr
e6e9e45b7e Reverted back my change from Jan-2014. I cannot reproduce the original problem anymore. Also, this resolves regression CORE-5018: Non-indexed predicates may not be applied immediately after retrieval when tables are being joined. 2015-11-16 20:33:56 +00:00
dimitr
52bb948978 This should fix CORE-5016: Server crashes during GC when DELETE is executed after adding new referencing column. 2015-11-16 12:09:38 +00:00
alexpeshkoff
5e0ba8c4a2 Partially rolled back changes in my last commit in order to restore CS support 2015-11-16 10:25:16 +00:00
alexpeshkoff
051ed9dd90 Slightly optimize loading of disk crypt plugin, thanks to Dmitry Sibiryakov 2015-11-16 09:48:16 +00:00
firebirds
70244421cf nightly update 2015-11-16 00:08:39 +00:00
firebirds
2063091aec nightly update 2015-11-14 00:10:02 +00:00
firebirds
3e31e873f4 nightly update 2015-11-13 00:08:52 +00:00
firebirds
1058556c16 nightly update 2015-11-12 00:09:07 +00:00
aafemt
537209b64a A little comment 2015-11-11 16:14:39 +00:00
alexpeshkoff
ea5a949d1a Fixed CORE-4991: Key holder plugin is loaded on connect to database but not on create 2015-11-11 13:53:04 +00:00
firebirds
23bd54fb34 nightly update 2015-11-11 00:12:42 +00:00
alexpeshkoff
7ed55fbe8f Fixed CORE-4990: Database is not decrypted completely 2015-11-10 15:54:02 +00:00
asfernandes
f7257bfa1a Pass MessageMetadata with offsets to external routines make* methods. 2015-11-10 14:47:57 +00:00
firebirds
a755a4862f nightly update 2015-11-10 00:09:21 +00:00
hvlad
64e8e94c24 Correct check for maximum index depth 2015-11-09 21:39:50 +00:00
alexpeshkoff
ee96e00cb5 Fixed CORE-4999: Deadlock when trying to access database with invalid crypt key 2015-11-09 15:10:44 +00:00
firebirds
226166bd38 nightly update 2015-11-09 00:09:53 +00:00
firebirds
1cffbd5f5a nightly update 2015-11-07 00:10:03 +00:00
alexpeshkoff
3434d0aeee Fixed CORE-4969: SEC$USERS table is unavailable in case of any error in any configured user manager plugin 2015-11-06 17:10:27 +00:00
firebirds
6e8d27479f nightly update 2015-11-06 00:09:19 +00:00
firebirds
239dc5195c nightly update 2015-11-05 00:09:18 +00:00
hvlad
58248822af Removed unneeded assert, correct code a bit as Dmitry suggested 2015-11-04 07:23:58 +00:00
dimitr
647bad2d61 Fixed attachment lock usage. Minimized chances for races during database shutdown. 2015-11-04 06:06:26 +00:00
firebirds
ca02915999 nightly update 2015-11-04 00:10:22 +00:00
hvlad
af286a2520 Additional means to avoid crash\hangup when application unload fbclient.dll not calling fb_shutdown.
Fixed reason of 500 ms delay experienced by such applications (described by Arno in fb-devel).
Fixed missing assignment of thread priorities.
2015-11-03 09:12:12 +00:00
firebirds
07c83f9c53 nightly update 2015-11-03 00:09:38 +00:00
dimitr
6c4898dd76 Fixed the assertion inside the looper (req_caller was not cleared for procedure requests terminated due to exception). 2015-11-02 11:48:59 +00:00
dimitr
212faade87 Simplified the locking logic and fixed races during record backout. 2015-11-02 11:46:43 +00:00
firebirds
6a57d0dbe7 nightly update 2015-11-02 00:10:00 +00:00
firebirds
8e633e0047 nightly update 2015-10-31 00:09:44 +00:00
dimitr
7134690bf3 Fixed CORE-4984: Ordering by compound index together with a range condition gives wrong results. 2015-10-30 06:08:19 +00:00
firebirds
4abd39b71c nightly update 2015-10-30 00:10:50 +00:00
alexpeshkoff
2e52275a0b Fixed regression cause by fix for CORE-4980: restore creation of generators before privileges - one generator is required to create privileges correctly 2015-10-29 15:17:15 +00:00
dimitr
bbcc9654c3 Generic solution for CORE-4982: Server crashes during "select from procedure" if exception is thrown while backing out the current savepoint. 2015-10-29 11:18:56 +00:00
firebirds
18e351f9ee nightly update 2015-10-28 00:09:12 +00:00
alexpeshkoff
ea49fcaa52 Fixed CORE-4980: Operator REVOKE can modify rights granted to system tables at DB creation time 2015-10-27 16:48:31 +00:00
firebirds
9ce29345fb nightly update 2015-10-27 00:09:59 +00:00
dimitr
769265ee1c Misc. 2015-10-26 10:28:44 +00:00
firebirds
dfcfa1955a nightly update 2015-10-24 00:09:12 +00:00
alexpeshkoff
ff1474f789 Avoid loading same international module many times 2015-10-23 13:09:47 +00:00
robocop
a59f9653e1 I prefer explicit conversions instead of guessing what the compiler did. 2015-10-23 05:27:49 +00:00
robocop
dc5a4fdf24 Misc. 2015-10-23 03:08:47 +00:00