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

259 Commits

Author SHA1 Message Date
AlexPeshkoff
684e17d0e4 Fixed CORE-6248: A number of errors when database name is longer than 255 symbols 2020-03-04 19:03:15 +03:00
Adriano dos Santos Fernandes
b2b5f9a87c Improvement CORE-6239 - Procedures and EXECUTE BLOCK without RETURNS should not be allowed to use SUSPEND. 2020-02-04 15:42:02 +00:00
Roman Simakov
43574d1588 Removed TDBB_trusted_ddl flag which switched off all SCL_checks
globally.
Also removed SCL_checks from VIO_store, VIO_modify, VIO_erase which were
switched off by TDBB_trudted_ddl after checkPermission in DdlNode.
Other ways to run VIO_xxx are prohibited and users cannot modify system
tables directly.
Now error includes an object name when user does not have the privilege CREATE for it.
2020-01-10 18:01:09 +03:00
Adriano dos Santos Fernandes
15e42bd939 Postfix for CORE-3380. 2019-12-19 12:54:25 -03:00
AlexPeshkoff
b241d04162 Fixed CORE-6141: fbsvcmgr action_repair rpr_list_limbo_trans does not show list of transactions in LIMBO state 2019-12-10 19:41:54 +03:00
AlexPeshkoff
938bbee174 Added check for correctness of data coercion requested in SET BIND 2019-12-06 18:35:43 +03:00
AlexPeshkoff
66bdb2c9c6 Fixed errors displayed in case of error in DPB bindings 2019-12-06 18:35:43 +03:00
AlexPeshkoff
d43f7c458f Renamed one more code on Vlad's request 2019-04-17 13:00:23 +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
Adriano dos Santos Fernandes
89c09d1320 Improve some error names/constants. 2019-04-15 12:22:10 -03:00
AlexPeshkoff
456e7a03cf Implemented CORE-4726: REcreate user <user_name> password <user_pwd> 2019-04-13 21:21:56 +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
Roman Simakov
6359ed98bb Added error constants for messages. It's my previous mistake. 2019-03-21 18:16:56 +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
ee3a13d5f6 Improvement CORE-5658 : Execute statement with excess parameters 2019-03-06 12:05:46 +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
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
AlexPeshkoff
ef626be214 Add encryption-related messages to .msg file 2019-01-14 20:50:56 +03:00
Adriano dos Santos Fernandes
4f446d506e Message codes for time zone errors. 2018-12-28 15:52:39 -02: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
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
f97bb71781 Fixed CORE-5793: Error returned from DbCryptPlugin::setKey() is not shown 2018-08-29 18:52:52 +03:00
hvlad
1d7c907b6a CORE-5832 : Implement way to reset user session environment to its initial (default) state:
- ignore prepared 2PC transactions when check if session reset is allowed
- if there is current active user transaction - rollback it before session reset and start new transaction with same properties after reset
- add warning if current transaction changes any table before reset
2018-06-10 13:29:14 +03:00
hvlad
bbf8348817 Make ALTER SESSION RESET throws isc_ses_reset_err when active transaction(s) present in current connection.
New error code created: isc_ses_reset_err.
2018-06-01 14:17:26 +03:00
Alexander Peshkov
aa6cb5d05f
Initial implementation for CORE-5808 (#160)
* Implemented CORE-5808
2018-05-23 17:16:04 +03:00
AlexPeshkoff
a8473b0ee3 Frontported CORE-5735: Additional keyholder opens unauthorized connections to encrypted database 2018-02-01 18:10:09 +03:00
044edb7068 Changed a lot of isc_random messages to new gds codes 2017-11-10 20:13:05 +03:00
Adriano dos Santos Fernandes
a2556be641 Feature CORE-5620 - Builtin functions FIRST_DAY and LAST_DAY. 2017-11-01 15:30:54 +00:00
e8f65cb09d isc_random cleanup 2017-10-23 17:08:59 +03:00
Adriano dos Santos Fernandes
f924ded403 Improvement CORE-5606 - Add expression index name to exception message if computation failed. 2017-09-11 16:42:11 +00: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
d1795eca10 Use special error codes in decfloat diags instead isc_random 2017-05-23 17:05:41 +03:00
f995ed4408 Merges changes from master 2017-04-02 19:12:18 +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
hvlad
2c49e6fcf2 New feature CORE-5488 : Timeouts for running SQL statements and idle connections 2017-02-22 14:30:57 +02:00
028248b194 Merged changes from master branch 2017-02-16 17:56:23 +03:00
Adriano dos Santos Fernandes
c3639462f4 Feature CORE-5449 - Support DEFAULT context value in INSERT, UPDATE, MERGE and UPDATE OR INSERT statements. 2017-02-05 21:52:46 -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
5aede150e3 Decimal floating point numbers - first draft 2016-11-11 17:59:55 +03:00
Dmitry Yemanov
af37a963e9 Bugfix CORE-5382: Incorrect processing (truncation) of SQL statement with length 10MB+1. 2016-11-08 12:48:58 +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
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
fa9f723cce Minor diagnostics cleanup 2016-07-28 15:19:39 +03:00
88748bd890 Fixed CORE-5213 2016-06-03 15:52:46 +03:00
7ad99b795e Added support for system privileges 2016-05-31 20:07:08 +03:00
Dmitry Yemanov
fbd7bd86da Add missing index depth protection during index creatiion + new error
code/message.
2016-05-15 16:07:44 +03:00
hvlad
fa0bae17e2 Applied initial patch from red-soft 2016-03-22 10:35:55 +02:00