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

3175 Commits

Author SHA1 Message Date
Adriano dos Santos Fernandes
f8ed006057 Ressurect TriState, replace Nullable<bool> by TriState, remove Nullable. 2023-09-18 20:38:33 -03:00
Adriano dos Santos Fernandes
c170e4b089 Replace Nullable by std::optional. 2023-09-18 20:38:33 -03:00
Adriano dos Santos Fernandes
bf72356edb Started simplification of local declarations. 2023-09-18 20:27:14 -03:00
Adriano dos Santos Fernandes
52d9f84602 Cleanup: replace newNode overloads by perfect forwarding. 2023-09-18 20:27:14 -03:00
Adriano dos Santos Fernandes
8b0a0d7e86 Cleanup: replace const by constexpr. 2023-09-18 20:27:14 -03:00
Adriano dos Santos Fernandes
0f978d3ee0 Cleanup: structured binding declarations. 2023-09-18 20:27:14 -03:00
Adriano dos Santos Fernandes
37197b61a5 Simplification to subroutines DSQL parameters handling. 2023-09-18 20:27:14 -03:00
Adriano dos Santos Fernandes
5d47a0ba7c Replace throw() by noexcept. 2023-09-18 20:27:13 -03:00
Adriano dos Santos Fernandes
8c57b29f1c Refactor: SelectNode dsqlPass / genBlr. 2023-09-18 20:27:13 -03:00
Adriano dos Santos Fernandes
0f083fd086 Cleanup: initialization. 2023-09-18 20:27:13 -03:00
Adriano dos Santos Fernandes
4a752a3ec8 Misc. 2023-09-18 20:27:13 -03:00
Adriano dos Santos Fernandes
0278a9bfdb Refactor: SelectNode (DSQL) and blr_select (JRD) has no relation with each other. 2023-09-18 20:27:13 -03:00
Adriano dos Santos Fernandes
a71ec888e4
Improvement #7590 - Improve DECLARE VARIABLE to accept complete value expressions. (#7608) 2023-09-18 08:02:05 -03:00
Adriano dos Santos Fernandes
986e96fac8
SQL 2023 ANY_VALUE aggregate function. (#7617) 2023-09-18 07:51:41 -03:00
Adriano dos Santos Fernandes
fa9c6d4d3c
Fix #7715 - Alternative String Literals and multibyte (UTF8) alternatives. (#7742) 2023-09-18 07:36:12 -03:00
Adriano dos Santos Fernandes
2de7e723f5
Fix problem with client-only build requiring btyacc's generated files present (#7445)
This also fixes annoying problem of incorrect dependencies build of parser.y with parallel make.
2023-09-15 22:27:52 -03:00
Adriano dos Santos Fernandes
11e1fd1900 Fix warnings. 2023-09-14 23:12:58 -03:00
Dmitry Yemanov
f239ca161f
Surface internal optimization modes (all rows vs first rows) at the SQL and configuration levels (#7405)
* Surface internal optimization modes (all rows vs first rows) at the SQL and configuration levels.
* Add session-level control over the optimization strategy
* More informative name as suggested by Adriano
* Cost-based approach for the first-rows optimization mode
2023-09-13 21:21:12 +03:00
Adriano dos Santos Fernandes
5b14baa37b
Fix #7700 - SKIP LOCKED returns conflict error or wait when config ReadConsistency = 0 (#7701)
* Fix #7700 - SKIP LOCKED returns conflict error or wait when config ReadConsistency = 0.

* Rename RecordLock::DONT to NONE.
2023-09-12 21:50:06 -03:00
Dmitry Yemanov
5df6668c7b Allow computable but non-invariant lists to be used for index lookup 2023-09-07 20:55:52 +03:00
Dmitry Yemanov
bdce8b1341 Added missing (forgotten during refactoring) pre-sort before index scans. Fixed crash when all IN values are NULLs. Exclude duplicated IN values from the index scan. 2023-09-05 23:14:57 +03:00
Dmitry Yemanov
0493422c9f
Better processing and optimization if IN <list> predicates (#7707)
* WIP

* Original (circa 2022) implementation of the IN LIST optimization, with some post-fixes and minor adjustments

* Make it possible to optimize IN <list> for middle segments in compund indices

* Avoid modifying the retrieval structure at runtime, it may be shared among concurrent requests

* Simplify the code a little. Better cost calculation. Support both root-based and sibling-based list scans inside the same plan node.

* Removed the unneeded const casts and other changed as suggested by Adriano
2023-09-04 09:13:10 +03:00
AlexPeshkoff
c51f969eb4 Fix for #7729: "SET BIND OF TS WITH TZ TO VARCHAR(128)" uses the date format of dialect 1 2023-08-29 19:19:31 +03:00
Vlad Khorsun
a5131e63ee Fixed bug #7713
stability of implicit cursor could be broken, if cursor's select expression is based
on view with sub-query in select list, or
on table with sub-query in computed field.
2023-08-25 10:51:12 +03:00
Adriano dos Santos Fernandes
670d3513ca Improvement #7688 - Profiler should not miss query's top-level access paths nodes.
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-29 23:51:15 -03:00
Adriano dos Santos Fernandes
29b1d829b4 Rename methods related to cursor/recsrc ids, removing "profile" from them. 2023-07-26 08:02:11 -03:00
Adriano dos Santos Fernandes
00ad2af2fa Fix #7670 - Cursor name can duplicate parameter and variable names in procedures and functions.
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-08 14:39:47 -03:00
Adriano dos Santos Fernandes
844631b0ee Fix #7638 - OVERRIDING USER VALUE should be allowed for GENERATED ALWAYS AS IDENTITY.
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-06-27 22:59:42 -03:00
Dmitry Yemanov
421a73ae4b Fixed #7651: Unable to find savepoint in insert with nested query and returning clause. Fixed also regression for #5613 regarding UPDATE OR INSERT.
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-06-27 10:12:43 +03:00
Adriano dos Santos Fernandes
30b7852c76 Fix #7604 - PSQL functions do not convert the output BLOB to the character set defined at creation. 2023-05-30 07:49:04 -03:00
Vlad Khorsun
3852326ed5 Fixed bug #7598 : DDL statements hang when the compiled statements cache is enabled
Some checks failed
continuous-integration/drone/push Build is failing
2023-05-23 16:16:05 +03:00
Adriano dos Santos Fernandes
89b667bf1e Revert "Fix #7592 - RPAD works incorectly in a connection with the charset NONE."
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit 6e631a869d.
2023-05-21 21:01:23 -03:00
Adriano dos Santos Fernandes
6e631a869d Fix #7592 - RPAD works incorectly in a connection with the charset NONE.
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-20 15:39:59 -03:00
Adriano dos Santos Fernandes
8e039e8b8a Fix #7574 - Derived table syntax allows dangling AS.
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-16 07:54:47 -03:00
Adriano dos Santos Fernandes
639565f915
Fix #7569 - Multi-level order by and offset/fetch ignored on parenthesized query expressions. (#7571)
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-09 20:59:37 -03:00
Mark Rotteveel
85bbdf3301 #7576 Allow nested parenthesized joined table
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-09 16:22:14 +02:00
Adriano dos Santos Fernandes
fec506f4de
Feature #5959 - Add support for QUARTER to EXTRACT, FIRST_DAY and LAST_DAY [CORE5693] (#7564)
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-06 13:16:03 -03:00
Adriano dos Santos Fernandes
e05d8f7d15 Fix #7553 - Firebird 5 profiler error with subselects.
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-04-26 20:03:14 -03:00
Adriano dos Santos Fernandes
bfe818e220 Fix #7548 - SET BIND OF TIMESTAMP WITH TIME ZONE TO CHAR is not working with UTF8 connection charset. (#7549) 2023-04-17 21:05:47 -03:00
Vlad Khorsun
23f3cca52e Fixed bug #7501 : Precision of standalone unit may differ from packaged one in SQL dialect 1 2023-03-10 22:13:18 +02:00
Dmitry Yemanov
841d1df632 Revert back to separate methods, this fixes #7474 (Incorrect condition evaluation) 2023-03-01 15:55:35 +03:00
Dmitry Yemanov
24d1d61da0 Postfix for #7446: never attempt to delete savepoints belonging to a different transaction 2023-02-01 11:21:47 +03:00
Adriano dos Santos Fernandes
4c5decae05 Fix #7464 - Crash on repeating update. 2023-01-31 07:25:03 -03:00
Adriano dos Santos Fernandes
88d89bb918 Track names of FOR ... AS CURSOR <name>. 2023-01-10 20:57:51 -03:00
Dmitry Yemanov
1c2470c4cc Adjustments as per Adriano's comments 2023-01-04 12:08:11 +03:00
Dmitry Yemanov
36d011f731 Prettier plan output: distinguish between main queries and sub-queries, show cursor names/options, report line numbers 2023-01-02 13:40:29 +03:00
Dmitry Yemanov
58740dcbca Reworked my optimizer fix to address the known regressions. 2022-12-31 21:12:25 +03:00
Dmitry Yemanov
afcc50a833 Revert "Attempt to fix the recently discovered optimizer regression with derived expressions"
This reverts commit c33c601d14.
2022-12-31 20:23:46 +03:00
Dmitry Yemanov
f0382fad9d Commit Vlad's patch (with minor adjustments) for #7385: Broken lock of statements cache during multithreaded index activation 2022-12-20 19:47:35 +03:00
Dmitry Yemanov
0ec40ccf90
Merge pull request #7390 from FirebirdSQL/view-invariants
Fix invariants optimization involving views (#7388)
2022-12-16 20:28:38 +03:00
Adriano dos Santos Fernandes
979c03be35 Fixed #7391 - AV when compiling stored procedure. 2022-11-25 08:47:24 -03:00
Dmitry Yemanov
386b7e667e This should fix invariants optimization involving views. See #7388 as a reference. 2022-11-16 17:02:16 +03:00
Adriano dos Santos Fernandes
3d7d59410c Fix #7385 - Broken lock of statements cache during multithreaded index activation. 2022-11-12 14:30:40 -03:00
Dmitry Yemanov
c33c601d14 Attempt to fix the recently discovered optimizer regression with derived expressions 2022-11-05 12:57:49 +03:00
Adriano dos Santos Fernandes
5cc8a8f7fd
SKIP LOCKED clause for SELECT WITH LOCK, UPDATE and DELETE (#7350)
* SKIP LOCKED clause for SELECT WITH LOCK, UPDATE and DELETE.

* Misc.

* Change as Dmitry suggested and fix Windows build.

* Change order of LOCK to between SKIP and FIRST.

* Avoid refetch with READ COMMITTED transaction as suggested by Dmitry.

* Revert changes to TRA_wait and use tra_probe in vio/prepare_update
when skipping locked.

* Add to CHANGELOG.
2022-10-28 07:09:01 -03:00
Dmitry Yemanov
af5e524799 Merge remote-tracking branch 'origin/master' into partial-idx 2022-10-18 21:16:29 +03:00
Dmitry Yemanov
8938222964 Implement #6992: Transform OUTER joins into INNER ones if the WHERE condition violates the outer join rules 2022-10-16 11:48:12 +03:00
Dmitry Yemanov
4039167924 Merge branch 'master' into partial-idx 2022-10-10 20:25:15 +03:00
Dmitry Yemanov
e16cd0ca4c Fixed regression found during QA 2022-09-26 20:15:12 +03:00
Dmitry Yemanov
26a149c55a Fixed #3812: Query with SP doesn't accept explicit plan 2022-09-25 10:49:21 +03:00
Adriano dos Santos Fernandes
1f7dcab896 Postfix for #7309 - Firebird 5.0 server does not release memory after queries. 2022-09-22 21:58:57 -03:00
Adriano dos Santos Fernandes
5c55216f5d Fix #5749 - Token unknown error on formfeed in query [CORE5479]. 2022-09-21 21:43:28 -03:00
Adriano dos Santos Fernandes
683f7abdbe Fix #7309 - Firebird 5.0 server does not release memory after INSERT query. 2022-09-21 21:14:27 -03:00
Dmitry Yemanov
6dad1d32e5 This should fix #7288: Server crashes when working with DSQL savepoints 2022-09-04 11:32:18 +03:00
Dmitry Yemanov
7ff8bd7ca0 Basic optimizer support for partial indices 2022-08-12 15:59:27 +03:00
Dmitry Yemanov
02efe138cd Partial indices: DDL, ODS, dependencies, metadata 2022-08-12 15:52:02 +03:00
Adriano dos Santos Fernandes
581795ed78 Merge branch 'work/profiler-plugin' into work/profiler-plugin-merge 2022-08-10 22:26:38 -03:00
Adriano dos Santos Fernandes
7e75f0afcb Postfix for #7227 - problem with test for #6785. 2022-07-11 15:06:40 -03:00
Adriano dos Santos Fernandes
13ef8e7c29 Postfix for #7227 related to views using selectable procedures. 2022-07-08 21:49:53 -03:00
Adriano dos Santos Fernandes
9949343671 Fix #7220 - TYPE OF COLUMN dependency not tracked in package header and external routines. 2022-07-07 08:35:46 -03:00
Adriano dos Santos Fernandes
5369bd989b Postfix for #7227 - Dependencies of subroutines are not preserved after backup restore. 2022-07-05 22:45:00 -03:00
Adriano dos Santos Fernandes
391e635495 Fix #7227 - Dependencies of subroutines are not preserved after backup restore. 2022-07-03 22:27:02 -03:00
AlexPeshkoff
c3b172d4e2 Implemented #7046: Make ability to add comment to mapping ('COMMENT ON MAPPING ... IS ...') 2022-07-01 18:25:42 +03:00
Vlad Khorsun
19d4e2f420 Improvement #7208: Trace: provide performance statistics for DDL statements.
Also, enables tracing of user SET TRANSACTION, COMMIT, ROLLBACK statements and hides internal SQL statements run by the engine itself.
2022-06-27 18:59:45 +03:00
Vlad Khorsun
f121cd4a6b Improvement #6730 : Trace: provide ability to see STATEMENT RESTART events (or their count) [CORE6500].
Implemented new trace event: EXECUTE_STATEMENT_RESTART.
2022-06-27 18:59:33 +03:00
Adriano dos Santos Fernandes
c56f6e03c6 Fix #6807 - Regression in FB 4.x : "Unexpected end of command" with incorrect line/column info. 2022-06-25 22:12:33 -03:00
Adriano dos Santos Fernandes
fb9f5c6dcc Improve precision of executed statements. 2022-06-21 22:24:07 -03:00
Vlad Khorsun
a5d716b59a New built-in function BLOB_APPEND 2022-06-21 17:09:30 +03:00
Vlad Khorsun
7227b9af2d This makes concurrent bulk inserts to not fight for the same data page.
This is especially critical for CS performance.
2022-06-07 11:56:32 +03:00
Adriano dos Santos Fernandes
a94baa5100 Fix #7183 - Regression when derived table has column evaluated as result of subquery with IN(), ANY() or ALL() predicate:
"invalid BLR at offset ... / context already in use"
2022-05-20 11:08:51 -03:00
Adriano dos Santos Fernandes
c653787881 Put debug option DSQL_KEEP_BLR into statement cache's key. 2022-05-05 22:34:02 -03:00
Adriano dos Santos Fernandes
00a0992e95 Postfix for #7176. 2022-05-05 08:17:48 -03:00
Adriano dos Santos Fernandes
a8f26b3e3d Fix #7176 - Incorrect error "Invalid token. Malformed string." with union + blob + non utf8 varchar. 2022-05-04 22:09:02 -03:00
Dmitry Yemanov
4c8f31fc73 Merge remote-tracking branch 'origin/master' into cursor-info 2022-04-22 19:29:01 +03:00
Adriano dos Santos Fernandes
7290d40d81 Postfix for #7168 - use same logic of errors/warnings of functions in procedures. 2022-04-12 09:34:51 -03:00
Adriano dos Santos Fernandes
7096f67a31 Fix #7168 - Ignore missing UDR libraries during restore. 2022-04-11 22:51:04 -03:00
Adriano dos Santos Fernandes
988e7c2025 Fix #7124 - Inconsistent RDB$USER_PRIVILEGES after dropping identity. 2022-04-11 08:21:23 -03:00
Dmitry Yemanov
d2adb6e3d2 This should fix crashes surfaced by my yesterday's commit 2022-04-03 10:13:02 +03:00
Adriano dos Santos Fernandes
6214b12028 Fix issue reported by Pavel Zotov:
recreate table test (id int primary key)!
commit!

execute block as
begin
  execute statement 'drop table test';
  in autonomous transaction do
    execute statement ( 'insert into test values ( ? ) ') (1);
end!

commit!

Output on 5.0.0.426 (built: 18.03.2022):
========
========
(no errors, expected)

Output on 5.0.0.435 (built: 19.03.2022):
========
Statement failed, SQLSTATE = 42000
unsuccessful metadata update
-object TABLE "TEST" is in use
========
2022-03-24 08:55:07 -03:00
Adriano dos Santos Fernandes
4c9fffd9b9 Compiled statement cache. 2022-03-18 08:17:35 -03:00
Adriano dos Santos Fernandes
b9c30aa9fa Make DeclareLocalTableNode::execute truncate the table if it already had data from a previous execution. 2022-03-04 14:54:09 -03:00
Aleksei Mochalov
b1c32fa1cf Fix #7129 alter package SQL SECURITY option reset 2022-02-16 15:13:43 +03:00
Adriano dos Santos Fernandes
98f678d4ee Rename class jrd_req to Request. 2022-02-13 10:51:30 -03:00
Roman Simakov
b4be5b9ae2
Make DDL object type constants stable and extendable (#7125)
Add shift to DDL object type while restoring backup of prior version.
Rework DDL access checks. Remove unneeded constants, duplicating code.
Rename some functions to suit their purpose.
Provide a way to extent object type constants in future not changing
existing ones.
2022-02-10 12:27:43 +03:00
Adriano dos Santos Fernandes
7ff8855317 Avoid prefix Jrd in Statement class and Statement/jrd_req accessors/variables.
Change DSQL methods accordingly prefixing things with Dsql to avoid things as
request->getRequest() and statement->getStatement().
2022-02-09 15:47:58 -03:00
Adriano dos Santos Fernandes
68783f0971 Rename src/jrd/JrdStatement.* files to Statement.* 2022-02-09 15:47:58 -03:00
Dmitry Yemanov
19f2bfdd01 Refactored the optimizer. Better debug logging. 2022-02-09 10:20:16 +03:00
Adriano dos Santos Fernandes
de6ea9aa6f Misc. 2022-02-08 08:36:48 -03:00
Adriano dos Santos Fernandes
391e7ef4fc Refactor statement and request parts so multiple DSQL requests could be created from a single compiled statement.
Pave the ground for compiled statement cache.
2022-02-07 15:52:12 -03:00
Adriano dos Santos Fernandes
1a072f43d8
Add table MON$COMPILED_STATEMENTS and columns (#7050)
Add table MON$COMPILED_STATEMENTS and columns MON$STATEMENTS.MON$COMPILED_STATEMENT_ID and MON$CALL_STACK.MON$COMPILED_STATEMENT_ID.
2022-02-06 21:41:11 -03:00
Adriano dos Santos Fernandes
3c22c23874 Improvement #4769 - Allow sub-routines to access variables/parameters
defined at the outer/parent level [CORE4449].

Remove blr_parameter3.

Comment unused blr_run_count.
2022-01-30 12:15:03 -03:00
Dmitry Yemanov
23fa6d479a Fix the remaining part of #4085: RDB information stored inconsistently after a CREATE INDEX 2022-01-28 11:54:21 +03:00
Adriano dos Santos Fernandes
066785bcae Mark nodes and stream classes as final as possible. 2022-01-06 10:01:48 -03:00
Adriano dos Santos Fernandes
54924bc8ce Improvement #7092 - Improve performance of CURRENT_TIME. 2022-01-04 07:11:37 -03:00
Adriano dos Santos Fernandes
3d77ecc5db Fix #7090 - Performance degradation with CURRENT_DATE, LOCALTIME and LOCALTIMESTAMP. 2022-01-04 07:10:53 -03:00
Dmitry Yemanov
3a0078f2c3 Avoid replicating internal DDL statements (just in case they would exist) 2021-12-31 22:52:55 +03:00
Adriano dos Santos Fernandes
80e7651261 Fix warnings. 2021-12-24 11:57:57 -03:00
Adriano dos Santos Fernandes
00218503d6 Revert "Fix warnings."
This reverts commit 850e21a34c.
2021-12-24 11:55:23 -03:00
Adriano dos Santos Fernandes
850e21a34c Fix warnings. 2021-12-24 11:29:37 -03:00
Dmitry Yemanov
02c30525ca Cleanup the remainders of the BLR-backed savepoint operations. 2021-12-24 09:37:44 +03:00
Adriano dos Santos Fernandes
2f503f2e2d Profiler. 2021-12-23 15:08:04 -03:00
Adriano dos Santos Fernandes
7fc9ee6f86 Fix #7077 - EXECUTE BLOCK (without RETURNS) do not work with batches. 2021-12-23 11:14:45 -03:00
Dmitry Yemanov
8fbf0be848 Make it possible to prefetch the cursor before the first user fetch request appears 2021-12-21 13:06:07 +03:00
Dmitry Yemanov
94e1b8b7a3 Initial implementation of ResultSet::getInfo() 2021-12-21 13:06:06 +03:00
Adriano dos Santos Fernandes
523f843359 Fix #7077 - EXECUTE BLOCK (without RETURNS) do not work with batches. 2021-12-17 16:49:46 -03:00
Dmitry Yemanov
7fc551bbb3
Make savepoint statements pure DSQL, without being backed by BLR (#7049)
* Refactor user savepoints to skip the BLR layer and also avoid the automatic savepoint frame.

* This should restore tracing of savepoint statements
2021-12-14 14:02:40 +03:00
Adriano dos Santos Fernandes
ff255d3e7e Fix #7064 - Linear regression functions aren't implemented correctly. 2021-12-10 17:29:02 -03:00
Dmitry Yemanov
fd6bf8d404 Fixed #7056 (Fetching from a scrollable cursor may overwrite user-specified buffer and corrupt memory) and #7057 (Client-side positioned updates work wrongly with scrollable cursors) with a single shot 2021-12-01 11:44:55 +03:00
Dmitry Yemanov
067c8040b2 Fixed missing BOF flag, better boundary checks, code unification 2021-11-25 20:41:49 +03:00
Dmitry Yemanov
5ca78a00f9 Avoid using rpb in places where only record is needed, this also fixes a regression after #6995 2021-11-25 10:42:30 +03:00
Adriano dos Santos Fernandes
3a452630b6 Add table MON$COMPILED_STATEMENTS and columns MON$STATEMENTS.MON$COMPILED_STATEMENT_ID and MON$CALL_STACK.MON$COMPILED_STATEMENT_ID. 2021-11-24 15:18:39 -03:00
Adriano dos Santos Fernandes
3e488148c2 Fix #7045 - International characters in table or alias names causes queries of MON$STATEMENTS to fail. 2021-11-15 15:41:41 -03:00
AlexPeshkoff
43e72b3084 Fixed #7025: Results of negation must be the same for each datatype (smallint / int /bigint / int128) when argument is least possible value for this type 2021-11-05 20:23:08 +03:00
Adriano dos Santos Fernandes
e64c3aacad
Merge pull request #6991 from FirebirdSQL/work/external-pool
Introduce the external memory pool.
2021-10-30 20:08:24 -03:00
26f44cad08
Attempt to fix #7009 (#7010)
* Attempt to fix #7009

* Two missed calls

* Get back assert supressing flag to make debug build works

* Code changes as suggested

* Requested comment

* Changes as requested
2021-10-25 17:19:11 +03:00
Adriano dos Santos Fernandes
cac6a0decd Postfix for #6815 - fix request counters. 2021-10-22 16:01:23 -03:00
Adriano dos Santos Fernandes
4000686be0 Fix #7018 - Problems with windows frames. 2021-10-21 14:52:22 -03:00
Dmitry Yemanov
8b485a455c Constness 2021-10-13 07:25:10 +03:00
Dmitry Yemanov
ed0eb94ae9 Restore simpler signature for node methods 2021-10-12 20:17:17 +03:00
Adriano dos Santos Fernandes
5dfcaa4d32 Replace "new" by "FB_NEW" to use the default pool. 2021-10-05 11:24:08 -03:00
Adriano dos Santos Fernandes
f412800202 Cleanup: get rid of unused variables. 2021-09-21 09:47:30 -03:00
AlexPeshkoff
b448ed8f6d Enhanced control on the size of available batch buffers when restoring database ensures never getting isc_batch_too_big error, related to #6959 2021-09-15 17:20:23 +03:00
Adriano dos Santos Fernandes
ee088c22e3
Rework messages processing, simplifying the build and avoiding store generated files in git. (#6958) 2021-09-15 08:37:17 -03:00
AlexPeshkoff
65a0459123 Postfix for #6959 - restore failed due to zero buffer size in IBatch 2021-09-13 19:39:15 +03:00
AlexPeshkoff
33caf198dd Implemented #6959: IBatch::getInfo() 2021-09-10 17:18:48 +03:00
Dmitry Yemanov
dcee6aabb6 Let the newly created objects to be owner by the effective user rather than session user. This fixes #6934. 2021-09-03 15:53:12 +03:00
Dmitry Yemanov
6ae5e1026e Code simplification (and preparation for the next commits) 2021-09-03 15:53:12 +03:00
Adriano dos Santos Fernandes
ab89756410 Code simplification using std algorithms. 2021-09-02 10:31:23 -03:00
Adriano dos Santos Fernandes
854b809c77 Feature #6681 and fix for #6942.
- #6681 - Support for WHEN NOT MATCHED BY SOURCE for MERGE statement [CORE6448].
- #6942 - Incorrect singleton error with MERGE and RETURNING.
2021-09-02 10:00:15 -03:00
Adriano dos Santos Fernandes
0eb996e982 Postfix for #6815.
Failing test bugs.core_0501, noted by Vlad.
2021-08-27 11:55:12 -03:00
Adriano dos Santos Fernandes
8d1ac54c01 Postfix for #6815. 2021-08-27 11:00:11 -03:00
Adriano dos Santos Fernandes
b32f96f2a9 Feature #6815 - Support multiple rows for DML RETURNING. 2021-08-25 14:56:20 -03:00
AlexPeshkoff
84f78b4fad Implemented #6929: Add support of PKCS v.1.5 padding to RSA functions, needed for backward compatibility with old systems. 2021-08-24 19:58:20 +03:00
AlexPeshkoff
ef0480a728 Postfix for #6900: isc_batch_too_big has nothing to do with DSQL errors and SQL code -104 2021-08-13 16:24:04 +03:00
Adriano dos Santos Fernandes
1fbfeedb69 Add SET DEBUG OPTION DSQL_KEEP_BLR and remove Statement::PREPARE_KEEP_EXEC_PATH flag.
Make ISQL' SET EXEC_PATH_DISPLAY persistent between connections.
2021-07-30 16:40:01 -03:00
Adriano dos Santos Fernandes
bb8edfaae0 Avoid trailing spaces in each line (#6910). 2021-07-30 15:25:20 -03:00
Adriano dos Santos Fernandes
234ae81f32 Feature #6910 - Add way to retrieve statement BLR with Statement::getInfo and ISQL's SET EXEC_PATH_DISPLAY BLR. 2021-07-30 15:25:20 -03:00
Adriano dos Santos Fernandes
76caec4e15 Fix #6913 - Buffer overflows in getInfo APIs. 2021-07-30 15:22:01 -03:00
Adriano dos Santos Fernandes
1a8a895656 Revert "Feature #6910 - Add way to retrieve statement BLR with Statement::getInfo and ISQL's SET EXEC_PATH_DISPLAY BLR."
This reverts commit c93e8489fb.
2021-07-28 15:08:38 -03:00
Adriano dos Santos Fernandes
6804925215 Revert "Avoid trailing spaces in each line (#6910)."
This reverts commit f659b49ec8.
2021-07-28 15:08:24 -03:00