Adriano dos Santos Fernandes
8b93b87913
Add noexcept to some constructors.
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
1d858667d8
Replace FB_NELEM macro by constexpr function.
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
GitHub Action
5ce04e6a1e
increment build number
2023-09-18 20:14:06 +00:00
Dmitry Yemanov
29ab3f058e
Update the generated Pascal interface
2023-09-18 16:54:42 +03:00
Dmitry Yemanov
7ed973b7aa
Ensure a correct format number for system tables in a newly created database. Some code unification. More paranoid assertions.
2023-09-18 16:54:05 +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
GitHub Action
4e1cc6f596
increment build number
2023-09-17 20:12:43 +00:00
Dmitry Yemanov
875f0a25a3
New release version in scripts
2023-09-17 18:29:37 +03:00
Dmitry Yemanov
3847e28a0b
New version number
2023-09-17 18:18:47 +03:00
GitHub Action
4f47587a72
increment build number
2023-09-16 20:12:14 +00: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
GitHub Action
999002268b
increment build number
2023-09-15 20:13:52 +00:00
Adriano dos Santos Fernandes
11e1fd1900
Fix warnings.
2023-09-14 23:12:58 -03:00
GitHub Action
58e4691f77
increment build number
2023-09-14 20:13:34 +00:00
Dmitry Yemanov
90d0e34adf
Prepare for RC1 release
2023-09-14 21:27:56 +03:00
Ilya Eremin
e9f399ea13
Merge pull request #7747 from red-soft-ru/fb_5_0_backout_gc_fix
...
Fix an issue where the garbage collection in indexes and blobs is not performed in VIO_backout
2023-09-14 10:40:54 +03:00
GitHub Action
562c19ee56
increment build number
2023-09-13 20:12:06 +00: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
Ilya Eremin
4974dd13f1
Fix an issue where the garbage collection in indexes and blobs is not performed in VIO_backout
...
The issue starts in VIO_record. There is a call record->reset(format) which clears the REC_gc_active flag by mistake. After that VIO_gc_record reuses the record which is already active.
2023-09-13 12:01:04 +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
GitHub Action
de99d190f2
increment build number
2023-09-12 20:14:17 +00:00
Dmitry Yemanov
adbbcc064f
Fixed crash when IN predicate is delivered into aggregates/unions
2023-09-12 20:33:49 +03:00
Vlad Khorsun
66f6030467
This should fix blockage reported by Ilya Eremin (@ilya071294) privately.
2023-09-12 18:57:33 +03:00
Dmitry Yemanov
daf72b15c6
__func__ is now not only C99 but also a C++11 feature, should be supported by every modern compiler
2023-09-12 11:09:59 +03:00
Dmitry Yemanov
784f7bd8a6
Avoid storing garbage in idx_selectivity
2023-09-12 08:32:50 +03:00
Dmitry Yemanov
022f092877
Reworked my yesterday's commit re. empty tables and indices
2023-09-12 08:32:50 +03:00
GitHub Action
252c5b2b2f
increment build number
2023-09-11 20:12:11 +00:00
Dmitry Yemanov
29b269b129
Better selectivity assumption for compound indices on empty tables
2023-09-11 20:19:25 +03:00
Dmitry Yemanov
b3c54800f3
Cost calculation adjustmnets for hash joins
2023-09-11 20:19:25 +03:00
GitHub Action
b31fc0a4d1
increment build number
2023-09-09 20:12:09 +00:00
GitHub Action
58db1331af
Misc.
2023-09-09 10:13:24 +00:00
GitHub Action
24bb850a55
increment build number
continuous-integration/drone/push Build is passing
2023-09-08 20:13:59 +00:00
AlexPeshkoff
569e05f8d8
Fixed compiling & running firebird under Valgrind control
2023-09-08 18:04:23 +03:00
GitHub Action
ac59a130bc
increment build number
continuous-integration/drone/push Build is passing
2023-09-07 20:13:44 +00:00
Dmitry Yemanov
5df6668c7b
Allow computable but non-invariant lists to be used for index lookup
2023-09-07 20:55:52 +03:00
AlexPeshkoff
3408f30109
Fixed most annoying bugs in pool<=>valgrind interaction - WIP
2023-09-07 19:40:31 +03:00
Dmitry Yemanov
341b87518f
Avoid tracing compilation of system triggers
2023-09-07 14:17:52 +03:00
Artyom Ivanov
989612b369
Fix wrong assert throw
...
It can be thrown by lastUsedPage(), when it trying to fetch incorrect page number of PIP
2023-09-07 12:05:10 +03:00
GitHub Action
df389019a3
increment build number
continuous-integration/drone/push Build is passing
2023-09-06 20:13:29 +00:00
Ilya Eremin
4560aad1a8
Merge pull request #7737 from red-soft-ru/5_0_blob_precedence_fixes
...
Fix cases where the precedence relationship between a record page and a blob page is not set
2023-09-06 16:21:28 +03:00
AlexPeshkoff
8e61e1111d
Fixed #7738 : Crash on multiple connections/disconnections
2023-09-06 13:40:28 +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
GitHub Action
0e3ddc3c45
increment build number
2023-09-05 20:13:56 +00:00
Dmitry Yemanov
da55f0ab14
Protection from double deallocation of queued buffers, thanks to Vlad. Usually this should not happen, but possible after error thrown during commit (while journal/replica flushing).
2023-09-05 18:35:05 +03:00
Dmitry Yemanov
90ef56ae16
Postfix for replication server in Linux CS
2023-09-05 18:07:46 +03:00
Ilya Eremin
ed3287c70e
Fix cases where the precedence relationship between a record page and a blob page is not set
...
1. While performing the intermediate garbage collection.
2. While modifying a blob field of a record.
2023-09-05 15:07:17 +03:00
AlexPeshkoff
cf6424565b
Fixed #7691 : 'with caller privileges' has no effect in triggers
2023-09-05 08:35:48 +03:00
Vlad Khorsun
11ffa71b4f
Merge pull request #7735 from FirebirdSQL/work/AttCacheBdb
...
Per-attachment cache of pointers to the often used page buffers.
2023-09-05 00:48:58 +03:00
GitHub Action
7b5ad00671
increment build number
continuous-integration/drone/push Build is passing
2023-09-04 20:12:37 +00:00
Dmitry Yemanov
00c2d10102
Ensure the DDL trigger requests are cached ( #7426 )
...
While this commit does not fix all problems with cached triggers, I see no good reason to defer it.
2023-09-04 09:31:07 +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
Vlad Khorsun
469715dbf9
Misc changes per @dyemanov requests
2023-09-02 12:29:08 +03:00
Vlad Khorsun
b2eb581b2f
Per-attachment cache of often used BDB's
2023-09-01 11:15:04 +03:00
GitHub Action
1973d01f39
increment build number
2023-08-31 20:13:52 +00:00
Dmitry Yemanov
b70067fe8d
This should fix #7727 : Index for integer column cannot be used when INT128/DECFLOAT value is being searched
2023-08-31 19:52:24 +03:00
GitHub Action
983025977a
increment build number
2023-08-30 20:13:38 +00:00
loongson
fcc471e420
Add LoongArch support
2023-08-30 11:09:19 +03:00
GitHub Action
54b1c5a698
increment build number
2023-08-29 20:14:27 +00:00
AlexPeshkoff
c60633166c
Fix for #7730 : Server ignores the size of VARCHAR when performing SET BIND ... TO VARCHAR(N)
2023-08-29 19:20:37 +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
AlexPeshkoff
886fe7219b
Fix for #7731 : Display length of timestamp with timezone is wrong in dialect 1
2023-08-29 19:18:08 +03:00
GitHub Action
81da322277
increment build number
2023-08-28 20:13:31 +00:00
AlexPeshkoff
f049b6fb7e
Fixed #7723 : Wrong error message on login if the user doesn't exist and WireCrypt is disabled
2023-08-28 17:11:01 +03:00
GitHub Action
84ebf4ab1c
increment build number
continuous-integration/drone/push Build is passing
2023-08-25 20:13:48 +00:00
AlexPeshkoff
75b2e10eee
Patch for GHSA-6fv8-8rwr-9692
2023-08-25 17:25:36 +03:00
Adriano dos Santos Fernandes
6428990818
Fix warnings.
2023-08-25 08:24:05 -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
GitHub Action
9f46d8359f
increment build number
continuous-integration/drone/push Build is passing
2023-08-24 20:13:57 +00:00
GitHub Action
9dbb5f1158
increment build number
continuous-integration/drone/push Build is passing
2023-08-23 20:12:16 +00:00
AlexPeshkoff
18258a9651
Fixed posix build to ensure regeneration of cloop-generated files after "make clean". Regenerated .pas file is also here.
2023-08-23 19:42:20 +03:00
AlexPeshkoff
5432699f28
Comment
2023-08-23 12:37:27 +03:00
GitHub Action
2b428a24c3
increment build number
continuous-integration/drone/push Build is passing
2023-08-17 20:13:24 +00:00
Dmitry Yemanov
fe96706c45
Misc adjustments re. hash joins (mostly cardinality/cost related)
2023-08-17 20:58:13 +03:00
Dmitry Yemanov
37762dcf5f
Warnings
2023-08-17 15:16:19 +03:00
Vlad Khorsun
a41b6109d4
Fixed bug #7710 : Expression index - more than one null value cause attempt to store duplicate value error - FB5.0 beta 2
2023-08-17 10:59:50 +03:00
GitHub Action
1560b52a9c
increment build number
continuous-integration/drone/push Build is passing
2023-08-15 20:13:50 +00:00
Dmitry Yemanov
e276c222aa
Add COMPILE trace events for procedures/functions/triggers ( #7466 )
...
* Add COMPILE trace events for procedures/functions/triggers
* Fixed missing elapsed time for COMPILE_TRIGGER events
2023-08-15 12:34:20 +03:00
GitHub Action
45c9bf12c1
increment build number
continuous-integration/drone/push Build is passing
2023-08-11 20:13:15 +00:00
Alexandr Zhdanov
167d28f188
Added sha3 support for the built-in function CRYPT_HASH()
...
Added support for sha3_224, sha3_256, sha3_384, sha3_512 for the built-in
CRYPT_HASH() function
2023-08-11 12:35:37 +03:00
GitHub Action
f7987ad071
increment build number
continuous-integration/drone/push Build is passing
2023-08-10 20:13:22 +00:00
AlexPeshkoff
93a8c44416
Generated files
2023-08-10 13:39:59 +03:00
GitHub Action
4c73f35ddf
increment build number
continuous-integration/drone/push Build is passing
2023-08-09 20:13:59 +00:00
AlexPeshkoff
c1e58febd4
Fixed #7703 : Requests leak in AutoCacheRequest
2023-08-09 19:38:37 +03:00
GitHub Action
137e997ad3
increment build number
continuous-integration/drone/push Build is passing
2023-08-08 20:13:42 +00:00
GitHub Action
feb96d5a0b
increment build number
continuous-integration/drone/push Build is passing
2023-08-07 20:13:27 +00:00
Ilya Eremin
ad4addd279
Merge pull request #7694 from red-soft-ru/fb_5_0_index_validation_fix
...
Fix false positives of "missing entries for record X" error during index validation when a deleted record version is committed and has a backversion
2023-08-07 10:55:05 +03:00
GitHub Action
24a4dd72e6
increment build number
continuous-integration/drone/push Build is passing
2023-08-04 20:12:52 +00:00
Adriano dos Santos Fernandes
86274ccca0
Fix regression in master #7698 - The legacy plan with window functions is broken.
2023-08-04 08:38:07 -03:00
Vlad Khorsun
f4c22d3dc8
Merge pull request #7693 from FirebirdSQL/work/7692
...
Improvement #7692 : Make trace config parser resolve symlinks in database file path in trace configuration
2023-08-04 11:52:18 +03:00
Adriano dos Santos Fernandes
f628e52bb5
Fix #7696 - select from external procedure validates output parameters even when fetch method returns false.
2023-08-03 22:19:23 -03:00
AlexPeshkoff
ab3d45b695
Do not take into an account value, returned by expandDatabaseName()
2023-08-03 14:31:57 +03:00
Ilya Eremin
e3d3d15921
Fix false positives of "missing entries for record X" error during index validation when a deleted record version is committed and has a backversion
...
The existence of an index entry is not required for such version chain because it is all garbage since a transaction is committed. To reproduce the false positive, the server should be stopped just after the chain is garbage-collected and an index page is written to disk.
2023-08-02 17:31:43 +03:00
Vlad Khorsun
bc0b679f43
Improvement #7692 : Make trace config parser resolve symlinks in database file path in trace configuration
2023-08-02 17:24:55 +03:00