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

268 Commits

Author SHA1 Message Date
Adriano dos Santos Fernandes
5ddf2bfca7
Cleanup obsolete and generated Fortran files. (#6819) 2021-05-25 16:24:35 -03:00
AlexPeshkoff
068af35ada Fixed #6797 2021-05-11 14:31:40 +03:00
AlexPeshkoff
3dadc08284 Fixed CORE-6518: Wrong message when connecting to tiny trash database file 2021-03-18 18:10:12 +03:00
Dmitry Yemanov
2e0957f08a Fixed CORE-6478. Added -replica switch to gbak. Support all replication features in the Services API. 2021-02-04 19:46:41 +03:00
Dmitry Yemanov
4a2ca76e2d Restore the ability to recreate the replica using nbackup 2020-12-30 14:12:21 +03:00
hvlad
752424d513 Addition for CORE-5832 : Implement way to reset user session environment to its initial (default) state
Database triggers ON DISCONNECT and ON CONNECT is fired during session reset.
New system variable RESETTING is introduced to detect session reset state.
More detailed description see in tracker.
2020-11-30 13:15:48 +02:00
Dmitry Yemanov
d485e21584 Dedicated primary error code for replication failures 2020-10-07 20:52:52 +03:00
AlexPeshkoff
38edacb65a Avoid using new bugchecks when it's not required 2020-09-04 14:19:54 +03:00
hvlad
9cf05fccde Fixed bug CORE-2274 : MERGE non-standard behaviour, accepts multiple matches 2020-06-02 14:17:09 +03:00
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