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

47740 Commits

Author SHA1 Message Date
hvlad
1a075b8d5a Fixed bug CORE-5448 : FB3 - crash (consistency check) when creating view on table which has column with character set none, database default charset is utf8, and utf8 default collation is 'unicode' 2017-02-02 13:33:31 +02:00
firebirds
7a83352a1d increment build number 2017-01-31 00:02:21 +00:00
firebirds
079dafd348 increment build number 2017-01-29 00:02:21 +00:00
Dmitry Yemanov
cbe9ac071f Preserve the alias after the relation/procedure node copying 2017-01-28 11:49:03 +03:00
firebirds
1d5ec591f6 increment build number 2017-01-28 00:02:21 +00:00
Dmitry Yemanov
37e2aa350b Reworked bugfix for CORE-5456. Now it addresses CORE-5457 as well. 2017-01-27 11:31:29 +03:00
firebirds
d8f0968ae6 increment build number 2017-01-26 00:02:19 +00:00
hvlad
a051c78dd1 Improvement CORE-5434 : Read-only transactions in SuperServer could avoid immediate write of Header and TIP pages after change 2017-01-25 21:39:16 +02:00
firebirds
8217ad40d9 increment build number 2017-01-21 00:02:24 +00:00
Dmitry Yemanov
e8dd0b1aec Bugfix CORE-5456: Migrating Firebird 2.5.2 to 3.0.1 gbak restore crashes at the end always 2017-01-20 09:11:19 +03:00
firebirds
6102a813e3 increment build number 2017-01-20 00:02:24 +00:00
hvlad
0fab1a8559 Fixed bug CORE-5464 : AV in fbclient when reading blob stored in incompatible encoding 2017-01-20 00:43:48 +02:00
hvlad
ddd5d0437d Make validation detect and fix data page error when DP marked as secondary contains primary record version(s).
See CORE-5459.
So far i can't reproduce the corruption thus ticket is not resolved.
2017-01-20 00:29:26 +02:00
firebirds
94818ef4f0 increment build number 2017-01-17 00:02:23 +00:00
7e2d7d12c9 Removed unused variable - thanks to Adriano 2017-01-16 11:35:32 +03:00
firebirds
b073db2e89 increment build number 2017-01-16 00:02:32 +00:00
hvlad
b8fdca00d2 Fixed Windows build 2017-01-15 12:17:27 +02:00
firebirds
946d5b2fad increment build number 2017-01-14 00:02:31 +00:00
e806efd3e3 Better names - suggested by Dmitry and Vlad 2017-01-13 14:57:01 +03:00
40f782ae3e Backported fix for CORE-5452: Segfault when engine's dynamic library is unloaded right after closing worker threads (GC and/or cache writer) 2017-01-13 14:29:54 +03:00
c112d5db1d Backported fix for CORE-5368: Regression: client application is hang (in same cases trow an access violation in Engine12.dll) on selecting from multiple threads using 1 embedded connection 2017-01-13 13:00:40 +03:00
firebirds
dbbc66a245 increment build number 2017-01-10 00:03:18 +00:00
ef2fbabf1e Backported implementation of CORE-5442: Enhance control upon ability to share database crypt key between attachments in SS 2017-01-09 20:28:48 +03:00
firebirds
7d5daaf763 increment build number 2017-01-08 00:02:31 +00:00
Dmitry Yemanov
50d3041cf1 This check does not seem actual anymore, addresses CORE-1095 and CORE-3530 2017-01-07 15:46:22 +03:00
firebirds
d8153a8891 increment build number 2017-01-07 00:02:34 +00:00
hvlad
90a46fa3a8 Correction for recent patch for CORE-5422.
I was a bit wrong - DPM_fetch should not change rpb_prior
2017-01-06 16:27:32 +02:00
hvlad
0eb85afa8e Fixed bug CORE-5422 : Decompression overran buffer after rollback 2017-01-06 11:59:42 +02:00
firebirds
320681bc56 increment build number 2017-01-06 00:02:31 +00:00
Dmitry Yemanov
3ca0d677c8 Bugfix CORE-5414: Error restoring on FB 3.0 from FB 2.5: bugcheck 221 (cannot remap) 2017-01-05 21:31:35 +03:00
firebirds
1fbe5be37e increment build number 2017-01-05 00:02:35 +00:00
Dmitry Yemanov
abc072ad4e Bugfix CORE-5435: Badly selective index could be used for extra filtering even if selective index is used for sorting 2017-01-04 22:32:48 +03:00
Dmitry Yemanov
5dca3df3d9 Fixed CORE-5421: Performance degradation in FB 3.0.2 compared to FB 2.5.7. 2017-01-04 19:48:20 +03:00
firebirds
81da9d8df1 increment build number 2016-12-31 00:02:36 +00:00
hvlad
f8d39e0bf9 Improvement CORE-4563 : Add support for Windows 8/2012 fast/low-latency "TCP Loopback Fast Path" functionality 2016-12-30 02:19:22 +02:00
hvlad
80096303bc Merge branch 'B3_0_Release' of https://github.com/FirebirdSQL/firebird into B3_0_Release 2016-12-30 02:11:52 +02:00
hvlad
52d9a05a0f Backport from master:
Optimized hash function for lock manager and hash join
Notes:
- lock print extension is not backported
- Alex, please review linux build. I did not include changes in builds/posix/make.rules here as i'm not sure it is required
2016-12-30 02:11:24 +02:00
firebirds
89af0cd248 increment build number 2016-12-30 00:02:33 +00:00
hvlad
8ca97fb718 Backport from master:
Remove not necessary sync points - dbb_threads_sync and dbb_lck_sync
2016-12-30 01:50:49 +02:00
firebirds
1232b23824 increment build number 2016-12-29 00:02:32 +00:00
c0f352409a Backported fix for CORE-5425: Server hangs under load test 2016-12-28 11:20:53 +03:00
firebirds
34e91702d3 increment build number 2016-12-28 00:02:31 +00:00
firebirds
fab2cdae75 increment build number 2016-12-26 00:02:35 +00:00
0ca6c0dc2f Backported fix for CORE-5428: Rare segfault when preparing request working with a table with triggers 2016-12-25 18:08:30 +03:00
1d27cdbabd Warning 2016-12-25 17:27:13 +03:00
firebirds
39af593a74 increment build number 2016-12-12 00:02:32 +00:00
hvlad
51cb2c91b2 Fixed bug CORE-5417 : Engine could hang up if auto-sweep is starting while database is shutting down 2016-12-11 22:26:34 +02:00
firebirds
e2234cedc2 increment build number 2016-12-06 00:02:31 +00:00
Dmitry Yemanov
49d7996e02 Attempt to fix CORE-5392: BUCHECK 179(decompression overran buffer) or unexpected lock conflict may happen during record version backout. 2016-12-05 14:48:41 +03:00
firebirds
89c4acb3ce increment build number 2016-12-02 00:02:32 +00:00
Adriano dos Santos Fernandes
48d43a88fe Fixed CORE-5410 - Dependencies are not stored when using some type of contructions in subroutines. 2016-12-01 12:55:01 -02:00
firebirds
8b3c6b40f7 increment build number 2016-11-25 00:02:24 +00:00
Dmitry Yemanov
24e7e1b6ee Second attempt, this time MSVC10 complains 2016-11-24 11:41:16 +03:00
Dmitry Yemanov
acf9fbee1b Avoid warnings in pre-c++11 compiler modes (gcc) 2016-11-24 11:02:55 +03:00
firebirds
a2d0fae543 increment build number 2016-11-23 00:02:31 +00:00
hvlad
d5d9e74df9 Merge branch 'dp_numbers_cache' into B3_0_Release 2016-11-22 12:45:17 +02:00
firebirds
eb6f808ce9 increment build number 2016-11-22 00:02:35 +00:00
firebirds
35fc60dcc3 increment build number 2016-11-18 00:02:34 +00:00
hvlad
be8a09d510 Fixed bug CORE-5350 : Assert in CachedMasterInterface::set 2016-11-17 13:12:40 +02:00
hvlad
0e0d70998e Clear dp numbers cache before re-use RelationPages in next GTT instance 2016-11-16 13:33:41 +02:00
hvlad
ca3c9b7893 Use relation pool for data page phys numbers map.
It makes impossible to use batch allocation of RelationPages instances for GTT's but it is not important until metadata cache is not shared.
2016-11-10 16:29:31 +02:00
Dmitry Yemanov
c14bb65ce0 Revert back old change that's not actual anymore but causing undesired side-effects in CS under concurrent load. 2016-11-10 12:58:18 +03:00
firebirds
6a32ca767e increment build number 2016-11-09 00:02:30 +00:00
Dmitry Yemanov
b4448a931f Bugfix CORE-5382: Incorrect processing (truncation) of SQL statement with length 10MB+1. 2016-11-08 13:24:28 +03:00
hvlad
1ca870b88c Respect large scans in new code path 2016-11-08 12:17:14 +02:00
Dmitry Yemanov
0e77b3e9dd Attempt to fix CORE-5393: Bad optimization of some operations with views containing subqueries. 2016-11-08 10:59:36 +03:00
firebirds
bd045430c6 increment build number 2016-11-05 00:02:30 +00:00
firebirds
ca94d51737 increment build number 2016-11-04 00:02:29 +00:00
Adriano dos Santos Fernandes
d1fe9675c0 Fixed CORE-5390 - ISQL crashes corrupting memory when statement length is greater than 10 MB. 2016-11-03 13:36:00 -02:00
firebirds
e5b7190e22 increment build number 2016-10-29 00:02:27 +00:00
Adriano dos Santos Fernandes
ea4e605130 Fixed CORE-5383 - Dependencies in package not recognised. 2016-10-28 15:19:17 -02:00
Popa Marius Adrian
fbbb31e8f6 create android x86/arm64/x86_64 scripts and ports (#59)
* add android.arm64 cross file

* add android arm64 makefile

* Deprecated in android-2x

* Add Android x86_64 cross and makefile

* Add Android x86 32bit makefile and cross
2016-10-28 14:38:43 +03:00
firebirds
64714f510c increment build number 2016-10-28 00:02:26 +00:00
8f0a70d1fb Backported fix for CORE-5384: Plugin manager fails to provide appropriate config information when name of configuration file is set in plugins.conf 2016-10-27 18:02:43 +03:00
firebirds
ad5f5ba2f4 increment build number 2016-10-26 00:02:31 +00:00
Dmitry Yemanov
5f6f5a3c0f Bugfix CORE-5381: Regression: could not execute query (select from view
with nested view).
2016-10-25 17:16:17 +03:00
firebirds
5f4f15360d increment build number 2016-10-25 00:02:29 +00:00
hvlad
2825af99a5 Fixed bug CORE-5257 : Enable nested keys in plugin configuration
Alex, please review
2016-10-24 23:19:00 +03:00
hvlad
8d5b1ff46e Introduced small per-relation cache of physical numbers of data pages.
It allows to reduce number of pointer page fetches and improves performance.
2016-10-24 01:09:08 +03:00
firebirds
c2812e739c increment build number 2016-10-20 00:02:29 +00:00
Adriano dos Santos Fernandes
21978036d5 Fixed CORE-1894 - Circular dependencies between computed fields crashs the engine. 2016-10-19 13:26:04 -02:00
firebirds
0aa921866a increment build number 2016-10-18 00:02:29 +00:00
f80121892b Fixed CORE-5379: Regression service API for isc_spb_sts_table 2016-10-17 19:19:39 +03:00
Adriano dos Santos Fernandes
13fd2f78b8 Fixed CORE-5314 - UDFs declared with large varchars take excessive time to execute. 2016-10-17 13:06:44 -02:00
firebirds
60c2339da2 increment build number 2016-10-15 00:02:33 +00:00
aafemt
926e226f92 Boolean datatype in gpre C++ module 2016-10-14 19:15:18 +03:00
John Paul Adrian Glaubitz
bd35281a05 Add platform support for Linux/m68k for the 3.0 branch (#52)
* Add generic platform support for Linux/m68k

* Include sem_t when determining values for FB_ALIGNMENT and FB_DOUBLE_ALIGN

On m68k, 'long long' is 16-bit aligned while 'sem_t' is 32-bit aligned
and we must therefore include 'sem_t' when determining the values for
FB_ALIGNMENT and FB_DOUBLE_ALIGN. Otherwise, the futex system call
will fail on these systems.

* Make sure that the version scripts include _IO_stdin_used on Linux

The GNU C library supports two ABIs for libio, one is the pre-2.1
ABI and the other is the current one. In order to determine which
ABI is to be used, the C library checks whether the _IO_stdin_used
symbol is exported by the executable. In case the symbol is present,
the new ABI is assumed, if the symbol is missing, the old ABI is
assumed. Thus, if an application is linked against a modern version
of glibc, it must export the _IO_stdin_used symbol as otherwise the
executable can crash or provoke other unexpected behavior on some
architectures like PowerPC or MIPS because the C library is using
the old ABI in this case.
2016-10-14 13:12:21 +03:00
firebirds
ff939ee04f increment build number 2016-10-13 00:02:32 +00:00
d3dd8f7c92 Backported fix for CORE-5359: MessageMetadata's getScale returns int and MetadataBuilder's setScale want unsigned 2016-10-12 17:48:01 +03:00
0971eebb8f Backported implementation of CORE-5374: Make database name available to crypt plugin 2016-10-12 15:24:03 +03:00
firebirds
27ff10f31d increment build number 2016-10-12 00:02:27 +00:00
Dmitry Yemanov
daf89f0892 Bump the version number 2016-10-11 08:49:10 +03:00
firebirds
a913d2fe26 increment build number 2016-10-08 00:02:29 +00:00
Adriano dos Santos Fernandes
300fb11e43 Fixed CORE-5366 - Regression: could not use CASE expression with more than 255 conditions. 2016-10-07 09:40:47 -03:00
firebirds
b388b0effc increment build number 2016-10-05 00:02:31 +00:00
Adriano dos Santos Fernandes
a7ecf536c0 Fixed CORE-5367 - Regression: (boolean) parameters as search condition no longer allowed. 2016-10-04 11:55:07 -03:00
firebirds
1e756814f9 increment build number 2016-09-27 00:02:30 +00:00
firebirds
c01ce05d42 increment build number 2016-09-26 00:02:24 +00:00
hvlad
d5ff6d82c2 Generate savepoint around blr_store for non-cursor INSERT's (INSERT INTO ... VALUES (...) ) with sub-select in VALUES list.
It fixes bug CORE-5337 : The subquery in the insert list expressions ignore the changes made earlier in the same executable block.
Note, existing procedures and triggers should be recompiled to have new BLR code.
2016-09-25 23:46:45 +03:00
firebirds
58dafb5ba2 increment build number 2016-09-23 00:02:23 +00:00
27b653834f Fixed CORE-5355: XpbBuilder fails to create new TPB 2016-09-22 14:49:33 +03:00
firebirds
681789bb44 increment build number 2016-09-21 00:02:28 +00:00
firebirds
70a694fdb6 increment build number 2016-09-20 00:02:34 +00:00
Dmitry Yemanov
372af3f29c Bugfix CORE-5351: LEFT JOIN incorrectly pushes UDF into the inner stream causing wrong results 2016-09-19 19:40:27 +03:00
firebirds
abb1bdddbc increment build number 2016-09-16 00:02:35 +00:00
42454158b7 Do not segfault in a case of unexpected exception 2016-09-15 20:01:28 +03:00
firebirds
dc23d91734 increment build number 2016-09-09 00:02:26 +00:00
Adriano dos Santos Fernandes
9951d944e3 Fixed CORE-5341 - User collate doesn't work with blobs. 2016-09-08 15:53:18 -03:00
firebirds
627cb7a5eb increment build number 2016-09-08 00:02:28 +00:00
hvlad
6a3d9d0016 Let UPDATE and DELETE statements ignore records already deleted in the same statement (but still visible because of stable cursor).
It fixed bugs
CORE-5322 : Cascade deletion in self-referencing table could raise "no current record for fetch operation" error), and
CORE-5142 : Error "no current record to fetch" if some record is to be deleted both by the statement itself and by some trigger fired during statement execution
2016-09-07 22:15:51 +03:00
firebirds
ba716e4774 increment build number 2016-09-07 00:02:27 +00:00
19bc36c815 Postfix for CORE-5326 2016-09-06 19:13:53 +03:00
firebirds
7bbe086111 increment build number 2016-09-06 00:02:28 +00:00
eb86289f69 Backported fix for CORE-5347: Races when initializing wire compression 2016-09-05 18:15:12 +03:00
firebirds
e6ccdd8502 increment build number 2016-09-03 00:02:30 +00:00
f75d77a937 Postfix for CORE-5326 - avoid segfault when attachment is released in incompletely initialized DB 2016-09-02 17:48:14 +03:00
4156615d01 Fixed CORE-5326: encrypting a database crashes host process when background encryption gets ready while no connection is established to that database 2016-09-02 12:16:32 +03:00
firebirds
1bdd0bb0b6 increment build number 2016-09-01 00:02:26 +00:00
hvlad
c43c959622 Fixed assertions (BDB_nbak_state_lock is not set for temporary page space) 2016-09-01 00:11:12 +03:00
firebirds
22ec4a52a3 increment build number 2016-08-27 00:02:28 +00:00
b4be07c95f Backported fix for CORE-5339: Assertion in createDatabase() when doing overwrite check 2016-08-26 19:04:57 +03:00
firebirds
f42bcb2f52 increment build number 2016-08-26 00:02:26 +00:00
43579acdd8 Minimum backport of CORE-5248: avoid NULL in RDB$ROLES.RDB$SECURITY_CLASS which made it possible for everyone to drop any role 2016-08-25 15:10:57 +03:00
firebirds
a5f9d89138 increment build number 2016-08-20 00:02:30 +00:00
d63e127438 Backported fix for CORE-5335: Segfault in remote server 2016-08-19 14:53:47 +03:00
firebirds
23b13b411e increment build number 2016-08-19 00:02:29 +00:00
hvlad
6e7afc90b5 Make VC 2013 x64 generate the same code as VC 2010 x64 : "lock xadd" instead of "lock add".
There was hagnups in SS x64 during new nbackup locking testing without this patch.
Note, both 32-bit compilers generate "lock xadd" instructions.
2016-08-18 13:28:59 +03:00
hvlad
377773f615 Reworked nbackup state lock handling to avoid performance penalty on every fetch 2016-08-18 13:28:44 +03:00
hvlad
6b7c554179 No need to release (and acquire again) cached lock if write lock is acquired repeatedly 2016-08-18 13:28:24 +03:00
hvlad
36a7a26346 Avoid hangup in SS when error happens at system attachment initialization time 2016-08-18 13:28:07 +03:00
firebirds
c083d20e4e increment build number 2016-08-18 00:02:30 +00:00
firebirds
710cc1d8da increment build number 2016-08-17 00:02:27 +00:00
Adriano dos Santos Fernandes
fb282b5a51 Fix buffer overflow. 2016-08-16 13:35:54 -03:00
hvlad
610594a525 Additional fix for CORE-5329. Once more thanks to Dmitry 2016-08-16 17:22:29 +03:00
firebirds
896c742941 increment build number 2016-08-15 00:02:27 +00:00
hvlad
408dff8cfc Fixed bug CORE-5329 : Database gets partially corrupted in the "no-reserve" mode
Thanks to Dmitry
2016-08-14 21:18:16 +03:00
firebirds
2682210b29 increment build number 2016-08-13 00:02:28 +00:00
1d5ac14bff Backported fix for open() files for very old kernels 2016-08-12 12:33:33 +03:00
firebirds
7652fa31e6 increment build number 2016-08-12 00:02:27 +00:00
hvlad
1db164a562 Attempt to make self-referencing foreign keys with ON UPDATE CASCADE work correctly.
It also fixes a bug CORE-5305 : CASCADE UPDATE fails for self-referencing FK
2016-08-11 20:53:18 +03:00
hvlad
0d0528b2bb Fixed bug CORE-5327 : internal Firebird consistency check (cannot find tip page (165), file: tra.cpp line: 2307) 2016-08-11 20:46:23 +03:00
firebirds
99adeeec70 increment build number 2016-08-11 00:02:26 +00:00
685344727f Backported implementation of CORE-5266: Allow statement 'create OR ALTER user sysdba password ...' to initialize empty securityN.fdb 2016-08-10 16:58:56 +03:00
firebirds
d1210a78e6 increment build number 2016-07-29 00:02:26 +00:00
df519fa8a4 Backported fix for CORE-5270: FBSVCMGR does not produce error while attempting to shutdown a database without specified timeout (prp_force_shutdown N) 2016-07-28 18:55:18 +03:00
1a4b7ebd91 Backported better fix for CORE-5264 2016-07-28 18:40:29 +03:00
firebirds
9133ae1023 increment build number 2016-07-28 00:02:26 +00:00
hvlad
96a24228b6 Backported fix for bug CORE-5302 : Performance regression when bulk inserting into table with indices 2016-07-27 12:51:27 +03:00
firebirds
1d5a25f7e2 increment build number 2016-07-27 00:02:25 +00:00
Adriano dos Santos Fernandes
0e90030370 Postfix for rework on CORE-5277 to avoid CORE-5304 regression (0d46c91).
CORE-5277 - Parameters with multibyte character sets allow to bypass the character limit of varchar fields.
CORE-5304 - Regression: Can not restore database with table contains field CHAR(n) and UTF8 character set.
2016-07-26 13:13:08 -03:00
firebirds
5dc67f3b7b increment build number 2016-07-25 00:02:24 +00:00
Dmitry Yemanov
600c62852d Fix the cast that is no longer necessary. 2016-07-24 11:29:36 +03:00
firebirds
f060d8381f increment build number 2016-07-18 00:03:03 +00:00
Adriano dos Santos Fernandes
1c6f688e79 Fixed CORE-5313 - Data type unknown error with LIST. 2016-07-17 20:42:01 -03:00
firebirds
d8411b02cc increment build number 2016-07-16 00:03:28 +00:00
8709dab13b Backported fix for CORE-5264: To unlock a raw device DB is not working. 2016-07-15 18:06:05 +03:00
firebirds
8a67ae05c3 increment build number 2016-07-15 00:03:15 +00:00
Dmitry Yemanov
1d4abeef4d Postfix for Adriano's commit. 2016-07-14 12:57:24 +03:00
firebirds
70c2fcf2c6 increment build number 2016-07-14 00:03:14 +00:00
Adriano dos Santos Fernandes
891c1727e6 Correction (CORE-5277 / CORE-5304). 2016-07-13 16:29:08 -03:00
Adriano dos Santos Fernandes
0d46c91f98 Rework on CORE-5277 to avoid CORE-5304 regression.
CORE-5277 - Parameters with multibyte character sets allow to bypass the character limit of varchar fields.
CORE-5304 - Regression: Can not restore database with table contains field CHAR(n) and UTF8 character set.
2016-07-13 15:52:17 -03:00
Adriano dos Santos Fernandes
aaeff69d91 Allow to use the BULK_INSERT hack with others commands. 2016-07-13 15:52:17 -03:00
Dmitry Yemanov
946c8ef115 Bugfix for CORE-5307: Random 'invalid transaction handle' errors are returned from the engine. 2016-07-13 18:47:06 +03:00
Adriano dos Santos Fernandes
8f02eb08bb Temporary reverting CORE-5277 due to CORE-5304 regression. 2016-07-13 11:53:15 -03:00
180e18c040 Backported fix for CORE-5308: ISQL hangs in BLOBVIEW command 2016-07-13 13:06:30 +03:00
firebirds
bfec209e88 increment build number 2016-07-12 00:03:08 +00:00
Dmitry Yemanov
9e4325a0f0 Postfix for CORE-5277: zero-initialize strings allocated for (? IS NULL) parameters to avoid garbage being read while validating the length. 2016-07-11 13:30:50 +03:00
firebirds
8ef0aef359 increment build number 2016-07-10 00:03:08 +00:00
Dmitry Yemanov
e529c6a4a5 Extend variable value in MON$CONTEXT_VARIABLES up to the possible
maximum (32765 bytes). This resolves CORE-5246: String truncation error
while selecting from MON$ tables if some user-defined context variable
exceeds 255 bytes in length.
2016-07-09 12:25:35 +03:00
firebirds
788c1083af increment build number 2016-07-09 00:04:24 +00:00
Dmitry Yemanov
26cb346aee Add missing condition for the prior commit. 2016-07-08 23:00:24 +03:00
Dmitry Yemanov
1cdded614e Bigfix CORE-5236: IN/ANY/ALL predicates may cause sub-optimal (late filtering) execution of joins 2016-07-08 21:49:35 +03:00
firebirds
85ed405814 increment build number 2016-07-08 00:03:06 +00:00
Adriano dos Santos Fernandes
258dba5de3 Follow up after Alex change - CORE-5277. 2016-07-07 13:13:01 -03:00
ab0ddd8010 Fix for CORE-5284: Firebird fails to build with USE_VALGRIND 2016-07-07 18:58:12 +03:00
9601efd3a0 Fixed regression in TCS/FB_SQL_SUBFUNC_1 2016-07-07 17:48:57 +03:00
firebirds
8620a0332c increment build number 2016-07-06 00:03:12 +00:00
a8fdbdfb6b Backported fix for CORE-5294: Memory leak when use SHOW GRANTS on new empty database (3.0.1 & 4.0; SS & SC) 2016-07-05 15:05:08 +03:00
firebirds
6b29749b8c increment build number 2016-07-01 00:03:13 +00:00
Adriano dos Santos Fernandes
df233ae4ad Postfix for CORE-5277 - Parameters with multibyte character sets allow to bypass the character limit of varchar fields. (9fede1e) 2016-06-30 10:02:41 -03:00
d963ef8db5 Backported fix for CORE-5296: Error in network protocol when performing callback to client for database crypt key 2016-06-30 13:38:50 +03:00
firebirds
74fe6275dd increment build number 2016-06-30 00:03:15 +00:00
0273ed992a Backported fix for CORE-5292: Database corrupted when trying to encrypt it but appropriate key is missing 2016-06-29 20:16:15 +03:00
firebirds
9620645057 increment build number 2016-06-29 00:03:10 +00:00
hvlad
ecbe975a14 Additional fix for CORE-4645, thanks to Dmitry 2016-06-28 14:46:24 +03:00
hvlad
92d0ca87cc Fixed bug CORE-5295 : Validation could read after the end-of-file when handle multifile database 2016-06-28 13:02:58 +03:00
firebirds
4dc7ece4f2 increment build number 2016-06-24 00:03:15 +00:00
Dmitry Yemanov
ced719d44f Bugfix for CORE-5154: Services API don't work with non-ascii database names (ported from aafemt/firebird). Also add some missing tags that might require transliteration. 2016-06-23 23:17:42 +03:00
firebirds
32c119a16e increment build number 2016-06-23 00:05:15 +00:00
hvlad
a7253810e3 Fixed bug CORE-5289 : Small memory leak when resultset is empty 2016-06-22 12:32:34 +03:00
firebirds
e558dc31dd increment build number 2016-06-21 00:03:11 +00:00
a1c576b7f3 Backported fix for CORE-5285: Segfault when attachment is closed before it's request/statement/etc. 2016-06-20 13:10:45 +03:00
firebirds
35c1a16c3f increment build number 2016-06-19 00:03:45 +00:00
Dmitry Yemanov
062f5d77be Bugfix for CORE-5275: Expression index may become inconsistent if CREATE
INDEX was interrupted after b-tree creation but before commiting.
2016-06-18 19:58:58 +03:00
f6c9b11bc3 Backported fix for CORE-5279: Granting access rights to view is broken 2016-06-18 10:31:39 +03:00
firebirds
4d0d42a02b increment build number 2016-06-18 00:03:42 +00:00
Adriano dos Santos Fernandes
e1f924fec2 Merge branch 'jrtc27-met-unaligned-access' 2016-06-17 15:20:24 +00:00
Adriano dos Santos Fernandes
4ec694f7cb Postfix for CORE-5277 - It's probably better to first check for well-formed data before calculat ethe length. 2016-06-17 11:09:45 +00:00
Adriano dos Santos Fernandes
9fede1eb64 Fixed CORE-5277 - Parameters with multibyte character sets allow to bypass the character limit of varchar fields. 2016-06-17 11:01:55 +00:00
firebirds
620cf67fc0 increment build number 2016-06-17 00:03:07 +00:00
3f9d1640bb Fixed assertions similiar to mentioned in CORE-5273 2016-06-16 12:18:51 +03:00
firebirds
e39f114076 increment build number 2016-06-16 00:04:28 +00:00
0828aff71e Backported fix for CORE-5278: A number of SPB parameters fail in FB 3 & 4 2016-06-15 19:17:57 +03:00
firebirds
b53d241471 increment build number 2016-06-11 00:03:16 +00:00
e560f6e0e8 Backported fix for CORE-5225: Authentication end with first plugin that has the user but auth fails; should continue with next plugin 2016-06-10 17:25:53 +03:00
Dmitry Yemanov
1cab1dca19 Fix CORE-5268: Nested OR conditions may lead to incorrest results 2016-06-10 15:18:23 +03:00
firebirds
228826254f increment build number 2016-06-10 00:03:32 +00:00
firebirds
42fc3afa6b increment build number 2016-06-04 00:03:41 +00:00
5fbbae63fa Backported fix for CORE-5213 2016-06-03 16:03:34 +03:00
firebirds
984a9aab1e increment build number 2016-06-03 00:02:50 +00:00
hvlad
50447a5365 Improvement CORE-5257 : Enable nested keys in plugin configuration 2016-06-03 00:35:42 +03:00
firebirds
bae264d541 increment build number 2016-05-24 00:02:51 +00:00
4fd2c41833 Backported fix for CORE-5249: Incorrect use of readlink() system call 2016-05-23 12:22:47 +03:00
firebirds
d44387ea1a increment build number 2016-05-19 00:02:51 +00:00
hvlad
435086e938 Correction, as Dmitry suggests. 2016-05-19 00:10:11 +03:00
hvlad
0db5c2df3f Fixed bug CORE-5234 : Access violation on UDF crashes server 2016-05-18 19:03:52 +03:00
641a2b913d Fixed CORE-5244: Wrong error message when trying to execute SELECT statement using isc_dsql_execute_immediate 2016-05-18 18:28:45 +03:00
b67eb4d9a7 Backported fix of possible buffer overflow when reading /etc/mtab 2016-05-18 11:48:49 +03:00
firebirds
1f1b12a523 increment build number 2016-05-18 00:02:53 +00:00
firebirds
b6cd40eb55 increment build number 2016-05-17 00:03:00 +00:00
Dmitry Yemanov
5f19de8ffb 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:32:59 +03:00
Dmitry Yemanov
444abef206 Fix CORE-5231 (EXECUTE STATEMENT: BLR error if more than 256 output
parameters exist).
2016-05-16 13:21:31 +03:00
firebirds
d435669c70 increment build number 2016-05-13 00:02:52 +00:00
Adriano dos Santos Fernandes
b6866bc374 Fixed problems reported by PVS-Studio - http://www.viva64.com/en/b/0396/ 2016-05-12 11:49:44 -03:00
Dmitry Yemanov
3ee0a82403 Fix page numbers datatype + misc adjustments. 2016-05-12 14:14:01 +03:00
hvlad
89e9ba7441 Refactor relation protection routines into a class.
Alex, please review changes related with DFW_reset_icu.
2016-05-12 13:41:12 +03:00
hvlad
bd555a15a4 Place expression index support routines where it should be.
Add protection from changes while expression index is built.
Remove PCMET module.
2016-05-12 11:29:02 +03:00
firebirds
4f15abf3f3 increment build number 2016-05-10 00:02:45 +00:00
Dmitry Yemanov
1e908629ad Misc. 2016-05-09 23:06:59 +03:00
James Clarke
6a8067ed5f 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-08 23:33:20 +03:00
firebirds
8ccde22222 increment build number 2016-05-07 00:02:55 +00:00
Adriano dos Santos Fernandes
8883def48c Regenerate file. 2016-05-06 19:35:08 -03:00
Dmitry Yemanov
54123663c2 Add new constants to the Pascal interface. 2016-05-06 23:49:03 +03:00
Dmitry Yemanov
dce0b4c64e 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:47:55 +03:00
Dmitry Yemanov
16e356f29f Bugfix CORE-5226. 2016-05-06 20:20:36 +03:00
Michal Kubecek
58a12d7c97 Allow to enforce IPv4 or IPv6 in URL-like connection string. 2016-05-06 20:20:05 +03:00
firebirds
194293cafa increment build number 2016-05-04 00:02:50 +00:00
Dmitry Yemanov
4465eeabbb Bump version number for v3 branch. 2016-05-03 20:44:15 +03:00
firebirds
322294bd71 increment build number 2016-05-03 00:03:16 +00:00
Dmitry Yemanov
c004a74c88 Bugfix CORE-5224: Transaction id tags for services API do not support
new 48 bit transaction ids.
2016-05-02 09:37:06 +03:00
firebirds
b0e0cf4f86 increment build number 2016-05-01 00:03:08 +00:00
Dmitry Yemanov
849bfac745 Prevent stack trace (line/column info) from overriding the real error's
SQLSTATE.
2016-04-30 18:16:20 +03:00
Dmitry Yemanov
5f0842ba2c Bugfix CORE-5222: SELECT WITH LOCK may raise unexpected update conflict
errors under concurrent load.
2016-04-30 17:13:49 +03:00
firebirds
ac7f92a90c increment build number 2016-04-30 00:05:04 +00:00
Adriano dos Santos Fernandes
4958d2cf91 Postfix for CORE-5220. 2016-04-29 13:38:39 -03:00
Adriano dos Santos Fernandes
c2c322a576 Fixed CORE-5220 - ISQL -X: double quotes are missed for COLLATE <C> of CREATE DOMAIN statement when <C> is from any non-ascii charset. 2016-04-29 13:31:54 -03:00
firebirds
5672912e54 increment build number 2016-04-29 00:02:51 +00:00
Dmitry Yemanov
198ef2bf04 Correction, as per Sean's comment. 2016-04-28 22:05:39 +03:00
Dmitry Yemanov
2d7261c430 Fix CORE-5217 and CORE-5218 with one shot. 2016-04-28 20:27:43 +03:00
Dmitry Yemanov
25313daa11 CORE-5216: Provide location context (line/column numbers) for runtime
errors raised inside EXECUTE BLOCK.
2016-04-28 15:36:36 +03:00
firebirds
224070ca8c increment build number 2016-04-27 00:02:50 +00:00
hvlad
713b68c813 Fixed bug CORE-5120 : Firebird 3.0 + fbclient 3.0 - POST_EVENT won't work 2016-04-26 23:10:18 +03:00
Dmitry Yemanov
984f84acd6 Backported bugfix for regression CORE-5183: line/column numbering may be
twisted if alias.name syntax is used.
2016-04-26 20:29:38 +03:00
firebirds
8d79992a59 increment build number 2016-04-26 00:02:49 +00:00
9c56856790 Backported fix for CORE-5201: Return nonzero result code when restore fails on activating and creating deferred user index 2016-04-25 17:19:54 +03:00
firebirds
9000c5e77f increment build number 2016-04-25 00:02:54 +00:00
Adriano dos Santos Fernandes
3b56361d60 Make debug build raise the same warning as in release build. 2016-04-24 20:21:39 -03:00
Dmitry Yemanov
86698770b4 Bugfix CORE-5207: ISQL -X may generate invalid GRANT USAGE statements
for domains.
2016-04-24 09:30:39 +03:00
firebirds
3052355b1b increment build number 2016-04-23 00:02:54 +00:00
Adriano dos Santos Fernandes
a08f7b8ab0 Fixed CORE-5193 - Precedence problem with operator IS. 2016-04-22 14:05:23 -03:00
Adriano dos Santos Fernandes
1635a935dd Fixed CORE-5167 - Allow implicit conversion between boolean and string. 2016-04-22 14:05:17 -03:00
firebirds
840415bf9a increment build number 2016-04-22 00:02:54 +00:00
41e9f3f919 Backported fix for CORE-5203: Single CPU core fully utilized with Trace session 2016-04-21 20:35:17 +03:00
firebirds
32b303311f increment build number 2016-04-21 00:02:49 +00:00
firebirds
22a1b4df7b increment build number 2016-04-20 00:02:46 +00:00
firebirds
3b0e0efb0d increment build number 2016-04-15 00:02:48 +00:00
Dmitry Yemanov
1767a517f9 Postfix for CORE-5194. 2016-04-14 13:45:04 +03:00
firebirds
e2ca9438fc increment build number 2016-04-14 00:02:47 +00:00
firebirds
2d838903e5 increment build number 2016-04-13 00:02:46 +00:00
Dmitry Yemanov
4a81181187 Minor cleanup for my last commit. 2016-04-12 22:59:20 +03:00
Dmitry Yemanov
a61a1f50a7 Fix the possible crash reported by Dimitry Sibiryakov in fb-devel. Maybe
not the most efficient solution, but at least in sync with ~200 other
places in the codebase.
2016-04-12 21:24:09 +03:00
Adriano dos Santos Fernandes
85a25ee4e5 Warning. 2016-04-12 14:22:39 -03:00
Adriano dos Santos Fernandes
53de05b69b Fixed CORE-5194 - Invalid computed by definition generated by isql -x. 2016-04-12 14:14:45 -03:00
firebirds
e859735f4a increment build number 2016-04-11 00:02:45 +00:00
14781bdbfc Postfix for CORE-5189: use unsigned operation code in User interface 2016-04-10 21:12:14 +03:00
firebirds
6fd59f1361 increment build number 2016-04-10 00:02:41 +00:00
firebirds
a03411a841 increment build number 2016-04-09 00:02:42 +00:00
hvlad
8680064d60 Fixed code formatting accidentally broken by my recent commit 2016-04-08 23:15:50 +03:00
Dmitry Yemanov
a25d98a166 Fix ISQL extraction of generators on 64-bit Linux. 2016-04-08 14:31:51 +03:00
firebirds
a42261cd6a increment build number 2016-04-08 00:02:41 +00:00
Dmitry Yemanov
d3f6fc0da2 Update the version string. 2016-04-07 23:22:22 +03:00
hvlad
c390be3276 Front ported fix for bug CORE-4645 : internal Firebird consistency check (cannot find tip page (165), file: tra.cpp line: 2375)
# Conflicts:
#	src/jrd/tra.cpp
2016-04-07 22:00:21 +03:00
cee74fc5e0 Backported fix for CORE-5189: Codes of operation of user management plugin are missing in public API 2016-04-07 16:29:18 +03:00
Dmitry Yemanov
eb68245922 Rework solution for CORE-5146. 2016-04-07 15:39:25 +03:00
firebirds
52ddb7a3c8 increment build number 2016-04-07 00:02:42 +00:00
firebirds
2c3ec4703c increment build number 2016-04-06 00:02:40 +00:00
firebirds
803a2bac03 increment build number 2016-04-05 00:02:44 +00:00
4cffc422b1 Backported fix for CORE-5184: Assertion in cloop dispatcher when trying to save exception information in status interface 2016-04-04 19:32:09 +03:00
Dmitry Yemanov
56c7d2e10b Fix assertion that appear to be incorrect. 2016-04-04 10:16:46 +03:00
Dmitry Yemanov
f13942b8d3 CORE-5182: Inconsistent effects of subsequent statement execution if
failing during record refetch.
2016-04-04 09:47:40 +03:00
firebirds
f5599bbb55 increment build number 2016-04-03 00:02:44 +00:00
Dmitry Yemanov
dc31f92cea Postfix for CORE-5067. It prevents deadlocks involving the header page
and some data pages (due to disabled AST delivery).
2016-04-02 13:19:48 +03:00
Dmitry Yemanov
1472ab87b8 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-04-02 13:19:35 +03:00
Dmitry Yemanov
b52671d907 Misc cleanup after my prior commit. 2016-04-02 13:19:17 +03:00
Dmitry Yemanov
a441ea9a87 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-04-02 13:18:46 +03:00
firebirds
8faac7ddc9 increment build number 2016-04-02 00:02:44 +00:00
firebirds
1ea0b77b24 increment build number 2016-04-01 00:02:53 +00:00
4a7fae5dee Backported fix for CORE-5181: Build fails when HAVE_MMAP is not defined 2016-03-31 16:22:55 +03:00
firebirds
cfe81b51fc increment build number 2016-03-31 00:02:48 +00:00
firebirds
c25e3fbe9d increment build number 2016-03-29 00:02:44 +00:00
Adriano dos Santos Fernandes
3dc7f7998b Fixed CORE-5166 - Wrong error message with UNIQUE BOOLEAN field. 2016-03-28 12:46:23 -03:00
d43debb1e1 Added generated pascal unit with OO API declarations 2016-03-28 12:44:13 +03:00
firebirds
e7616ca6e5 increment build number 2016-03-28 00:02:40 +00:00
Dmitry Yemanov
4711a3b953 Fix CORE-5143: GBAK restore failed when there is SQL function accessing
table and switch -O(NE_AT_A_TIME) is used.
2016-03-27 19:50:59 +03:00
Dmitry Yemanov
dd1a9ce9d0 Simplify migration for old databases affected by changes in
CLIENT_ADDRESS. Refresh outdated readme.
2016-03-27 11:19:19 +03:00
firebirds
25e0f724e0 increment build number 2016-03-27 00:02:41 +00:00
Adriano dos Santos Fernandes
f72de291b2 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:22:58 -03:00
firebirds
a33bf61c3a increment build number 2016-03-25 07:20:40 +00:00
firebirds
bee4389205 increment build number 2016-03-24 17:40:26 +03:00
Dmitry Yemanov
2021d02fa7 Fixed handling of non-ASCII table names inside TPB. 2016-03-23 10:34:29 +03:00
f0eac3c552 Backported fix for CORE-5162: SEC$ tables and tag/attributes 2016-03-22 19:32:11 +03:00
2b27de88ff Postfix for CORE-5155, thanks to Adriano 2016-03-22 19:10:56 +03:00
0b9091dc5b Backported fix for CORE-5155: [CREATE OR] ALTER USER statement: clause PASSWORD (if present) must be always specified just after USER 2016-03-22 18:39:03 +03:00
Adriano dos Santos Fernandes
5100c80b09 Fixed CORE-5159 - Regression: engine may throw transliteration errors when running from non-ASCII system path. 2016-03-21 14:47:42 -03:00
hvlad
33e65f6e86 Fixed bug CORE-5161 : Unique index could be created on non-unique data 2016-03-21 17:04:38 +02:00
Adriano dos Santos Fernandes
f30733f8b6 Fixed CORE-5153 - Regression: Server crashes when aggregate functions are used together with NOT IN predicate. 2016-03-21 11:53:49 -03:00
514750b384 Backported fix for CORE-5157: Server goes into infinite loop when data is sent from client to the service in small packets 2016-03-18 20:19:53 +03:00
hvlad
cc928d02a5 Correct name for MSVC14 CRT dll 2016-03-18 11:46:17 +02:00
hvlad
6c4a899f0b Revert "Revert "Merge branch 'B3_0_Release' of https://github.com/FirebirdSQL/firebird into B3_0_Release""
This reverts commit 1bb06d69f6.

Sorry for confusion
2016-03-18 00:41:43 +02:00
hvlad
1bb06d69f6 Revert "Merge branch 'B3_0_Release' of https://github.com/FirebirdSQL/firebird into B3_0_Release"
This reverts commit af23e344b5, reversing
changes made to 1abb10f36d.
2016-03-18 00:24:50 +02:00
hvlad
af23e344b5 Merge branch 'B3_0_Release' of https://github.com/FirebirdSQL/firebird into B3_0_Release 2016-03-17 23:57:13 +02:00
hvlad
1abb10f36d 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 23:55:20 +02:00
Adriano dos Santos Fernandes
e9eea07523 Fixed CORE-5147 - Create trigger fails with ambiguous field name between table B and table A error. 2016-03-17 14:50:04 -03:00
Dmitry Yemanov
4aa74c3b64 Avoid GBAK's mandatory runtime dependency on ICU, load it only when
really needed (-skip_data switch is specified).
2016-03-16 20:11:25 +03:00
asfernandes
3dc332aee8 Add debug utility function to dump contexts. 2016-03-16 02:42:47 +00:00
firebirds
af61a6eb9e nightly update 2016-03-12 00:12:29 +00:00
dimitr
1eb9ab0c85 Fixed CORE-5149: LEFT JOIN incorrectly pushes COALESCE into the inner stream causing wrong results. 2016-03-11 08:52:33 +00:00
firebirds
36e30d5fb2 nightly update 2016-03-11 00:14:57 +00:00
firebirds
0f72dcd2a6 nightly update 2016-03-10 00:13:32 +00:00
asfernandes
0eef9d81c8 Fixed CORE-5130 - Compiler issues message about "invalid request BLR" when attempt to compile wrong DDL of view with both subquery and "WITH CHECK OPTION" in its DDL. 2016-03-09 18:45:07 +00:00
alexpeshkoff
ece088c3a7 Backported fix for CORE-5144: Deadlock when database is encrypted or decrypted under high parallel load 2016-03-09 14:58:58 +00:00
firebirds
efd7857743 nightly update 2016-03-09 00:17:02 +00:00
dimitr
dd3c55eddb Fixed CORE-5133: "Alter sequence restart with" does not change the initial value. 2016-03-08 18:08:38 +00:00
hvlad
d826b3eded Backport fix for bug CORE-5140 : Wrong error message when user tries to set number of page buffers into not supported value 2016-03-08 17:15:07 +00:00
firebirds
9c85af53cb nightly update 2016-03-05 00:14:05 +00:00
firebirds
90e5fa8630 nightly update 2016-03-04 00:15:22 +00:00
asfernandes
87f78f460d Warnings. 2016-03-03 22:53:31 +00:00
paulbeach
782b7a08f2 Fix qsort_r for Darwin 2016-03-03 15:02:15 +00:00
firebirds
442fff1454 nightly update 2016-03-03 00:14:09 +00:00
firebirds
5c86df7b70 nightly update 2016-03-02 00:21:04 +00:00
firebirds
29b3e5f587 nightly update 2016-03-01 08:31:14 +00:00
dimitr
28f320eddf Fixed CORE-5122: Expression index may not be used by the optimizer if created and used in different connection charsets. 2016-02-29 20:12:01 +00:00
dimitr
113ff1fe65 Misc: remove the redundant space in the explained plan output. 2016-02-28 08:46:28 +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
ad6a44c0b0 Convert the file to UTF-8 as grep thinks it's a binary file. 2016-02-25 02:11:24 +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
aafemt
a0eca08629 Get secondary error code isc_dsql_sqlda_err back, thanks to Dmitry Yemanov 2016-02-23 20:49:56 +00:00
aafemt
7a7c6cb95b Some more cases of CORE-5112 as pointed by Dmitry Yemanov 2016-02-23 16:18:38 +00:00
dimitr
2461d05460 Removed "cast no-op" extensions as they break many tests, e.g. CAST('A' as CHAR(10)) remains CHAR(1) instead of being padded up to CHAR(10). Let's no-op only really equal descriptors for the time being. 2016-02-23 09:52:51 +00:00
dimitr
b1efab55b2 And another postfix for CORE-5097, it resolves regression for core_3545.fbt.
Adriano, please review.
2016-02-23 09:10:41 +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
aafemt
53998b429d Use autoconfig_msvc.h from where it is 2016-02-20 15:34:20 +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
asfernandes
1b3d63e687 Fixed regression with CORE-1839 after fix for CORE-5097. 2016-02-18 14:52:04 +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
asfernandes
4bbcd14a8c Fixed the problem I inserted in a review. 2016-02-17 01:36:29 +00:00
asfernandes
5eea52ad61 Fixed output of SHOW PROCEDURES/FUNCTIONS. 2016-02-17 01:36:14 +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
asfernandes
a4a2ac99be Correction. 2016-02-15 02:53:05 +00:00
firebirds
b1d78c9258 nightly update 2016-02-15 00:09:30 +00:00
aafemt
13940f54d1 Messages for CORE-5112 2016-02-14 13:10:23 +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
asfernandes
47bcd0db2b Fixed CORE-2923 - Problem with dependencies with views. 2016-02-11 18:10:53 +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
dimitr
798a4a5aab Postfix to address the regression found in the recent commit for CORE-5097. 2016-02-05 11:00:09 +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
hvlad
f3402cafdc Frontport code from v2.5. It should fix CORE-5102 : FB3.0 RC1 Fbclient.dll function calls modify FPU control word 2016-02-03 19:41:12 +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
hvlad
9b6969b56e It should fix bug CORE-5087 : Database shutdown can cause server crash if multiple attachments run EXECUTE STATEMENT 2016-02-02 22:26:50 +00:00
asfernandes
44cf5c717b Fixed CORE-5089 - Metadata extration (ISQL -X): "CREATE PROCEDURE/FUNCTION" statement contains reference to column of table(s) that not yet exists if this procedure had parameter of such type when it was created. 2016-02-02 14:46:59 +00:00
firebirds
2f824e345d nightly update 2016-02-02 00:10:04 +00:00
asfernandes
36ac140be8 Fixed CORE-5093 - Alter computed field type does not work. 2016-02-01 16:51:50 +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
dimitr
881c796e1b Fixed (on behalf of Alex) CORE-4885: Error retrieving current user name when using Windows trusted authentication and OS user name contains non-ASCII characters. 2016-02-01 14:54:14 +00:00
firebirds
9dca0e22ab nightly update 2016-02-01 00:09:15 +00:00
asfernandes
fb7eca8c60 Fixed CORE-5092 - ISQL extract command lose COMPUTED BY field types. 2016-01-31 23:57:19 +00:00
asfernandes
27dc9281ac Revert this solution for CORE-5089 as it doesn't work for packages. 2016-01-31 23:56:37 +00:00
dimitr
5a272fc2be Fix for semicolons embedded into the []-styled IPv6 address. 2016-01-31 10:45:32 +00:00
asfernandes
be8b127776 Avoid constant duplication. 2016-01-31 00:09:47 +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
asfernandes
624d3381c9 Fixed CORE-5089 - Metadata extration (ISQL -X): "CREATE PROCEDURE/FUNCTION" statement contains reference to column of table(s) that not yet exists if this procedure had parameter of such type when it was created. 2016-01-29 14:51:11 +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
alexpeshkoff
2c6e4b7d10 Fixed CORE-5088: Segfault when 'gstat -h' is closing 2016-01-28 17:00:08 +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
alexpeshkoff
ffa487a1bc Implemented CORE-5083: Provide method to correcty set offsets in implemented by user IMessageMetadata 2016-01-25 18:34: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
dimitr
dd738c7f80 Reverted back to the single-pass algorithm used in v2.x. This should work around the issue with non-zero-timeout shutdown in SC. 2016-01-24 21:02:31 +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
alexpeshkoff
315332944b Use correct error code 2016-01-24 17:53:12 +00:00
alexpeshkoff
2d74f74ee0 Drop old wrong comment 2016-01-24 17:51:43 +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
asfernandes
fdca3fdf72 Misc. 2016-01-17 01:10:45 +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
hvlad
737b5f81ac IPv6 address could contain percent sign inside, therefore make sure error string not used as vfprintf format string by gds__log().
See also comments at CORE-2493.
2016-01-13 09:35:23 +00:00
firebirds
bb5e328b12 nightly update 2016-01-12 00:09:16 +00:00
alexpeshkoff
a99381312f Fixed CORE-4996: Need some SECURITY2.FDB --> SECURITY3.FDB upgrade feature, placed new files into linux package 2016-01-11 14:23:35 +00:00
hvlad
9e5c39acac Addition to the patch for CORE-2493.
Always ask for numeric form of service name
2016-01-11 13:46:41 +00:00
alexpeshkoff
626b8cdfa3 Fixed CORE-4996: Need some SECURITY2.FDB --> SECURITY3.FDB upgrade feature 2016-01-11 13:38:36 +00:00
firebirds
bd8a101090 nightly update 2016-01-11 00:09:49 +00:00
hvlad
2820ede430 Improvement CORE-2493 : Append the IP address of the remote host to error messages in firebird.log for TCP connections 2016-01-10 14:20:47 +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
asfernandes
e438f4d256 Fix for messages with FB_INTL_CHAR and FB_INTL_VARCHAR macros. 2016-01-06 18:20:25 +00:00
firebirds
ddb1da8d89 nightly update 2016-01-04 00:09:22 +00:00
dimitr
6d30e899f5 Fixed (hopefully) my last commit re. plan output. 2016-01-03 20:20:56 +00:00
asfernandes
210920d3b6 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-03 15:50:38 +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
dimitr
24b7a7982c Fixed CORE-5061: ISQL plan output is unexpectedly truncated after a query is simplified to become shorter. 2016-01-02 12:08:31 +00:00
alexpeshkoff
f4defcd2bc Postfix for CORE-5056: better error reporting, thanks to Claudio 2016-01-02 11:41:50 +00:00
hvlad
241059f1d8 Improvement CORE-5063 : Make "show database" command to show numbers of used and free pages in database 2016-01-02 11:37:06 +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
alexpeshkoff
0c9a2ccdd3 Fixed CORE-5008: add missing cmake files to fb3 linux tarball 2015-12-24 11:17:13 +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
alexpeshkoff
df2fb331cf Fixed CORE-4964: Real errors during connect to security database are hidden by Srp user manager. Errors should be logged no matter what AuthServer is used. (taking into an account Sean's request re. special error for system-related problems) 2015-12-22 17:53:30 +00:00
firebirds
a4b437e2a5 nightly update 2015-12-22 00:10:42 +00:00
alexpeshkoff
474538c7ff Added support for using pascal to access OO API 2015-12-21 17:01:26 +00:00
alexpeshkoff
43ed888aa2 Fixed strange mistype in error code. This error code is never used in sources, i.e. nothing to fix due to this change. 2015-12-21 11:16:22 +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
dimitr
9f28f77266 Remove the redundant (no-op) line. 2015-12-19 05:55:20 +00:00
firebirds
3bc500e57d nightly update 2015-12-19 00:09:46 +00:00
dimitr
738ad6ea21 Constness. 2015-12-18 16:57:06 +00:00
asfernandes
0e686e0c58 Avoid warnings with clang. 2015-12-18 16:34:33 +00:00
asfernandes
80a29fe79f Fixed CORE-5049 - Regression: incorrect calculation of byte-length for view columns. 2015-12-18 16:34:20 +00:00
alexpeshkoff
0ba4e86e86 Fixed gsec with SS 2015-12-18 13:53:04 +00:00
asfernandes
04906b031c Avoid warnings with clang. 2015-12-18 13:45:00 +00:00
firebirds
2f36485fbe nightly update 2015-12-18 00:09:17 +00:00
alexpeshkoff
fde2d8fe85 Postfix for CORE-5032: error handling was broken, therefore checked for invalid error code 2015-12-17 15:14:51 +00:00