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

49082 Commits

Author SHA1 Message Date
firebirds
e9c8649733 increment build number 2019-07-23 00:04:20 +00:00
Roman Simakov
46276c4e52 Typo 2019-07-22 15:30:07 +03:00
Roman Simakov
3058fa48d3 Implemented cache of SecurityClasses when key is a pair
<SecurityClassName, UserName>. Now SecurityClass contains user name.
SCL_get_class now always returns a security class of the effective user.
It's necessary to take care of it in calls.
userName is removed from SCL_check_access function's arguments. It can
get it in security class.
Recomputing security classes are removed.
walk_acl uses explicit userName (previosly it might be current user).
2019-07-22 13:20:19 +03:00
firebirds
5f0aa39ff7 increment build number 2019-07-21 00:03:40 +00:00
Dmitry Yemanov
a1e7ecf922 Make indentation consistent 2019-07-20 11:54:03 +03:00
Dmitry Yemanov
adc23d2d87 Fixed CORE-6104: incorrect erroris thrown when an embedded user does not have SELECT permissions 2019-07-20 11:53:52 +03:00
firebirds
5d3f12ad66 increment build number 2019-07-18 00:03:30 +00:00
Dmitry Yemanov
fe0ffefa31 This should fix CORE-6097: Connection does not see itself in the MON 2019-07-17 08:23:38 +03:00
firebirds
2f57dc3395 increment build number 2019-07-16 00:03:30 +00:00
Adriano dos Santos Fernandes
d046a2ca86 Fallback for problem converting time-tz/timestamp-tz when ICU is not present in client. 2019-07-14 21:31:17 -03:00
firebirds
2bc5097252 increment build number 2019-07-11 00:03:39 +00:00
Alex Peshkoff
8d500d08c2 Fixed CORE-5784: Lock folder inizialization is not multi-process safe 2019-07-10 18:32:55 +03:00
firebirds
1fb2b2aab7 increment build number 2019-07-10 00:04:11 +00:00
Alex Peshkoff
0a3c2e65dc Postfix for CORE-6093, thanks to Andrey Kravchenko 2019-07-09 22:37:45 +03:00
firebirds
23fd3dc184 increment build number 2019-07-07 00:03:59 +00:00
firebirds
e10d83e772 increment build number 2019-07-06 00:03:43 +00:00
Alex Peshkoff
9e736e3f79 Authentication block, received by client plugin from engine, might contain trash 2019-07-05 13:55:15 +03:00
firebirds
3a135e2367 increment build number 2019-07-05 00:03:52 +00:00
Alex Peshkoff
59ebe83f63 Postfix for CORE-5696: fixed DecFloat(34) literals 2019-07-04 09:05:34 +03:00
firebirds
9c4e8a8916 increment build number 2019-07-04 00:03:41 +00:00
Alex Peshkoff
6bb80e1845 Fixed CORE-6093: Errors simultaneously accessing security database from two engines 2019-07-03 14:12:06 +03:00
firebirds
3e1862d59e increment build number 2019-07-03 00:03:55 +00:00
hvlad
d368300a02 Reworked fix for bug CORE-6080 2019-07-03 01:33:48 +03:00
firebirds
33a47246e3 increment build number 2019-07-02 00:03:56 +00:00
Alex Peshkoff
c80e60c1ae Postfix for CORE-6091, thanks to Vlad 2019-07-01 20:07:13 +03:00
Alex Peshkoff
2da0a6edc3 Backported CORE-6091: Errors when processing correct SQL statements in engine12 provider loaded by FB4 server 2019-07-01 19:42:31 +03:00
firebirds
a380b00e70 increment build number 2019-07-01 00:03:47 +00:00
Dmitry Yemanov
78b68a3d2f Frontported CORE-6089/6090 and minor adjustments 2019-06-30 21:23:37 +03:00
firebirds
ffa93415b0 increment build number 2019-06-29 00:04:08 +00:00
Alex Peshkoff
04c189c7c8 Fix for CORE-6072 - make firebird always work with security database from databases.conf 2019-06-28 18:49:59 +03:00
Alex Peshkoff
2f335dca94 Assert when data to be placed into MetaName do not fit 2019-06-28 18:49:59 +03:00
Alex Peshkoff
7bf9b85189 Partial fix for CORE-6072 - reworked potentially buggy approach when adding different kind of strings to the clumplet 2019-06-28 18:49:59 +03:00
Alex Peshkoff
f4366a3db9 Partial fix for CORE-6072 - use configured providers internally (except loopback) 2019-06-28 18:49:59 +03:00
Alex Peshkoff
2e9df437e6 Fix for CORE-6072: better diag for missing timeouts support in particular provider, ignore error for 0 (missing) timeout 2019-06-28 18:49:59 +03:00
firebirds
6158b2fa1d increment build number 2019-06-27 00:03:56 +00:00
Vlad Khorsun
0d3ea29be4
Merge pull request #210 from FirebirdSQL/ICU_load_system
Allow to load system ICU (when shared modules names have no version t…
2019-06-26 19:34:21 +03:00
Adriano dos Santos Fernandes
259848c296 Misc. 2019-06-26 13:09:50 -03:00
hvlad
54221b3801 Improve diagnostics of internal trace errors (see CORE-3413 and CORE-6075) 2019-06-26 16:00:43 +03:00
firebirds
4dbb997f48 increment build number 2019-06-26 00:03:43 +00:00
hvlad
b767e2684f Correction 2019-06-25 14:35:36 +03:00
hvlad
13a7c0df95 Allow to load system ICU (when shared modules names have no version tag).
Refactor ICU load\initialization code a bit to avoid code duplication and dumb try\catch.
Change ICU versions search range to avoid looking for never existing versions and significantly reduce search time.
Now ICU search order is: preferred version (63), system-wide version, 79-49, 4.8-3.0
Improve error reporting a bit - include ICU version number that failed to load or init.
2019-06-25 12:42:40 +03:00
Roman Simakov
1dd176e31c Using effective user as grantor instead of current one. 2019-06-25 12:36:06 +03:00
firebirds
c5ab3b863c increment build number 2019-06-25 00:04:06 +00:00
Alex Peshkoff
d219d25266 Partial fix for CORE-6072: better error handling in yvalve and isql 2019-06-24 13:25:55 +03:00
firebirds
72f1a09805 increment build number 2019-06-24 00:03:30 +00:00
Dmitry Yemanov
49754a89fd Fixed CORE-6086, thanks to Vlad 2019-06-23 08:11:07 +03:00
firebirds
a7d953adca increment build number 2019-06-20 00:03:59 +00:00
Adriano dos Santos Fernandes
dbed2498e7 Fixed CORE-6087 - Problem with casting within UNION. 2019-06-18 22:24:17 -03:00
firebirds
fbb755bda0 increment build number 2019-06-18 00:03:38 +00:00
Alex Peshkoff
eca1620a23 Fixed CORE-6078: Permissions for create or alter statements are not checked 2019-06-17 18:07:25 +03:00
firebirds
5698947eb3 increment build number 2019-06-15 00:04:05 +00:00
firebirds
3ca8de9e6a increment build number 2019-06-14 00:03:44 +00:00
Alex Peshkoff
7bed9377c3 Fixed CORE-6083: USING PLUGIN clause does not work in RECREATE USER 2019-06-13 19:32:20 +03:00
firebirds
e646075244 increment build number 2019-06-11 00:03:28 +00:00
hvlad
737c33fc98 Make isc_tpb_at_snapshot_number usable in TPB 2019-06-10 20:12:28 +03:00
hvlad
3bfa5fa100 Fixed bug CORE-6080 : Attempt to drop existing user randomly fails 2019-06-10 20:03:32 +03:00
firebirds
8be273730e increment build number 2019-06-09 00:03:42 +00:00
Adriano dos Santos Fernandes
a5613c6fec
Misc. 2019-06-08 12:21:36 -03:00
firebirds
ea2e7d0463 increment build number 2019-06-08 00:03:58 +00:00
Alex Peshkoff
5d70d4aae5 Fixed CORE-5696/CORE-5697: decfloat literals work wrong 2019-06-07 19:24:32 +03:00
firebirds
e06fe61f75 increment build number 2019-06-04 00:05:23 +00:00
ibprovider
7c679c519a SHA2 Refactoring [master]. (#207)
SHA2 Refactoring
2019-06-03 19:07:06 +03:00
Adriano dos Santos Fernandes
45d5e3aa7a
Refactor public include files (#205)
Refactor include files.
2019-06-03 11:45:00 -03:00
firebirds
c209b910e9 increment build number 2019-06-02 00:03:22 +00:00
firebirds
9d729f6b33 increment build number 2019-05-31 00:03:42 +00:00
Adriano dos Santos Fernandes
6d5d163599 Simplify FirebirdApiPointers struct. 2019-05-30 12:21:00 -03:00
Alex Peshkoff
f81ae05636 Fixed CORE-6071: Restore of encrypted backup of database with SQL dialect 1 fails 2019-05-30 16:09:10 +03:00
firebirds
9e176eb3b0 increment build number 2019-05-30 00:03:38 +00:00
hvlad
f24c4c1fda Lets issue warning instead of error when application close\free object (such as cursor, blob, etc) which "next" part is gone.
Do it when it is safe, of course.
2019-05-29 19:51:55 +03:00
hvlad
9766094b63 Fixed bug CORE-6067 : Memory leak in fbclient
Many thanks to Alex
2019-05-29 14:06:06 +03:00
firebirds
00c21fb493 increment build number 2019-05-29 00:03:29 +00:00
Alex Peshkoff
08e6b18cfd Implemented CORE-6069: Show OS-specific error when entrypont is not found in dynamic library 2019-05-28 14:35:08 +03:00
firebirds
a6ade2d3d2 increment build number 2019-05-28 00:03:24 +00:00
Egor Pugin
268d30a0b6 [build][cmake] Update copy_files target. 2019-05-27 08:47:08 -03:00
firebirds
f67e109933 increment build number 2019-05-27 00:03:41 +00:00
Adriano dos Santos Fernandes
8e228e9440 Fix CORE-6068 - Server hangs when compiling big package with error. 2019-05-26 19:50:07 -03:00
firebirds
9680dec41e increment build number 2019-05-25 00:04:22 +00:00
AlexPeshkoff
292321bd9c Postfix for CORE-5474, more generic way to check for actual library name 2019-05-24 19:59:07 +03:00
firebirds
b7001b21e5 increment build number 2019-05-24 00:03:48 +00:00
Dmitry Yemanov
9ab1c1ab27 Fixed a mistake 2019-05-23 18:55:36 +03:00
Dmitry Yemanov
4534a64791 Frontported and refactored PR #202 (CORE-5074) 2019-05-23 18:55:06 +03:00
firebirds
d81f8e6a0b increment build number 2019-05-20 00:52:26 +00:00
firebirds
f75d1a8535 increment build number 2019-05-15 00:03:36 +00:00
ibprovider
d218864e1c Fast bug fix for CORE-6063. (#200)
http://tracker.firebirdsql.org/browse/CORE-6063

Server does not return result of own work (name of next auth-plugin).

TODO (for next commits).

1. Simplify a condition with call of port->extractNewKeys. See in same method below.
2019-05-14 18:29:27 +03:00
firebirds
05e090539d increment build number 2019-05-11 00:03:30 +00:00
Adriano dos Santos Fernandes
b9b69d793d Fixed CORE-6056 - Overflow warings in some collations. 2019-05-10 12:21:29 -03:00
firebirds
d2116ea145 increment build number 2019-05-08 00:03:32 +00:00
Egor Pugin
7affea21b6 [build][cmake] Determine icu version during configuration. (#199) 2019-05-07 11:02:22 -03:00
firebirds
1074f1e17d increment build number 2019-05-02 00:03:33 +00:00
Adriano dos Santos Fernandes
9c76811fae Improvement CORE-6058 - Change behavior of skipped and repeated wall times within time zones. 2019-05-01 16:32:29 -03:00
firebirds
b656c3ae84 increment build number 2019-04-27 00:03:20 +00:00
hvlad
3f5e93abbb Addition for CORE-6043 : GTTs do not release used space
Avoid races at PAG_release\PAG_allocate
2019-04-26 13:20:07 +03:00
firebirds
6dae00c417 increment build number 2019-04-26 00:03:27 +00:00
Adriano dos Santos Fernandes
5ca2d8640b Fixed another case for CORE-6046.
Incorrect time zone parsing reads garbage in memory.
2019-04-24 21:21:46 -03:00
firebirds
01ab5f9854 increment build number 2019-04-25 00:03:38 +00:00
Adriano dos Santos Fernandes
c1b85aeb85 Change RDB$TRANSACTIONS.RDB$TIMESTAMP and RDB$BACKUP_HISTORY.RDB$TIMESTAMP to TIMESTAMP WITH TIME ZONE. 2019-04-24 13:44:32 -03:00
firebirds
0572cf60e4 increment build number 2019-04-24 00:03:33 +00:00
AlexPeshkoff
732785b3a5 Frontported CORE-6050: When FB 3 fbclient.dll connects to a remote FB 2.5 server, it tries to open local (client-side) directories and files 2019-04-23 10:36:30 +03:00
firebirds
a570f4ba34 increment build number 2019-04-23 00:03:42 +00:00
hvlad
3f794b6c9c Fixed bug CORE-3925 : Creating self-referential FK crashes database (bug-check) whether constraint violation had place 2019-04-22 13:34:18 +03:00
firebirds
e109b7d9a3 increment build number 2019-04-19 00:03:30 +00:00
Egor Pugin
80ee64310e Add replication to CMake build. 2019-04-18 13:45:29 +03:00
Egor Pugin
cd13b03560 Fix VS2019 build. 2019-04-18 13:45:29 +03:00
firebirds
6f48cbdbe4 increment build number 2019-04-18 00:03:28 +00:00
AlexPeshkoff
d43f7c458f Renamed one more code on Vlad's request 2019-04-17 13:00:23 +03:00
AlexPeshkoff
d2539121cb Added runtime check for hex string length 2019-04-17 12:46:34 +03:00
AlexPeshkoff
399c03fefa Renamed error code 2019-04-17 11:54:27 +03:00
AlexPeshkoff
5cbd2aaaeb Implemented CORE-6049: Builtin functions converting binary string to hexadecimal representation and vice versa 2019-04-17 10:57:06 +03:00
firebirds
e2391d9e91 increment build number 2019-04-16 00:03:50 +00:00
Adriano dos Santos Fernandes
89c09d1320 Improve some error names/constants. 2019-04-15 12:22:10 -03:00
firebirds
6b53d19360 increment build number 2019-04-15 00:03:31 +00:00
AlexPeshkoff
b30b7e2358 Fixed CORE-6038: Srp user manager sporadically creates users which can not attach 2019-04-14 21:02:11 +03:00
firebirds
e9f7492d22 increment build number 2019-04-14 00:03:28 +00:00
AlexPeshkoff
456e7a03cf Implemented CORE-4726: REcreate user <user_name> password <user_pwd> 2019-04-13 21:21:56 +03:00
firebirds
786190c97f increment build number 2019-04-13 00:03:24 +00:00
hvlad
7ce2a344f0 Fixed bug CORE-6043 : GTTs do not release used space 2019-04-12 15:44:18 +03:00
firebirds
40b331609a increment build number 2019-04-12 00:03:26 +00:00
Adriano dos Santos Fernandes
f00d04cbcf Fixed CORE-6040 - Metadata script extracted using ISQL is invalid/incorrect when table has COMPUTED BY field. 2019-04-11 12:52:18 -03:00
firebirds
8f1f459ac4 increment build number 2019-04-11 00:03:42 +00:00
Adriano dos Santos Fernandes
158ee4a0ea Fixed CORE-6046 - Incorrect time zone parsing reads garbage in memory. 2019-04-10 12:55:43 -03:00
Adriano dos Santos Fernandes
27bd93a9d3 Fixed CORE-6044 - ISQL issues with increased identifier length. 2019-04-10 12:19:02 -03:00
AlexPeshkoff
5fbf07ee1a Fixed CORE-6045: Segmentation fault in fbtracemgr when closing it using ctrl-C 2019-04-10 14:53:14 +03:00
firebirds
1288f17b4f increment build number 2019-04-10 00:03:33 +00:00
AlexPeshkoff
39ded8ed98 Fixed CORE-6027: Server hang on new attachment right after trace session stop 2019-04-09 22:09:03 +03:00
firebirds
d255782b5e increment build number 2019-04-08 00:03:28 +00:00
Adriano dos Santos Fernandes
2a9f8fa60b Improvement CORE-6032 - Add DPB properties for time zone bind and decfloat configuration. 2019-04-07 11:56:02 -03:00
Adriano dos Santos Fernandes
eee0e0cb68 Refactor. 2019-04-07 11:50:22 -03:00
firebirds
eade8d3d63 increment build number 2019-04-02 00:03:20 +00:00
Dmitry Yemanov
545d6b3fc8 Fixed inconsistent alignment beetween 32-bit and 64-bit replication sides 2019-04-01 17:35:30 +03:00
Roman Simakov
1c96880660 New attempt to fix infinity recursive building external access list
This reverts commit 4f0cd0b81a.
2019-04-01 16:08:18 +03:00
Roman Simakov
4f0cd0b81a Fixed infinity recursive building external access list 2019-04-01 12:32:02 +03:00
firebirds
f62f3b3519 increment build number 2019-03-27 00:03:40 +00:00
Adriano dos Santos Fernandes
a64b202dad Fixed CORE-6034 - The original time zone should be set to the current time zone at routine invocation. 2019-03-26 13:13:59 -03:00
firebirds
c2fe37df9f increment build number 2019-03-26 00:03:28 +00:00
AlexPeshkoff
df8982b81b Fixed CORE-6031: Little valgrind memory leak in isc_attach_database 2019-03-25 14:42:20 +03:00
firebirds
560462899d increment build number 2019-03-23 00:03:44 +00:00
Adriano dos Santos Fernandes
e438bdeb60 Fixed CORE-6033 - SUBSTRING(CURRENT_TIMESTAMP) does not work. 2019-03-22 12:45:06 -03:00
AlexPeshkoff
1c2afb4717 Postfix for CORE-6028, thanks to Adriano 2019-03-22 17:53:00 +03:00
Roman Simakov
f17692c339 Fixed warnings of the buffer overwriting in sprintf 2019-03-22 14:18:25 +03:00
Roman Simakov
6359ed98bb Added error constants for messages. It's my previous mistake. 2019-03-21 18:16:56 +03:00
firebirds
70b9fab34f increment build number 2019-03-21 00:03:45 +00:00
AlexPeshkoff
3828bfdf57 Fixed CORE-6028: Trigger on system table restored in FB3 database and can't be deleted 2019-03-20 20:09:45 +03:00
firebirds
b3647fac36 increment build number 2019-03-19 00:04:04 +00:00
AlexPeshkoff
84a682bf17 Fixed some gcc8 warnings - WiP 2019-03-18 20:10:48 +03:00
Adriano dos Santos Fernandes
41b2683b8a Fixed CORE-6026 - Alignment issue with FB_MESSAGE C++ macro
(as well UDR macros) and BIGINT/DECFLOAT types in Linux 32-bits.
2019-03-18 12:23:34 -03:00
Roman Simakov
bb3c2e94ec Fixed CORE-5892: SQL SECURITY DEFINER context is not properly evaluated for monitoring tables (#196)
* Now we take into account the call hierarchy when use SQL SECURITY
option.
Added new context variable in SYSTEM namespace - EFFICIENT_USER which is
returns user name in which context a code works.
We change efficient user before call procedure and function, fetch a
record from selective procedure and before execute a trigger.

* Renamed new context variable to EFFECTIVE_USER. Fixed nested calls.

* Improved error messages to print effective user when there is no permission.

* Added description of new context variable EFFECTIVE_USER. Improved description of SQL SECURITY clause.
2019-03-18 14:17:02 +03:00
firebirds
b200006ab8 increment build number 2019-03-15 00:03:57 +00:00
Adriano dos Santos Fernandes
ac1bb875c3 Reimplement previous NodeRefImpl checks while simplifying code also removing NodeRef. 2019-03-14 15:50:43 -03:00
firebirds
7d2c00a37b increment build number 2019-03-12 00:03:45 +00:00
hvlad
0dbf5a2916 Optimization: avoid frequent allocation\deallocation of tiny objects (NodeRefImpl). 2019-03-11 14:14:20 +02:00
hvlad
b3270ed610 Optimization: avoid memory allocation\deallocation when working with metadata names
(and other cases when [padded] string occupies 129-255 bytes).
2019-03-11 13:49:05 +02:00
hvlad
b6593c9253 Optimization: replace (non-inlined) call of memcmp() by hand-written unfolded loop.
It saves 3-5% time of database creation, for example.
2019-03-11 12:46:11 +02:00
hvlad
dcbbbc0880 Optimization: call relatively costly MET_get_field() when necessary only. 2019-03-11 11:36:35 +02:00
hvlad
364975b524 Reuse system requests that is most often used at database creation process. 2019-03-11 11:32:00 +02:00
firebirds
5e7e0d34eb increment build number 2019-03-11 00:03:20 +00:00
Dmitry Yemanov
665329ab00 Corrections 2019-03-10 20:46:55 +03:00
firebirds
e0647c6634 increment build number 2019-03-09 00:03:17 +00:00
firebirds
958f517008 increment build number 2019-03-07 00:03:29 +00:00
hvlad
ee3a13d5f6 Improvement CORE-5658 : Execute statement with excess parameters 2019-03-06 12:05:46 +02:00
firebirds
906e474541 increment build number 2019-03-03 00:03:20 +00:00
firebirds
f0478e6549 increment build number 2019-03-02 00:03:31 +00:00
Adriano dos Santos Fernandes
cfbcbeda3c
Make it possible to start multiple transactions using the same initial transaction snapshot - CORE-6018 (#193)
With this feature it's possible to create parallel (via different attachments) processes reading consistent data from a database.

For example, a backup process may create multiple threads paralleling read data from the database.

Also a web service may dispatch distributed sub services paralleling doing some processing.

That is accomplished creating a transaction with SET TRANSACTION SNAPSHOT [ AT NUMBER <snapshot number> ] or isc_tpb_at_snapshot_number.

The <snapshot number> from the first transaction may be obtained with RDB$GET_CONTEXT('SYSTEM', 'SNAPSHOT_NUMBER') or transaction info call with fb_info_tra_snapshot_number.

Also added CORE-6017 - Add transaction info fb_info_tra_snapshot_number.
2019-03-01 16:17:19 -03:00
Adriano dos Santos Fernandes
05b5d16c44 Task CORE-6016 - Rename RDB$GET_CONTEXT('SYSTEM', 'SNAPSHOT_CN') to RDB$GET_CONTEXT('SYSTEM', 'SNAPSHOT_NUMBER'). 2019-03-01 12:14:14 -03:00
AlexPeshkoff
606e9e345c Fixed CORE-6015: Segfault when using expression index with complex expression 2019-03-01 12:59:45 +03:00
firebirds
03999d6b8c increment build number 2019-02-27 00:03:34 +00:00
Artyom Smirnov
1f13a2fa15 Fix external engine memory leaks (#168)
* Release objects of external engine

1. Added explicit destruction of procedures and functions, because it
should execute external routines destructor to avoid leaks inside
external engine
2. Add explicit destruction of trigger and destruction of linked
external trigger
3. Release external engine after use

* Fix external engine procedures leaking, when creating new procedure
2019-02-26 07:54:01 +03:00
firebirds
f6e6dccf80 increment build number 2019-02-26 00:03:28 +00:00
AlexPeshkoff
71e108cf49 Partially rolled back my last commit 2019-02-25 17:34:37 +03:00
firebirds
2fe0bf0d78 increment build number 2019-02-23 00:03:25 +00:00
AlexPeshkoff
cf7a1b605d Fixed CORE-6009: I/O error during "open" operation for file "/tmp/firebird/fb_trace_*" in firebird.log 2019-02-22 19:53:14 +03:00
KarloX2
83811547c9 CORE-6004
Don't assign new socket handle before socket is connected
2019-02-22 07:15:08 +01:00
firebirds
81b0e07ad4 increment build number 2019-02-22 00:03:26 +00:00
hvlad
871073b238 Use correct definition for missing socket value 2019-02-21 11:59:10 +02:00
KarloX2
a0692f497c CORE-6004: Add a switch to disable the "TCP Loopback Fast Path" option
renamed the new config setting
2019-02-20 18:13:07 +01:00
KarloX2
a769533a4e CORE-6004: Add a switch to disable the "TCP Loopback Fast Path" option
fix default param value was redefined
2019-02-20 17:52:15 +01:00
KarloX2
482c688321 CORE-6004: Add a switch to disable the "TCP Loopback Fast Path" option
use port->getPortConfig() instead of Config::getDefaultConfig() to access the new setting value
2019-02-20 17:42:12 +01:00
KarloX2
540c90546f CORE-6004: Add a switch to disable the "TCP Loopback Fast Path" option (Windows only) 2019-02-19 17:22:11 +01:00
firebirds
d31495be14 increment build number 2019-02-17 00:03:22 +00:00
firebirds
46a8e484f8 increment build number 2019-02-16 00:03:17 +00:00
Dmitry Yemanov
609c1094db Misc corrections 2019-02-15 12:04:37 +03:00
firebirds
68a35287ac increment build number 2019-02-14 00:03:29 +00:00
1c1d297a0b Improved module search 2019-02-13 15:25:03 +03:00
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