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

334 Commits

Author SHA1 Message Date
dimitr
22bd1345c5 Let's count user DSQL statements only. 2009-02-05 20:41:47 +00:00
hvlad
115602ff06 Trace services support 2009-02-01 22:10:12 +00:00
robocop
3689f15321 Style. 2009-01-20 08:33:59 +00:00
asfernandes
2e3ced29fc Fixed CORE-2258 - Internal error when select upper(<blob>) from union 2008-12-25 15:05:06 +00:00
dimitr
05299f653e Fixed CORE-1607: Correlated subquery is optimized badly if it depends on the union stream. 2008-12-21 06:29:47 +00:00
asfernandes
5311dd5a5e Misc 2008-12-20 19:57:43 +00:00
dimitr
2b87e94242 Use explicit iterators instead of the implicit (built-in) ones due to the thread-safety requirements.
This change affects GenericMap only, as it's used globally in a few places and we have a proven crash there.
I have a more complete solution (total cleanup of default accessors from BePlusTree and SparseBitmap) in my local tree (thanks to Dmitry Kovalenko), but it's incomplete (requires more changes inside the engine) and IMHO risky (~20 core modules are affected), so I'd like to defer finalization of this cleanup till v3.0.
All objects of these types seem being protected by dbb_sync, so they shouldn't cause us any problems currently.
2008-12-19 14:57:01 +00:00
robocop
ff99dc3d46 Style. 2008-12-18 10:47:25 +00:00
robocop
e4650d5027 Promote thread_data* as function argument. Only exception where both tdbb and dbb were left together as arguments is nbak.cpp's call to CCH_rollover_to_shadow to avoid any side effect in the changed code, but anyway, that function calls SDW_rollover_to_shadow that takes the dbb from the tdbb and not explicitly. 2008-12-14 09:28:25 +00:00
robocop
eb6ea18df4 Misc. 2008-12-01 09:21:31 +00:00
asfernandes
cf7ae27db5 Fixed CORE-1432 - Collation not propagated between record formats 2008-11-30 18:55:52 +00:00
asfernandes
97693bcd00 Fixed CORE-1842 - DEFAULT values are unnecessary evaluated. 2008-11-29 19:30:56 +00:00
asfernandes
4c9513dbd8 Misc 2008-11-23 21:54:56 +00:00
asfernandes
3e1f88a0e7 Fixed CORE-1137 - Server hangs with 100% CPU usage on NOT IN predicate 2008-11-23 16:29:10 +00:00
asfernandes
720a49c89e Fixed the others two problems of CORE-2176 2008-11-09 17:00:19 +00:00
alexpeshkoff
d8ea120ded AIX port - use FB_ prefix for alignment constants 2008-11-05 11:26:23 +00:00
dimitr
420ccf5496 Misc. 2008-11-01 13:01:24 +00:00
asfernandes
7a5b0121d8 Misc 2008-09-14 23:17:58 +00:00
asfernandes
dd83b27a13 Fixed problem detected by TCS caused by fix of CORE-1245 2008-09-14 02:58:09 +00:00
asfernandes
d1032aeb69 Fixed CORE-1245 - Incorrect column values with outer joins and views 2008-09-10 15:58:34 +00:00
asfernandes
78484df75c Fixed CORE-2075 - Parts of RDB$DB_KEY of views may be inverted when using outer joins 2008-09-10 14:11:20 +00:00
asfernandes
22c65f0153 Misc 2008-09-10 02:21:13 +00:00
robocop
26727ea6c8 Misc. 2008-09-09 09:05:49 +00:00
asfernandes
751e9666f6 Misc 2008-09-08 15:19:33 +00:00
asfernandes
50ab76f9a7 Fixed:
CORE-2067 - GROUP by and RDB$DB_KEY problems
CORE-2068 - Comparision with IN and subquery with RDB$DB_KEY returns wrong result
CORE-2069 - Incorrect VIEW expansion when RDB$DB_KEY is used in view body
2008-09-07 21:50:00 +00:00
asfernandes
b550749a47 Fixed CORE-1246 - Incorrect column values with outer joins and derived tables 2008-09-07 19:44:48 +00:00
asfernandes
d3a6c8b404 Correct inversion of node parameters verified by Claudio 2008-09-04 16:04:42 +00:00
asfernandes
9150e6f4f2 This should fix regressions related to fixes of:
CORE-501 - Optimization problem with COALESCE
CORE-1343 - Bug with a simple case and a subquery
CORE-2041 - update or insert with gen_id() with wrong generator value

