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

395 Commits

Author SHA1 Message Date
Alexander Peshkov
861d536fc2
Int128 - new datatype (#220)
* Int128 support - work in progress

* Work in progress

* Int128 datatype appears to be mostly OK except sort & index

* Fixed divide scaling, added sorting & network (xdr) support

* Binding control, aggregate nodes, cleanup and documentation

* Fixed VS2017 AppVeyor build

* Next attempt to fix vs2017 build

* Next attempt to fix vs2017 build

* Next attempt to fix vs2017 build

* Update MSVC build.

* Set VS architecture correctly

* Fixed a number of issues noticed by Mark
2019-09-16 20:59:54 +03:00
hvlad
043f7b2361 Merge branch 'query_restarts' of https://github.com/samofatov/firebird into query_restarts 2019-08-26 20:11:36 +03:00
nikolay.samofatov
accb0e9f8a Use snapshot mode for PSQL blocks executed in autonomous transactions 2019-08-16 12:11:53 +03:00
Adriano dos Santos Fernandes
28e18749ff WIP: Reimplementation of SIMILAR TO and SUBSTRING...SIMILAR using Google's re2 library.
This should fix:
CORE-4874
CORE-5664
CORE-3858
CORE-6088
CORE-3773
CORE-5931
CORE-6088
CORE-4893
2019-08-10 22:39:19 -03:00
Mark Rotteveel
426aeb50c8 CORE-6109 SQL standard FLOAT type syntax support (#218)
* CORE-6109 SQL standard FLOAT type syntax support

* Fix type or copy/paste error

* Delete unused precision_opt rule
2019-08-02 20:55:34 +03: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
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
AlexPeshkoff
97f33ec4eb Added doc for HEX functions 2019-04-17 13:15:30 +03:00
AlexPeshkoff
456e7a03cf Implemented CORE-4726: REcreate user <user_name> password <user_pwd> 2019-04-13 21:21:56 +03:00
hvlad
7ce2a344f0 Fixed bug CORE-6043 : GTTs do not release used space 2019-04-12 15:44:18 +03: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
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
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
hvlad
e17bff156b Improvement CORE-5658 : Execute statement with excess parameters
Documentation
2019-03-06 13:37:50 +02: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
Dmitry Yemanov
37e5a89d8f Misc docs fixes 2019-01-28 09:48:05 +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
Adriano dos Santos Fernandes
558c69151b Improve RETURNING readme about usage of * (CORE-3808). 2019-01-22 12:20:42 -02: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
Adriano dos Santos Fernandes
ee05dbf7b9 Merge branch 'work/time-zone-support-mon' 2018-12-29 15:38:22 -02:00
Adriano dos Santos Fernandes
3ca18c540c Add config. parameter DefaultTimeZone. 2018-12-28 15:52:39 -02:00
Adriano dos Santos Fernandes
71bc2536f8 Improve named window documentation re. name scopes. 2018-12-16 18:27:00 -02:00
Adriano dos Santos Fernandes
9604d1c89a Misc. 2018-12-15 18:44:59 -02:00
AlexPeshkoff
9169049c28 Misc 2018-12-07 20:20:28 +03:00
AlexPeshkoff
38bc6242d4 Improved documentation 2018-12-07 20:17:39 +03:00
AlexPeshkoff
aacdeb274c Added 8 new builtin functions supporting various encryption algorithms 2018-12-07 11:17:06 +03:00
Mark Rotteveel
8af76dd576
Syntax correction FILTER
FILTER-clause and OVER-clause are separately optional
2018-11-30 14:56:52 +01:00
Adriano dos Santos Fernandes
7206db3475 Readme for CORE-5768 (Implement FILTER-clause for aggregate functions). 2018-11-28 11:16:20 -02:00
Adriano dos Santos Fernandes
586f53093b Markdown improvements. 2018-11-28 11:05:25 -02:00
Adriano dos Santos Fernandes
200720e392 Readme for CORE-5887 (Allow the use of management statements in PSQL blocks). 2018-11-28 10:52:54 -02:00
Adriano dos Santos Fernandes
330650c4f8 Adjust CURRENT_TIME/CURRENT_TIMESTAMP docs. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
58065a1b07 Misc. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
db60575bfb Add section "Updating the time zone database" to documentation. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
9d84e12468 Misc. 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
f24562f15b Document CURRENT_TIME and CURRENT_TIMESTAMP changes. 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
942d7f49f5 Added RDB$TIME_ZONES virtual table. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
ebe39c4b6a Documentation for time zone support. 2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
0a5ab86198 Update keywords doc. 2018-11-12 13:18:00 -02:00
AlexPeshkoff
14e8ecf44e Document changes in win_sspi 2018-10-22 20:15:13 +03:00
hvlad
09da9c995e Update documentation 2018-09-25 00:25:39 +03:00
hvlad
795809896e Update description of RDB$GET_TRANSACTION_CN 2018-09-23 19:29:35 +03:00
hvlad
57d768f062 Fixed typos, thanks to Adriano 2018-09-23 17:20:02 +03:00
hvlad
bdd398dbc4 Fixed mistake, thanks to Mark 2018-09-23 16:30:58 +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
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
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
hvlad
e688ced75a Merge branch 'ExternalConnectionsPool' 2018-06-18 18:22:50 +03:00
hvlad
a810646187 Update the documentation. 2018-05-28 15:06:40 +03:00
hvlad
d681f5288f Reset external connection before put it into pool.
Update the documentation.
2018-05-27 12:24:47 +03:00
hvlad
2930edb9c0
Merge branch 'master' into ExternalConnectionsPool 2018-05-25 13:42:38 +03:00
hvlad
fe68255f62 According to Adriano's suggestions 2018-05-23 20:42:22 +03:00
AlexPeshkoff
5b1c3a1c20 Doc enhancement 2018-05-21 14:38:53 +03:00
hvlad
da10e5045e Introduced new system privilege MODIFY_EXT_CONN_POOL to manage pool properties.
Update the documentation.
2018-05-20 23:44:12 +03:00
hvlad
721edeeb5b Update the documentation. 2018-05-18 19:21:46 +03:00
Mark Rotteveel
d22a07090c Update keywords for FB4 and check against SQL:2016 (#154) 2018-04-02 20:18:20 +03:00
hvlad
28b5fa8a0f Update the documentation. 2018-04-02 12:52:34 +03:00
Mark Rotteveel
4566623ec9 CORE-5710 make precision optional for DECFLOAT (#150)
* CORE-5710 make precision optional for DECFLOAT

* Make DECFLOAT a reserved word

* Add DECFLOAT to keyword_or_column
2018-03-26 17:31:11 +03:00
hvlad
f162f2336e Initial implementation of external connections pool 2018-02-06 12:52:00 +02:00
AlexPeshkoff
b3f157fc21 Fixed docs after CORE-5700 2018-02-05 19:47:46 +03:00
Adriano dos Santos Fernandes
f141247dac Misc. 2017-11-05 22:22:00 -02:00
Adriano dos Santos Fernandes
a2556be641 Feature CORE-5620 - Builtin functions FIRST_DAY and LAST_DAY. 2017-11-01 15:30:54 +00:00
e5f712c33c Small docs addition 2017-10-17 14:14:53 +03:00
6198bc8ee1 High precision datatype support - Numeric(34,x) (#108)
* Raise underflow when close to 0 decfloat value casted to double
* High precision NUMERIC datatype based on DECFLOAT
* Fixed bulk insert mode in isql for decfloat values
* Enforce correct decQuad format after arithmetic operations
* Minimum docs for high precision NUMERIC/DECIMAL

* Some fixes of code suggested by Adriano:
- Use "const" keyword for Decimal128 constants declared internally
- Remove unneeded buffer initialization
- Remove unused function makeDecimalFixed()
- Follow firebird naming conventions to make code better readable and avoid possible conflicts with various .h files
- Added forgotten scale for DecimalFixed
2017-10-03 17:06:08 +03:00
Adriano dos Santos Fernandes
15be92d1b1 Example for window frames. 2017-08-12 22:56:33 -03:00
Adriano dos Santos Fernandes
3a1a9b9d48 Support for different hashes algorithms in HASH system function. 2017-07-24 13:38:28 +00:00
Adriano dos Santos Fernandes
4be766b8c8 Improvement CORE-5380 - Allow subroutines to call others subroutines and themself recursively. 2017-07-11 13:03:04 +00:00
d0c291144d Fixed documentation - thanks to Mark Rotteveel 2017-06-17 18:27:14 +03:00
5302ee1fdd Fixed use of very long DECFLOAT literals 2017-05-03 19:59:26 +03:00
Adriano dos Santos Fernandes
bf284274f4 Misc. 2017-05-02 23:07:08 -03:00
f995ed4408 Merges changes from master 2017-04-02 19:12:18 +03:00
a1425f7383 Brief description of DECFLOAT datatype 2017-03-30 21:05:30 +03:00
Adriano dos Santos Fernandes
3ca6fc140d Feature CORE-5463 - Support GENERATED ALWAYS identity columns and OVERRIDE clause.
I didn't verified why the error messages are being truncated. It seems idiotic if
the engine, library or ISQL does not accept these not-so-detailed messages.
2017-02-24 23:03:04 -03:00
bae769071e Fix build and forgotten doc (#75) 2017-01-17 15:46:14 +03:00
7b9b408658 Implementation of CORE-5064 (#73)
* Implementation of CORE-5064

* Use constants instead of magic numbers
2017-01-11 19:13:10 +03:00
Adriano dos Santos Fernandes
efc155f4b3 Allow to set more than one ALTER identity option in the same command - CORE-5430. 2016-12-30 13:55:34 -02:00
Adriano dos Santos Fernandes
127dddfe74 Improvement CORE-5431 - Support for DROP IDENTITY clause. 2016-12-28 12:57:47 -02:00
Adriano dos Santos Fernandes
278c993915 Improvement CORE-5430 - Support for INCREMENT option in identity columns. 2016-12-27 14:57:46 -02:00
Dmitry Yemanov
cd8b6e0a41 Reworked syntax for new error context vars, based on feedback from the other devs. 2016-12-02 10:18:47 +03:00
Adriano dos Santos Fernandes
d41c488aca Added a note to DATEADD. 2016-11-04 12:23:13 -02:00
Roman Simakov
6bde5f9945 Adjust sql security doc 2016-10-26 10:31:39 +03:00
Adriano dos Santos Fernandes
19788ff96d Misc. 2016-10-03 22:33:31 -03:00
Roman Simakov
052c97b662 Fixes for DB level triggers 2016-10-03 17:55:40 +03:00
Roman Simakov
8423748c2b Correct description 2016-09-28 18:06:17 +03:00
Roman Simakov
9aab6ed8cc SQL SECURITY Feature (#42)
* Added SQL SECURITY clause to various DDL statements
2016-09-28 17:24:04 +03:00
Adriano dos Santos Fernandes
a9378178fd Feature CORE-5346 - Window Function: named window. 2016-09-23 13:43:10 -03:00
Adriano dos Santos Fernandes
112efb5a29 Misc. 2016-09-06 15:17:52 -03:00
Dmitry Yemanov
ebd0d3c813 More context variables for error handlers, see CORE-1132 and CORE-2040. (#46)
* Implement some parts of CORE-1132 and CORE-2040.

* Change per Adriano's suggestion.
2016-09-06 21:12:03 +03:00
Adriano dos Santos Fernandes
f80d135842 Documentation for CORE-3647 - Window Function: frame (rows / range) clause. 2016-09-06 13:07:19 -03:00
Adriano dos Santos Fernandes
41d24deb26 Feature CORE-3647 - Window Function: frame (rows / range) clause. Readme to be done.
Also updated README.keywords of others features.
2016-09-02 15:20:01 -03:00
Adriano dos Santos Fernandes
935eb9aae3 Convert Window Functions README to markdown. 2016-09-01 13:28:01 -03:00
6e8508730e Fixed doc - thanks to Helen 2016-08-17 13:13:38 +03:00
Adriano dos Santos Fernandes
01c131b6f7 Improvements to NTILE after Pavel Zotov comments in CORE-3618. 2016-07-31 13:41:40 -03:00
Adriano dos Santos Fernandes
26895605f4 Merge branch 'new_window_functions' of git://github.com/nakagami/firebird into new-window-functions 2016-06-29 12:26:45 -03:00
63b6708e7f Misc 2016-06-01 12:00:48 +03:00
7ad99b795e Added support for system privileges 2016-05-31 20:07:08 +03:00