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

48673 Commits

Author SHA1 Message Date
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
hvlad
a94a156720 Fixed crash when no object for grant\revoke operation.
Roman, please review.
2018-06-25 01:27:18 +03:00
firebirds
5748678d04 increment build number 2018-06-24 00:03:17 +00:00
Adriano dos Santos Fernandes
f1413be0bc Postfix for CORE-5846 - CREATE VIEW issues "Implementation of text subtype 512 not located". 2018-06-23 12:52:52 -03:00
firebirds
c081f2d316 increment build number 2018-06-23 00:03:13 +00:00
Alex Peshkoff
61b4bf0d27 Fixed CORE-5593: System function RDB$ROLE_IN_USE cannot take long role names with lower-case letters 2018-06-22 17:57:53 +03:00
Roman Simakov
364e29a36a
Merge pull request #163 from FirebirdSQL/trigger1_refac
Fixed CORE-5852: There is no check of existance generator and exception when privileges are granted
Moved check of the object existance from trigger1 to grantRevoke method.
2018-06-22 13:14:47 +03:00
Adriano dos Santos Fernandes
83c227dc31 Fixed CORE-5846 - CREATE VIEW issues "Implementation of text subtype 512 not located". 2018-06-21 21:13:10 -03:00
firebirds
d97e6fa6e0 increment build number 2018-06-22 00:03:21 +00:00
hvlad
f8370c2bc8 Rework fix for bug CORE-5436 : [FB3 SC] Server hangs (under load test) 2018-06-21 16:19:51 +03:00
Alex Peshkoff
b9a93f5312 Applied CORE-5788: Security Patch: Replacement of use of SHA-1 in the SRP Client Proof with SHA-256 2018-06-21 14:49:16 +03:00
Roman Simakov
732c39b70a Added missed check of field existance like it was in trigger1 2018-06-20 17:46:20 +03:00
firebirds
76a55ab9b6 increment build number 2018-06-20 00:03:09 +00:00
Roman Simakov
f1f2137a8b Reverted one change because we need to initialize sqlRelation var 2018-06-19 14:35:34 +03:00
hvlad
287b8300de Replace 'octets' word and avoid some casts 2018-06-19 13:03:27 +03:00
Roman Simakov
87d15dbec0 Removed hack with errMap, fixed facilities, added correct error for table. 2018-06-19 11:45:54 +03:00
hvlad
b9da7ba014 Fixed bug CORE-5847 : "Malformed string" instead of key value in PK violation error message 2018-06-19 11:39:49 +03:00
firebirds
e5dc6ef8e8 increment build number 2018-06-19 00:03:20 +00:00
hvlad
e688ced75a Merge branch 'ExternalConnectionsPool' 2018-06-18 18:22:50 +03:00
Roman Simakov
a5ac9c9321 Moved check of the object existance from trigger1 to grantRevoke method. 2018-06-18 16:13:51 +03:00
hvlad
91b7436451 More strict fix for bug CORE-5436 : [FB3 SC] Server hangs (under load test) 2018-06-18 13:52:46 +03:00
Roman Simakov
291a8585e0 Formatting trigger1 to make it more human readable. 2018-06-18 10:44:14 +03:00
firebirds
214681c4a5 increment build number 2018-06-16 00:03:11 +00:00
Alex Peshkoff
3baa89fc52 Fixed CORE-5726: Unclear error message when inserting value exceeding max of dec_fixed decimal 2018-06-15 14:43:12 +03:00
firebirds
11cb7bad64 increment build number 2018-06-15 00:03:04 +00:00
Alex Peshkoff
db77208293 Fixed bug with altering character fields to decfloat. Thanks to Adriano. 2018-06-14 19:16:18 +03:00
hvlad
48ebbfc1f6 Add braces 2018-06-14 09:32:35 +03:00
firebirds
c2fbf442b6 increment build number 2018-06-14 00:03:10 +00:00