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

48900 Commits

Author SHA1 Message Date
firebirds
ca36b682c6 increment build number 2019-02-11 00:03:40 +00:00
firebirds
edabb90115 increment build number 2019-02-10 00:03:31 +00:00
firebirds
0db158ae2c increment build number 2019-02-09 00:03:28 +00:00
hvlad
aa5b30e171 Update "favorite" ICU version number 2019-02-08 10:05:17 +02:00
firebirds
0568720460 increment build number 2019-02-06 00:03:22 +00:00
firebirds
d4866a0553 increment build number 2019-02-04 00:03:30 +00:00
firebirds
2f877baa9f increment build number 2019-02-01 00:03:28 +00:00
Dmitry Yemanov
5891b84fef Misc fixes, thanks to Adriano 2019-01-31 13:07:47 +03:00
firebirds
60a3a534e9 increment build number 2019-01-31 00:03:30 +00:00
hvlad
d8ad276aef Fixed bug CORE-5995 : Creator user name is empty in user trace sessions 2019-01-31 00:00:55 +02:00
firebirds
2b3682c7cf increment build number 2019-01-30 00:03:32 +00:00
Adriano dos Santos Fernandes
cd285a1165 Fix warnings. 2019-01-29 21:52:55 -02:00
firebirds
00ccbf554a increment build number 2019-01-29 00:03:48 +00:00
AlexPeshkoff
e83d59492f One more attempt to fix DOW function on windows 2019-01-28 13:41:49 +03:00
hvlad
5b8e562c80 Fixed bug CORE-5993 : When creation of audit log file fails, there is no error message in firebird.log 2019-01-28 11:01:14 +02:00
hvlad
15e6315342 Fixed bug CORE-5991 : Trace could not work correctly with quoted file names in trace configurations 2019-01-28 11:00:18 +02:00
firebirds
3e2fa9dfc2 increment build number 2019-01-28 00:03:30 +00:00
Dmitry Yemanov
5dc8c0bda9 Fixed the refactoring mistake, thanks Adriano 2019-01-27 17:02:42 +03:00
firebirds
31c6310ead increment build number 2019-01-26 00:03:52 +00:00
AlexPeshkoff
b7b3afcabb Fixed bugs in backward compatibility UDR library - thanks to Pavel 2019-01-25 21:02:11 +03:00
AlexPeshkoff
7bbb981cf8 Added script converting previously distributed UDF to PSQL/UDR functions 2019-01-25 13:58:00 +03:00
AlexPeshkoff
4921f08031 Cleanup - do not create directory for UDF 2019-01-25 13:58:00 +03:00
Dmitry Yemanov
932ca51574
Replication support (#182)
* Initial implementation of replication

* Postfixes for configuration and Windows builds

* Misc Windows adjustments

* Forgotten changes from prior commits

* Last round (fingers crossed) of fixing the Windows build

* Improve self-documentation

* Misc improvements

* Updates the docs

* More configuration

* Frontported some remaining pieces

* Installation post-fixes

* Special permission for replication
2019-01-25 12:09:01 +03:00
firebirds
8a421a1707 increment build number 2019-01-23 00:03:47 +00:00
Dmitry Yemanov
aa9730cb7e Updated the version info 2019-01-22 21:55:31 +03:00
AlexPeshkoff
7f2e32616b Fixed CORE-5985: Regression: ROLE does not passed in ES/EDS (specifying it in the statement is ignored) 2019-01-22 18:08:13 +03:00
Egor Pugin
80a8351aa1 jrd is not on that level 2019-01-22 07:37:13 -02:00
Dmitry Yemanov
145370dc59 Fixed missing monitoring for the crypt thread 2019-01-22 12:31:59 +03:00
Dmitry Yemanov
b0f2529c3e Fixed monitoring for non-privileged users 2019-01-22 12:25:30 +03:00
Dmitry Yemanov
6c35ed7460 Restore the paranoid v3 logic to avoid infinite loops in this place 2019-01-22 12:18:39 +03:00
hvlad
4fbb3adcd6 Make old compilers (not supporting C++11 "noexcept") works with new ICU 2019-01-22 10:12:41 +02:00
firebirds
3ee5097de0 increment build number 2019-01-22 00:03:33 +00:00
Adriano dos Santos Fernandes
f0e9c4eb3d Fixed CORE-5972 - External engine trigger crashing server if table have computed field. 2019-01-21 13:06:01 -02:00
Dmitry Starodubov
ed932c856d Fixed CORE-5982: Error read permission for BLOB field, when it is input/output procedure's parameter 2019-01-21 14:39:06 +03:00
firebirds
54726d8d2a increment build number 2019-01-20 00:03:29 +00:00
Adriano dos Santos Fernandes
23585141e8 Fixed CORE-5986 - Incorrect evaluation of NULL IS [NOT] {FALSE | TRUE}. 2019-01-19 17:24:05 -02:00
firebirds
4d81fc58b5 increment build number 2019-01-19 00:03:31 +00:00
AlexPeshkoff
1450ee5d6b Make it possible to use in same list (i.e. case, coalesce, etc.) timestamps(dates) with & without time zone 2019-01-18 14:04:13 +03:00
Dmitry Yemanov
c349d28686 Fixed the database left attached (and the engine not unloaded) after error thrown from the beginning of the attach process (e.g. due to the engine shutdown in progress) 2019-01-17 14:53:57 +03:00
Dmitry Yemanov
fea7c61d97 Attempted to fix CORE-2440, CORE-5118 and CORE-5900 together (expression indices contain NULL keys after restore). 2019-01-17 14:13:08 +03:00
firebirds
d8ab4a69af increment build number 2019-01-17 00:03:31 +00:00
Dmitry Yemanov
3de87b5ed7 More reliable check for view vs table 2019-01-16 13:25:31 +03:00
Dmitry Yemanov
eba76dd0d2 Reworked Alex's solution for modern compilers (GCC 5/6) 2019-01-16 13:25:04 +03:00
firebirds
8139be1bb5 increment build number 2019-01-15 00:03:36 +00:00
AlexPeshkoff
ef626be214 Add encryption-related messages to .msg file 2019-01-14 20:50:56 +03:00
AlexPeshkoff
c0d01ee715 Fixed assertion in tomcrypt code 2019-01-14 15:08:44 +03:00
firebirds
ba38086613 increment build number 2019-01-10 00:03:49 +00:00
hvlad
99ca7f061f Ported fix for bug CORE-5980 : Firebird 2.5.6 & 25.8 server crash 2019-01-09 16:21:52 +02:00
firebirds
d4c8913f42 increment build number 2019-01-09 00:03:29 +00:00
AlexPeshkoff
b396f6c3b7 Attempt to fix travis build 2019-01-08 19:18:25 +03:00
AlexPeshkoff
23db1e65b6 Put new keywords in alphabetical order, thanks to Adriano 2019-01-08 18:23:23 +03:00
firebirds
03a8e789aa increment build number 2019-01-07 00:03:30 +00:00
Adriano dos Santos Fernandes
73e39d31da Misc. 2019-01-06 17:07:23 -02:00
Adriano dos Santos Fernandes
15b34afcc8 Use correct method name convention. 2019-01-06 17:05:44 -02:00
Adriano dos Santos Fernandes
236f2e6657 Fix assertions with trunc(current_timestamp) and trunc(current_time). 2019-01-06 16:56:48 -02:00
Adriano dos Santos Fernandes
832aeb652b Misc. 2019-01-06 14:58:10 -02:00
firebirds
0855848d6d increment build number 2019-01-06 00:03:40 +00:00
Adriano dos Santos Fernandes
d936c74cdd Misc. 2019-01-05 18:47:04 -02:00
AlexPeshkoff
38823d0184 Post-improvement for CORE-5970: added 3 useful related helper functions: base64_encode/decode and crc32 2019-01-05 18:29:03 +03:00
AlexPeshkoff
61a905e096 Fixed gcc7 warning - remove deprecated throw(exception) clause 2019-01-03 19:30:23 +03:00
firebirds
8804222e2d increment build number 2019-01-01 00:03:35 +00:00
Adriano dos Santos Fernandes
ab058f2538 Remove ICU function not used anymore. 2018-12-31 15:53:14 -02:00
firebirds
6f0bb27741 increment build number 2018-12-30 00:03:29 +00:00
Adriano dos Santos Fernandes
ee05dbf7b9 Merge branch 'work/time-zone-support-mon' 2018-12-29 15:38:22 -02:00
Adriano dos Santos Fernandes
e3e8d872ec Optimizations. 2018-12-29 15:36:56 -02:00
Adriano dos Santos Fernandes
54df72afca Make sessions dump their data using their own time zones. 2018-12-29 15:24:24 -02:00
Adriano dos Santos Fernandes
e7804a1abe Fix (try) Windows build. 2018-12-28 21:55:59 -02:00
Adriano dos Santos Fernandes
b4caf53cc8 Simplify the Windows code - untested. 2018-12-28 21:51:02 -02:00
Adriano dos Santos Fernandes
647d06cde5 Make code faster. 2018-12-28 15:52:39 -02:00
Adriano dos Santos Fernandes
3ca18c540c Add config. parameter DefaultTimeZone. 2018-12-28 15:52:39 -02:00
Adriano dos Santos Fernandes
86081d3264 Better logging when some problem happened detecting the OS time zone. 2018-12-28 15:52:39 -02:00
Adriano dos Santos Fernandes
3c6115a08c Make TimeZoneUtil::getCurrentGmtTimeStamp() does not depend on the local time. 2018-12-28 15:52:39 -02:00
Adriano dos Santos Fernandes
4f446d506e Message codes for time zone errors. 2018-12-28 15:52:39 -02:00
Adriano dos Santos Fernandes
572c0675d6 Refactor. 2018-12-28 15:52:39 -02:00
firebirds
d4586a4c9b increment build number 2018-12-27 00:03:25 +00:00
AlexPeshkoff
4d035997fc Fixed CORE-5973: Handling FP overflow in double precision value when converting from decfloat 2018-12-26 20:04:54 +03:00
Adriano dos Santos Fernandes
f8c803ab32 Fix Windows build. 2018-12-26 12:00:36 -02:00
Adriano dos Santos Fernandes
21ca22f216 Improvement CORE-3808 - Provide ability to return all columns using RETURNING (eg RETURNING *). 2018-12-26 10:45:47 -02:00
firebirds
314c09c703 increment build number 2018-12-25 00:03:23 +00:00
AlexPeshkoff
24d0409459 Renamed rules according to Adriano's advice 2018-12-24 15:17:22 +03:00
firebirds
fd664f54da increment build number 2018-12-20 00:03:14 +00:00
Adriano dos Santos Fernandes
8258e51dc4 Fixed CORE-5974 - Wrong result of select distinct with decfload/timezone/collated column.
Related to e3b0247336.
2018-12-19 16:12:01 -02:00
hvlad
5ab4b98f7d Correct usage of different time units in IdleTimer 2018-12-19 11:42:03 +02:00
firebirds
ac2f012434 increment build number 2018-12-17 00:03:20 +00:00
Adriano dos Santos Fernandes
723c45904b Fix assertion for query with unused named window and no other window expression. 2018-12-16 17:51:44 -02:00
hvlad
0ea61c13f8 Rename setting: TpcBlockSize -> TipCacheBlockSize 2018-12-16 15:27:40 +02:00
firebirds
90eca16cb7 increment build number 2018-12-16 00:03:15 +00:00
Adriano dos Santos Fernandes
9604d1c89a Misc. 2018-12-15 18:44:59 -02:00
firebirds
124dbca8e9 increment build number 2018-12-11 00:03:22 +00:00
AlexPeshkoff
bfa58e6f72 Cleanup - bad attempt to make events API better 2018-12-10 14:10:51 +03:00
firebirds
9a4a42bde5 increment build number 2018-12-08 00:03:42 +00:00
AlexPeshkoff
aacdeb274c Added 8 new builtin functions supporting various encryption algorithms 2018-12-07 11:17:06 +03:00
firebirds
647216a633 increment build number 2018-12-06 00:03:33 +00:00
firebirds
d7cfa9e3f6 increment build number 2018-11-29 00:03:24 +00:00
Dmitry Yemanov
8bb1ea9522 This workaround should fix MSVC12 build issues (ambiguous call to overloaded function for std::function and SomeNode* overloads) 2018-11-28 13:52:18 +03:00
Adriano dos Santos Fernandes
e4226a60cf Rename fields and functions. 2018-11-27 23:49:02 -02:00
Adriano dos Santos Fernandes
050cea380e - Change MON$ TIMESTAMP fields to TIMESTAMP WITH TIME ZONE.
- Added fb_info_creation_timestamp_tz.
- Make timeouts work when server time zone is changed.
2018-11-27 23:27:52 -02:00
firebirds
1505778037 increment build number 2018-11-28 00:03:26 +00:00
Adriano dos Santos Fernandes
781df06ee3 Fix merge conflict. 2018-11-27 11:11:16 -02:00
firebirds
9d31a686d9 increment build number 2018-11-27 00:03:26 +00:00
Dmitry Yemanov
64eea103f2
Merge pull request #165 from FirebirdSQL/work/time-zone-support
CORE-694 - Support for time zones
2018-11-26 13:07:51 +03:00
firebirds
d8618f417b increment build number 2018-11-26 00:03:25 +00:00
Adriano dos Santos Fernandes
4ce50c0503 Fix CORE-5395 - Invalid data type for negation (minus operator). 2018-11-25 10:45:52 -02:00
firebirds
14184bf208 increment build number 2018-11-21 00:03:22 +00:00
Dmitry Yemanov
3103f72d7d Attempt to fix CORE-5070, CORE-5795, CORE-5845, CORE-5965 with a single shot 2018-11-20 19:44:17 +03:00
firebirds
c0d6c5faae increment build number 2018-11-16 00:03:22 +00:00
Dmitry Starodubov
8739c8b5a7 Don't skip next plugin if previous one has not sent data (#178) 2018-11-15 18:18:37 +03:00
Adriano dos Santos Fernandes
2c8faab6aa Fix Windows build (as possible, with outdated ICU). 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
de2ff27255 Work in progress to fix the Windows build. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
760288f17b Fix CURRENT_TIME to return in the session time zone. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
94f377b8fb Add SET TIME ZONE BIND statement. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
873cd8090f Make isc_dpb_session_time_zone also define the original time zone, and make RESET reset the session time zone to the original one. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
abf39e549a Make system routines use IDs as generated for user routines.
User routines already are auto-generated and random while restoring backup.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
db664e6fbf Add prefix for decfloat rules and nodes. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
5c0218cc8e Fix AT operator precedence. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
61ef9f497f Add security classes to system packages. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
5ad0cece75 Added UNIX_DATE constant and moved ONE_DAY to the implementation file. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
3c4c8e781d Support for system packages and RDB$TIME_ZONE_UTIL system package implementation. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
4ea34933f0 Added isc_dpb_session_time_zone. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
fc96ea7b59 Misc. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
447ff4db4d Misc. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
e149a51e49 Added class ThrowStatusExceptionWrapper, better than ThrowStatusWrapper for Firebird's code. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
3492f5eb2f Avoid buffer overflow possibility. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
a1e711cf49 Fix date/time support in messages, when Firebird namespace is not in scope. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
6f93e09a3f Support for time zones in message macros. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
bdd496a015 GPRE does not support packages. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
942d7f49f5 Added RDB$TIME_ZONES virtual table. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
d3df86068a Allow to use, for example, time zones Etc/GMT+1 and Etc/GMT-1. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
46e954f863 Change UTC->GMT as appropriate and reorder the identifiers so GMT becomes number 65535. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
a65f8ffb5e Allow literal and conversion from timestamp with date and time zone but without time.
For example: timestamp '2018-01-02 America/Sao_Paulo'
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
53be87c228 Reject invalid conversion: cast('01-today' as date) - another CORE-5750 case. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
fb7a6b48a8 Implement DDL conversions. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
08a68af79f There seems to be no reason for this code duplication. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
150f62d599 Embed the utc_timestamp as ISC_TIMESTAMP struct inside ISC_TIMESTAMP_TZ.
Some struct field names adjustments accordingly.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
ba76d14785 Bug fixes. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
46613ba1b3 Increase maximum time zone length. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
9a56fe9a9b Add list of all time zones. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
e0450a79d9 Add encode/decode functions to IUtil and remove partially added legacy API functions. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
c15a38ca78 Fix multi-field sort. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
b04907d431 Correction. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
b11daa52cc Fixed Windows build. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
3b5aa40b43 Fixed DATEDIFF. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
141f62611b Changing descriptors to store in memory date/time tz in UTC and usage of ICU for time zone regions.
This version is fixedly configured only with America/Sao_Paulo and America/Los_Angeles.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
8792dff315 Internal support for time zone regions in addition to offsets.
Simulate regions with fixed BRT and BRST regions.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
4812ce8ee8 Fixed CORE-5750 - Date-time parsing is very weak. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
5becd96357 Fixed SQLDA_DISPLAY's type name. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
2b6ca80b87 Support for AT { TIME ZONE <zone> | LOCAL } clause. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
d268f7344f Change time zone displacement field by a opaque zone field. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
60f1ed07a0 Fix the last commit. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
d68f886c77 Added optional WITHOUT TIME ZONE to TIME/TIMESTAMP datatypes. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
89d4b20d07 Fix ISQL's SET TIME command. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
e84f443e8d Fixed CORE-5717 - Reject non-constant date/time/timestamp literals. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
0b24bb8353 Fix conversion from strings TODAY, NOW, TOMORROW and YESTERDAY to TIME/TIMESTAMP WITH TIME ZONE. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
ac57e4c36f Add a space before the time zone when converting to string. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
e3b0247336 Improve sort space and CPU processing for INTL_DATA, decfloat and date/time with time zone. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
7100879498 Initial implementation of time zone support - CORE-694.
TODO:
- Support regions.
- Reevaluate decision of store date/time components in memory in its own time zone instead of normalized to UTC.
- Fix ISQL's SET TIME command.
- Allow usage of "WITHOUT TIME ZONE" with TIME/TIMESTAMP data types.
- Think about compatibility of CURRENT_TIME/CURRENT_TIMEZONE.
- Support AT { LOCAL | TIME ZONE <zone> } expression.
- Support as needed and fix assertions when altering field types.
- Change conversion to string to put a space before the time zone.
- Big endian version of SKD_time_tz and SKD_timestamp_tz.
2018-11-12 13:18:00 -02:00
firebirds
1824698b96 increment build number 2018-11-12 00:03:21 +00:00
hvlad
31b641112a Fixed old typo 2018-11-12 00:17:17 +02:00
firebirds
a072745b08 increment build number 2018-11-10 00:03:24 +00:00
hvlad
01d26b8941 This should fix bug CORE-5959 : Firebird returns wrong time after changes of time zone 2018-11-09 13:03:31 +02:00
firebirds
010abc4bb0 increment build number 2018-10-31 00:03:22 +00:00
Roman Simakov
4d223744a6 Fixed CORE-5955: Unable to init binreloc with ld >= 2.31 2018-10-30 13:38:16 +03:00
Dmitry Yemanov
643c6d35ec Fixed the regression I introduced some time ago 2018-10-30 13:26:37 +03:00
firebirds
98f4d499a1 increment build number 2018-10-30 00:03:20 +00:00
Dmitry Yemanov
59dd58ce73 Fixed possible corruption of the monitoring shared data 2018-10-29 12:16:39 +03:00
firebirds
80529ab68e increment build number 2018-10-27 00:03:31 +00:00
Dmitry Yemanov
2cb9e64831 More flexible solution for CORE-5612 2018-10-26 19:57:43 +03:00
Dmitry Yemanov
96b9886171 Fixed CORE-5943: Server crashes preparing a query with both DISTINCT/ORDER BY and non-field expression in the select list 2018-10-26 10:27:20 +03:00
firebirds
e09430b6e6 increment build number 2018-10-26 00:03:25 +00:00
Dmitry Yemanov
bf5bfcc14a Misc 2018-10-25 15:32:37 +03:00
firebirds
6928ad48bf increment build number 2018-10-25 00:03:25 +00:00
AlexPeshkoff
ef57295112 Fixed CORE-5950: Deadlock when attaching to bugchecked database 2018-10-24 17:22:58 +03:00
firebirds
3a94c24989 increment build number 2018-10-23 00:03:20 +00:00
firebirds
a1cf6f4787 increment build number 2018-10-20 00:03:18 +00:00
AlexPeshkoff
a108c7df0b Implemented CORE-5948: Make WIN_SSPI plugin produce keys for wirecrypt plugin 2018-10-19 20:09:26 +03:00
AlexPeshkoff
5b8f3b63f1 Fixed CORE-5639: Mapping rule using WIN_SSPI plugin: windows user group conversion to firebird role does not work 2018-10-19 17:42:36 +03:00
firebirds
413e6408f7 increment build number 2018-10-13 00:03:20 +00:00
Dmitry Starodubov
244020e13f Use 64bit value to count records during backup/restore (#174) 2018-10-12 15:41:24 +03:00
firebirds
51f9254cdf increment build number 2018-10-11 00:03:17 +00:00
AlexPeshkoff
afdbd4aff2 Warnings 2018-10-10 20:01:31 +03:00
AlexPeshkoff
f5f3b6692b Front ported PR#172 changes 2018-10-10 12:39:12 +03:00
firebirds
f4f7c5dd07 increment build number 2018-10-10 00:03:17 +00:00
firebirds
3f08f69b02 increment build number 2018-10-06 00:03:17 +00:00
AlexPeshkoff
e548ae3815 Code cleanup - this should fix MacOS build 2018-10-05 17:02:35 +03:00
firebirds
293950e247 increment build number 2018-10-04 00:03:17 +00:00
Adriano dos Santos Fernandes
e33ddf8ca5 Feature CORE-5768 - FILTER-clause for aggregate functions. 2018-10-03 13:20:26 -03:00
firebirds
8283c7da27 increment build number 2018-10-03 00:03:20 +00:00
AlexPeshkoff
0b71aa9795 Fixed CORE-5926: Attempt to create mapping with non-ascii user name which is encoded in SINGLE-BYTE codepage (win 1251) leads to '-Malformed string' message. 2018-10-02 17:46:02 +03:00
AlexPeshkoff
fc2624b90d Postfix for CORE-5808, fixed restore of encrypted database on classic server 2018-10-02 16:25:56 +03:00
hvlad
b1977638c6 This should fix unnecessary wait for prepared but still active concurrent transaction.
Only "read committed no record version" transaction should wait and could see current
record version if concurrent transaction commits, see CORE-5930.
2018-10-02 14:46:10 +03:00
firebirds
6536e1f364 increment build number 2018-10-01 00:03:41 +00:00
hvlad
ab794fc8ec This should fix bugcheck "TPC: Attempt to mark inactive transaction to be in limbo", see CORE-5930 2018-09-30 12:45:24 +03:00
hvlad
02dc5fe9ca This should fix bugcheck "Incorrect snapshot deallocation - too few slots", see CORE-5930 2018-09-30 12:44:24 +03:00
firebirds
073c2dcd54 increment build number 2018-09-29 00:03:22 +00:00
Alex Peshkoff
e306caff9b Make it possible to use batch interface from ISC API based applications 2018-09-28 18:51:15 +03:00
firebirds
9a4ebe904f increment build number 2018-09-28 00:03:31 +00:00
AlexPeshkoff
55fbabd356 Fixed CORE-5928: Make it possible for AuthClient plugin to access authentication block from DPB 2018-09-27 18:51:47 +03:00
AlexPeshkoff
22a72c8722 Fixed CORE-5927: With some non-standard authentication plugins providing correct crypt key wire anyway remains not encrypted 2018-09-27 18:47:12 +03:00
firebirds
f929a938ce increment build number 2018-09-25 00:03:20 +00:00
hvlad
7610a76ff3 Changed RDB$GET_TRANSACTION_CN implementation according to Adriano's suggestion. 2018-09-25 02:19:23 +03:00
hvlad
193d256a62 Code safety 2018-09-25 00:49:54 +03:00
hvlad
cd457adc12 Make result of RDB$GET_TRANSACTION_CN nullable 2018-09-25 00:29:00 +03:00
AlexPeshkoff
3239c9a58c Postfix for CORE-5907 2018-09-24 16:50:23 +03:00
Ilya Eremin
c356791b02 Fixed CORE-5758: Database is corrupted when conflicting "starting at page" values is specified for secondary files (#147)
* Fixed issue: Database is corrupted when conflicting "starting at page" values is specified for secondary files

* Raise error when conflicting "starting at page" values is specified for secondary database files
2018-09-24 13:16:38 +03:00
firebirds
daef7ba63f increment build number 2018-09-24 00:03:24 +00:00
AlexPeshkoff
60f32c30a0 Fixed CORE-5907: Regression: can not launch trace if its 'database' section contains regexp pattern with curvy brackets to enclose quantifier 2018-09-23 20:04:02 +03:00
hvlad
fded677e95 Improvement CORE-5921 : Provide information about Global Commit Number, Commit Number of currently used database snapshot (if any) and Commit Numbers assigned to the committed transactions. 2018-09-23 15:00:59 +03:00
firebirds
f463db457b increment build number 2018-09-21 00:03:16 +00:00
hvlad
f3e243a3c8 Restore change (from commit f04731b448)
that was lost during merge (at ccbf5c724a)
2018-09-20 18:33:37 +03:00
AlexPeshkoff
0865e17c57 Fixed CORE-5918: Memory pool statistics is not accurate 2018-09-20 16:55:22 +03:00
firebirds
0703bd916c increment build number 2018-09-20 00:03:23 +00:00
hvlad
cc7b082b13 Fixed bug with GTT in read-only transactions found by fbtcs test ISC_ER43_TRAN 2018-09-20 00:43:56 +03:00
firebirds
2781f8c4e3 increment build number 2018-09-19 00:03:18 +00:00
hvlad
b6b7d6525c Additional fix for bug CORE-5436 : [FB3 SC] Server hangs (under load test)
The case when main thread convert still not acquired lock when AST thread assert locks.
It leads to the error:  Fatal lock manager error: invalid lock id (0)
2018-09-18 22:34:57 +03:00
hvlad
7efe280e11 Fixed bug CORE-5911 : Connection could hung after no activity for 60 seconds 2018-09-18 22:34:27 +03:00
hvlad
0956233dea Rename MON$CONNECTION_COMPRESSED and MON$CONNECTION_ENCRYPTED to MON$WIRE_COMPRESSED and MON$WIRE_ENCRYPTED
to be inline with config settings (WireCompression and WireCrypt) and context variables (WIRE_COMPRESSED and WIRE_ENCRYPTED)
2018-09-18 20:05:54 +03:00
hvlad
a51a1bbb21 Implement sub-task CORE-5913 : Add context variables with compression and encryption status of current connection 2018-09-18 19:58:37 +03:00
firebirds
548c65adf7 increment build number 2018-09-18 00:03:20 +00:00
Dmitry Starodubov
0c275c1f3a Fixed CORE-5823: No permission for SELECT access to blob field in stored procedure. And CORE-5841: No permission for SELECT access to TABLE PLG$SRP in newer snapshot. (#170) 2018-09-17 15:59:14 +03:00
firebirds
b0ed893fd5 increment build number 2018-09-14 00:03:21 +00:00
Adriano dos Santos Fernandes
a7e162471f Fix CORE-5905 - Inconsistencies with PSQL FUNCTION vs UDF. 2018-09-13 12:22:40 -03:00
firebirds
56f92790c1 increment build number 2018-09-13 00:03:21 +00:00
Alex Peshkoff
5522550eb7 Cleanup 2018-09-12 18:09:15 +03:00
Alex Peshkoff
459a2ae056 Comment 2018-09-12 16:09:18 +03:00
firebirds
628e7b27e6 increment build number 2018-09-11 00:03:19 +00:00
firebirds
2d2edc0f53 increment build number 2018-09-08 00:03:18 +00:00
Alex Peshkoff
2d973b902e Implemented CORE-5908: Enhance dynamic libraries loading related error messages 2018-09-07 16:51:17 +03:00
firebirds
cb66c186ac increment build number 2018-09-06 00:03:11 +00:00
Alex Peshkoff
9f3fa49fe3 Applied modified patch from Damyan fixing piped decompression 2018-09-05 18:03:32 +03:00
firebirds
04508a0f73 increment build number 2018-09-05 00:03:13 +00:00
Adriano dos Santos Fernandes
052f55e753
Fix warning. 2018-09-04 12:26:53 -03:00
firebirds
ebbb04aba5 increment build number 2018-09-03 00:03:19 +00:00
firebirds
d0bb806727 increment build number 2018-09-01 00:03:24 +00:00
Adriano dos Santos Fernandes
de7edf7e72 Fix CORE-1592 - Altering procedure parameters can lead to unrestorable database. 2018-08-31 13:45:33 -03:00
Alex Peshkoff
bf1dc0ff85 Avoid races in YObject::destroy() 2018-08-31 15:43:39 +03:00
Alex Peshkoff
2cb086d431 This should fix memory leak when not fully initialized attachment killed by DBA 2018-08-31 12:55:38 +03:00
firebirds
805990a5da increment build number 2018-08-31 00:03:16 +00:00
hvlad
69b9182b16 This should fix crash when not fully initialized attachment killed by DBA.
For example - sweep (it happens few times when running core_4337.fbt).
2018-08-30 20:30:52 +03:00
hvlad
cdc7010bfc Fixed assertion 2018-08-30 16:44:29 +03:00
firebirds
dac9493fdd increment build number 2018-08-30 00:03:17 +00:00
Alex Peshkoff
db4ad62394 Fixed comment, thanks to Adriano 2018-08-29 19:09:31 +03:00
Alex Peshkoff
d94d92bbec Commented assertion to fix DEV_BUILD, to be reviewed by Vlad 2018-08-29 18:57:58 +03:00
Alex Peshkoff
f97bb71781 Fixed CORE-5793: Error returned from DbCryptPlugin::setKey() is not shown 2018-08-29 18:52:52 +03:00
hvlad
b2c0b443e4 Request while running in autonomous read-committed read consistency transaction should start own snapshot. 2018-08-29 14:30:29 +03:00
hvlad
75e6afec71 Add intermediate GC to the VIO_writelock 2018-08-29 10:45:16 +03:00
firebirds
1eb585465c increment build number 2018-08-29 00:03:16 +00:00
Alex Peshkoff
dc06a58a1a Fixed CORE-5860: Support auth_plugin_list dpb/spb item from application to client 2018-08-28 18:43:41 +03:00
Alex Peshkoff
2cce5c7f54 Fixed CORE-5904: An attempt to create global mapping with long (> SQL identifier length) FROM field fails 2018-08-28 14:00:39 +03:00
firebirds
c77f110398 increment build number 2018-08-28 00:03:27 +00:00
Dmitry Starodubov
31de1e0b55 Restored accidentally deleted field MON$RECORD_IMGC 2018-08-27 18:21:46 +03:00
hvlad
79d16e667d Fixed bug CORE-5898 : ROLE not passed in EXECUTE STATEMENT ... ON EXTERNAL 2018-08-27 17:35:10 +03:00
firebirds
d51a61da65 increment build number 2018-08-27 00:03:25 +00:00
hvlad
e5bbfadb2f This should fix a bug CORE-5902 : Add Firebird Event fails with error "While isc_que_events - Failed to establish a secondary connection for event processing." 2018-08-27 01:00:23 +03:00
hvlad
96ac2145e8 Avoid crash due to executing already unloaded code (in attachmentShutdownThread).
Probably, same trick should be used in all threads, started not by Dispatcher,
which could run after its module is unloaded concurrently. So far, it looks like
Windows specific.
2018-08-26 23:24:40 +03:00
hvlad
42ec33f1e8 Avoid race condition in cancel_operation() when client connection breaks immediately after op_detach.
Alex, please review.
2018-08-26 23:23:35 +03:00
hvlad
7b1db44868 Front-ported: Avoid race condition (with AV) when YEvents object references is released concurrently.
Alex, please review.
2018-08-26 23:22:51 +03:00
hvlad
cf357238d4 Fix incorrect reference counting for EventManager object.
It leads to the crash due to attempt to execute code (watcher_thread) after engine DLL is unloaded.
2018-08-26 23:17:25 +03:00
hvlad
806deee493 Avoid double delete of ThreadSync object 2018-08-26 23:17:12 +03:00
firebirds
41b703995e increment build number 2018-08-25 00:03:19 +00:00
Adriano dos Santos Fernandes
8f3000e740 Fix CORE-5896 - NOT NULL constraint is not synchronized after rename column. 2018-08-24 13:37:22 -03:00
Alex Peshkoff
f0281d97d9 Fixed CORE-5886: Nbackup does not work after 32K of backups iterations 2018-08-24 18:06:46 +03:00
firebirds
5cffb24993 increment build number 2018-08-23 00:03:18 +00:00
Alex Peshkoff
87c306e966 Fixed CORE-5900: Banned during engine shutdown threads cause unwanted delays when shutting server 2018-08-22 19:15:08 +03:00
Alex Peshkoff
7a6c06a50b Minor changes in memory leaks debugging code 2018-08-22 16:29:36 +03:00
Alex Peshkoff
3831b18e03 Fixed CORE-5899: Memory leak in GBAK code when used as service 2018-08-22 16:29:36 +03:00
firebirds
9770650c8d increment build number 2018-08-16 00:03:15 +00:00
Alex Peshkoff
0ca8d61b66 Fixed CORE-5893:gbak may crash database when mixing alias with full database name 2018-08-15 16:08:42 +03:00
firebirds
637ea328ba increment build number 2018-08-14 00:03:15 +00:00
Alex Peshkoff
26192efca4 Fixed regression caused when fixing CORE-5883 2018-08-13 19:53:17 +03:00
Alex Peshkoff
75b4443fae Fixed CORE-5891: Invalid events are released in mapping shared memory when dead process is detected 2018-08-13 19:02:23 +03:00
Alex Peshkoff
f6b33b9310 Rollback changes accidentially committed in 5883 instead CORE-5891 2018-08-13 18:55:24 +03:00
firebirds
f44097cc67 increment build number 2018-08-11 00:03:14 +00:00
Adriano dos Santos Fernandes
3909a7ec97 Improvement CORE-5887 - Allow the use of management statements in PSQL blocks. 2018-08-10 12:22:09 -03:00
Alex Peshkoff
d77e318b58 Fixed segfault in special build. Great thanks to Vlad. Cause this bug never affects users I do not poison tracker. 2018-08-10 17:18:54 +03:00
firebirds
7503dbfc88 increment build number 2018-08-10 00:03:30 +00:00
Adriano dos Santos Fernandes
a8bbfbdf7f Fix warning. 2018-08-08 23:11:01 -03:00
Adriano dos Santos Fernandes
18edaa66e7 Port CVT2_compare_priority from work/time-zone-support to fix regression in 3acc93f.
The codes for yet unmerged TZ support should not be a problem.

Regressions verified by Pavel Zotov, where these statements were not raising exception anymore:

select cast('true' as blob) > false as result from rdb$database;
select list(b, '') > false as result from (select 'true' as b from rdb$database);
2018-08-08 22:55:43 -03:00
firebirds
611bf97eb3 increment build number 2018-08-09 00:03:15 +00:00
hvlad
7c8b4725de Assert, per Adriano requiest 2018-08-09 00:01:36 +03:00
hvlad
5b9dfe92b6 Removed few casts, fixed typo, changed parameter name.
Thanks to Adriano for review.
2018-08-08 12:12:21 +03:00
hvlad
558ffd541a Let trace plugin know about read consistency transactions 2018-08-08 09:48:59 +03:00
Adriano dos Santos Fernandes
60857739c4 Misc. 2018-08-07 23:06:43 -03:00
firebirds
034d969562 increment build number 2018-08-07 00:03:15 +00:00
hvlad
9769bf5b59 Comments per Adriano requiest 2018-08-06 15:44:39 +03:00
Alex Peshkoff
e5b0930d15 Postfix for CORE-5808: fixed code as suggested by Adriano 2018-08-06 14:20:10 +03:00
Adriano dos Santos Fernandes
a3e24613e8 Misc. 2018-08-05 22:39:28 -03:00
firebirds
04a410542e increment build number 2018-08-03 00:03:10 +00:00
Alex Peshkoff
a965ee0995 Fixed CORE-5884: Initial global mapping from srp plugin does not work 2018-08-02 19:01:20 +03:00
firebirds
6224dbf62b increment build number 2018-08-02 00:03:12 +00:00
Alex Peshkoff
4ec57b11e6 Warnings 2018-08-01 18:22:56 +03:00
Alex Peshkoff
71b63156b1 Implemented CORE-5883: Services version 1 cleanup 2018-08-01 18:22:56 +03:00
hvlad
bc0f26a79b Added missed record into RDB$TYPES. 2018-08-01 14:02:38 +03:00
firebirds
de8f6b57e1 increment build number 2018-08-01 00:03:17 +00:00
Alex Peshkoff
1a40ca680d Fixed CORE-5876: Provide name of udf function for "arithmetic exception, numeric overflow, or string truncation" 2018-07-31 16:08:46 +03:00
firebirds
16997015ac increment build number 2018-07-31 00:03:17 +00:00
hvlad
4bc5c8c704 This should restore old pre-committed logic when working with GTT's in RCRO transactions. 2018-07-31 00:46:57 +03:00
Alex Peshkoff
9493802c1c Comment 2018-07-30 19:29:15 +03:00
Alex Peshkoff
7a7367e1a4 Fixed CORE-5881: Network server ignores any error that took place in KeyHolderPlugin when establishing initial callback with client 2018-07-30 14:08:44 +03:00
firebirds
e05b6ca155 increment build number 2018-07-29 00:03:57 +00:00
Vlad Khorsun
6a16e9e99b
Merge pull request #105 from red-soft-ru/read_consistency
Read consistency
2018-07-28 22:36:13 +03:00
firebirds
c06632572e increment build number 2018-07-28 00:03:16 +00:00
Adriano dos Santos Fernandes
8a0ec269b6 Fix CORE-5862 - Varchar computed column without explicit type does not populate RDB$CHARACTER_LENGTH. 2018-07-27 13:30:00 -03:00
firebirds
ac873c3373 increment build number 2018-07-27 00:03:11 +00:00
hvlad
edce1bd1bc This should fix bug CORE-5844 : Firebird freeze for new connections 2018-07-26 11:12:21 +03:00
firebirds
f4e00d4885 increment build number 2018-07-26 00:03:16 +00:00
hvlad
9b7d0a3018 Improve fast path of updateActiveSnapshots to prevent stop of intermediate garbage collection due to stalled list of active snapshots 2018-07-26 01:04:11 +03:00
Ilya Eremin
daa4af059f Stop database restore with -o option when fatal errors occur (SQL code -902) (#166) 2018-07-25 19:39:53 +03:00
firebirds
2cbcd703c4 increment build number 2018-07-25 00:03:15 +00:00
Adriano dos Santos Fernandes
ad720b6305 Fix code style and some warnings in Windows build. 2018-07-24 12:42:38 -03:00
Adriano dos Santos Fernandes
2f80120531 Fix CORE-5871 - Incorrect caching of the subquery result (procedure call) in independent queries. 2018-07-23 22:50:05 -03:00
firebirds
066f999bde increment build number 2018-07-24 00:03:12 +00:00
hvlad
f8752bb677 Hopefully final corrections: missed (info, EDS) items, spaces, etc 2018-07-22 19:43:51 +03:00
hvlad
3fcc02105f Misc 2018-07-19 19:48:05 +03:00
hvlad
be02a9f67c Move local sorted list of active snapshots from then transaction to the attachment level.
It allows to reuse it and refresh less frequently.
2018-07-19 17:45:59 +03:00
firebirds
39954d19cb increment build number 2018-07-18 00:03:14 +00:00
hvlad
db1a1d40e2 Correct condition when mapped file of monitoring data should be removed. 2018-07-17 19:03:18 +03:00
hvlad
b346948a23 Fixed bug when snapshots list could be corrupted when updated concurrently 2018-07-17 18:20:34 +03:00
firebirds
cf1b1a2e64 increment build number 2018-07-17 00:03:22 +00:00
Adriano dos Santos Fernandes
32ca23b4fc Fix CORE-5874 - Provide name of read-only column incorrectly referenced in UPDATE ... SET xxx. 2018-07-16 12:19:49 -03:00
hvlad
ca71a54609 Merge branch 'master' into read_consistency 2018-07-16 16:16:22 +03:00
hvlad
0173d55597 Restart requests only if concurrent transaction is committed.
Format code a bit.
2018-07-16 15:32:28 +03:00
firebirds
35f3315eae increment build number 2018-07-11 00:03:13 +00:00
hvlad
ce39c96274 Remove commented out code. 2018-07-11 01:14:54 +03:00
hvlad
90e2b3035c Fixed crash when run test bugs.core_5329 in Classic mode using debug build. 2018-07-11 01:09:50 +03:00
hvlad
9b0ac5c52a Fixed memory corruption found when run test bugs.5674 in Classic mode using debug build.
To reproduce run

with recursive
    a as(
      select 0 a from rdb$database
      union all
      select a+1 from a where a.a < 1
    )
    ,b as(
      select 1 a from c rows 1
    )
    ,c as(
      select 2 b from b rows 1
    )
select * from a;
2018-07-10 23:27:15 +03:00
hvlad
dd9aeea691 Fixed assertion when run test bugs.core_0805 in Classic mode 2018-07-10 23:22:18 +03:00
hvlad
2d2bb746f9 Fixed bug CORE-5872 : Database validation reports false errors "Record XXX has bad transaction" and\or "Record XXX is wrong length" when record transaction number is greater than 2^32 2018-07-10 22:42:57 +03:00
hvlad
ea010ed13a Fixed bug CORE-5870 : ISQL's "show database" command works wrong with 64-bit numbers 2018-07-10 19:58:11 +03:00
hvlad
9de2c13ef9 Partial fix for bug CORE-5869 : Sweep can't move OIT value over 2^32, when Next already greater than 2^32 (4'294'967'296) 2018-07-10 19:57:17 +03:00
firebirds
726e7a4619 increment build number 2018-07-10 00:03:15 +00:00
Adriano dos Santos Fernandes
2a46f5023f Fix some compiler warnings (clang). 2018-07-09 14:19:20 -03:00
firebirds
880a43fa77 increment build number 2018-07-07 00:03:09 +00:00
Alex Peshkoff
69523f1886 Fixed CORE-5865: Alignment error on x86_64 2018-07-06 21:39:16 +03:00
firebirds
0387688c9e increment build number 2018-07-06 00:03:13 +00:00
Alex Peshkoff
09e4678717 Fixed a number of memory leaks related with batch interface 2018-07-05 17:00:03 +03:00
firebirds
ec8dd9b07e increment build number 2018-07-03 00:03:11 +00:00
Alex Peshkoff
69395df6e9 Fixed exception handling in wire crypt code - thanks to Vlad 2018-07-02 11:36:00 +03:00
firebirds
b676f9521d increment build number 2018-07-02 00:03:14 +00:00
hvlad
ca0c2823c3 Fixed usage of rem_port states.
Fixed potential crash in wnet\xnet code (see fix for CORE-5863).
2018-07-01 18:09:53 +03:00
hvlad
bdb7942a52 This should fix bug CORE-5863 : Classic process crashes when client disconnected 2018-07-01 17:57:42 +03:00
firebirds
bf21b6a855 increment build number 2018-06-29 00:03:14 +00:00
Adriano dos Santos Fernandes
29e49e9f81 Avoid assert error in debug build and probable read of unallocated memory in release build.
Problem happens in test core_4690 when running debug build of firebird server.

This fixed cannot be considered complete, as rel_fields seems not fully filled at that moment.

Reduced test case:

create database 't.fdb';

recreate table comi_ingr (id int);
commit;

recreate table comidas (
  cod_comida integer not null,
  constraint pk_comidas primary key (cod_comida)
);

recreate table comi_ingr (
  cod_comi_ingr integer not null,
  cod_ingrediente integer not null,
  cod_comida integer not null,
  constraint pk_comi_ingr primary key (cod_comi_ingr),
  constraint fk_comi_ingr2 foreign key (cod_comida) references comidas(cod_comida) on update cascade
);
2018-06-28 13:30:56 -03:00
Roman Simakov
7b8d6c2c65
Merge pull request #164 from FirebirdSQL/fb4_mov_go2code
Fixed CORE-5861: GRANT OPTION is not checked for new object.
2018-06-28 13:53:07 +03:00
firebirds
5279daa556 increment build number 2018-06-27 00:03:11 +00:00
hvlad
d8eb4a4970 Prevent AV when thread detaches and no modules was loaded 2018-06-27 00:31:41 +03:00
Roman Simakov
f436eeb1a3 Fixed CORE-5861: GRANT OPTION is not checked for new object.
Checks moved to code from trigger1 and all new objects and checked.
Checks of object's owned is not necceddary because of owner has all required privileges to pass regular checks.
Also now GRANT OPTION can be checked for roles too.
2018-06-26 16:44:46 +03:00
firebirds
126e99072e increment build number 2018-06-26 00:03:56 +00:00
Alex Peshkoff
8d00312173 Fixed CORE-5855: Latest builds of Firebird 4.0 cannot backup DB with generators which contains space in the names 2018-06-25 19:25:02 +03:00
Roman Simakov
58e4f5a9ad Adjust assert condition and added check if role exists. 2018-06-25 12:09:28 +03:00
firebirds
7010ebba4b increment build number 2018-06-25 00:03:08 +00:00