And should fix this one (snapshot build bug):
CORE-2051 - don't work subquery in COALESCE
2008-09-01 13:18:02 +00:00
asfernandes
1899067660 Misc 2008-08-30 03:14:08 +00:00
alexpeshkoff
13a15d4bfe 1. Final fix for CORE-1964 - finished vararg cleanup in jrd.
2. Generic cleanup of error reporting functions all around engine.
2008-08-27 12:20:47 +00:00
dimitr
2bbcb548ff Fixed CORE-2053: Computed expressions may be optimized badly if used inside the RETURNING clause of the INSERT statement. 2008-08-25 06:23:20 +00:00
asfernandes
97a1b5bac5 Correction 2008-08-20 15:18:09 +00:00
asfernandes
b910161f82 Fixed CORE-501 - Optimization problem with COALESCE 2008-08-20 01:54:45 +00:00
asfernandes
a608f5eea6 Fixed CORE-2027 - Incorrect buffer size for ORDER BY expression with system fields 2008-08-01 15:26:13 +00:00
alexpeshkoff
a2e416210b Fixed CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid.
Also cleaned up use of gds__log() in a few places.
2008-06-26 09:47:59 +00:00
asfernandes
26a79e3c6e Misc 2008-06-09 01:34:33 +00:00
hvlad
5d9c430674 Implemented improvement CORE-1928 : Allow EXECUTE STATEMENT to inherit access privileges of caller stored procedure or trigger.
Allow to specify EXECUTE STATEMENToptional clauses in any (not fixed) order.
Use INTERNAL_PROVIDER for access to the current database by another user too.
2008-06-08 20:42:27 +00:00
robocop
b8ea332022 Misc. 2008-06-05 11:02:42 +00:00
robocop
c4b60d4198 Style. 2008-05-21 12:56:11 +00:00
asfernandes
d52dc96278 1) Move the new Node classes to appropriate files
2) Creation of StmtNode
3) Conversion of IN AUTONOMOUS TRANSACTION to InAutonomousTransactionNode (inherited from StmtNode) - it makes this feature almost self-contained

Please do a boot build or at least run blr_table.
2008-05-19 13:47:48 +00:00
asfernandes
4343cbfeba Do the same kind of cleanup in jrd/pass1 as done for "proc_flag" in dsql/pass1 - recursive passing the same parameters that is changed in specific situations makes difficult to understand the logic. 2008-05-18 01:02:35 +00:00
hvlad
85aed9d302 Make ViewContext::vcx_context_name able to store more than 31 chars as was discussed in fb-devel. Thanks to Claudio for the tips. 2008-05-11 21:27:21 +00:00
asfernandes
8b4a83f201 Misc 2008-05-11 03:00:46 +00:00
hvlad
5f8774827c Better and simpler fix for bug CORE-1884. 2008-05-06 12:15:09 +00:00
dimitr
86e2473565 Correction. 2008-05-06 08:58:51 +00:00
dimitr
0a9e8c8382 Implemented CORE-1751. The changes include:
1) Make memory counters aggregated.
2) Add attachment pool and allocate appropriate resources out of this pool.
3) Always release attachments explicitly (via destructor).
4) Always delete user requests prior to attachment deletion.
5) Introduce memory usage counters per every monitoring object.
6) Misc refactoring.
Some pieces are still incomplete (although everything basically works), but I'd like to get feedback and testing sooner rather than later.
2008-05-06 08:46:39 +00:00
hvlad
c3e8b5c75b Fixed bug CORE-1884 : Random AVs using stored procedures with expressions as default values of input parameters 2008-05-06 07:06:06 +00:00
robocop
83d3ddd6cb Replace custom code by helper class ThreadStatusGuard. 2008-04-26 10:29:52 +00:00
hvlad
fe3f8c184b New EXECUTE STATEMENT with support of external data source implementation 2008-04-09 20:18:47 +00:00
dimitr
7c78a004db Fixed the "no current record" bug for "delete from T". Thanks to Adriano. 2008-03-25 10:32:17 +00:00