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

48579 Commits

Author SHA1 Message Date
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