robocop
ac551e2b71
Cleanup.
2010-04-04 08:52:10 +00:00
asfernandes
e1ba33a2ae
Fix problem of the system transaction storing pointer to random or already deallocated attachment. Full build (or kind of) required.
2010-04-02 21:48:15 +00:00
robocop
7a4640366d
Misc.
2010-01-30 09:58:01 +00:00
robocop
0da76615ab
Fix misinterpretation of MET_get_dependencies's parameters done years ago with Alex' conversion to MetaName class.
2010-01-26 08:29:03 +00:00
asfernandes
9c1bab1793
Feature CORE-1385 Identity columns - in its basic form
2010-01-13 19:14:15 +00:00
asfernandes
32baf214bb
Always use the dialect 3 for system SQL queries
2010-01-03 18:23:22 +00:00
asfernandes
e8b3caa105
The easy fix to the dialect problem
2010-01-03 15:21:13 +00:00
asfernandes
7ff112a901
Some syntactic sugar
2010-01-03 00:19:14 +00:00
asfernandes
5c407c739c
Convert an uncached GDML query to equivalent SQL with PreparedStatement
2010-01-02 23:29:32 +00:00
asfernandes
0057047932
Misc
2009-12-30 00:50:39 +00:00
asfernandes
e8cc188227
Store the view context type when it doesn't came from backup and simplify the code. Still problems altering procedures used in views.
2009-12-28 15:31:09 +00:00
asfernandes
d8c99a9be2
1) Make procedures and functions member of the same hierarchy (Routine class)
...
2) Some completion for external functions
2009-12-27 22:05:22 +00:00
asfernandes
534b8c020e
Misc
2009-12-25 19:29:58 +00:00
dimitr
7f4bb8c418
Misc.
2009-12-25 07:26:49 +00:00
robocop
f3091483ca
Misc.
2009-12-25 04:41:10 +00:00
dimitr
6e1f8db753
Metadata cache support for PSQL functions.
2009-12-24 14:15:21 +00:00
dimitr
debe65bcfb
Support for PSQL functions (other JRD changes). Still work in progress.
2009-12-21 17:43:01 +00:00
asfernandes
1b1f90d06c
Work in progress on RDB$VIEW_RELATIONS
2009-12-17 15:07:02 +00:00
robocop
5cfc9dc78b
CORE-2787: Make rdb$system_flag not null.
...
Please do a full rebuild.
2009-12-03 12:52:10 +00:00
dimitr
f6512d4cac
Fixed bug in my recent commit.
2009-11-28 22:26:45 +00:00
dimitr
08e0e238c6
An attempt to fix CORE-2766: page 0 is of wrong type (expected 6, found 1).
...
Mutex is used just to wait on a event with allowed recursive execution.
2009-11-28 12:53:52 +00:00
robocop
d8a012014b
Comments.
2009-11-27 08:34:34 +00:00
robocop
6b58626584
Cleanup.
2009-11-27 06:57:17 +00:00
robocop
f955568fc9
The architect created ODS12 and saw it was good, then he said "thy shall be the only one among your race", dropped the older ones and sent the developers to the four corners of the cyberspace to convert the masses to ODS12.
2009-11-27 02:33:40 +00:00
robocop
804ad6048a
Restrict us to ODS11 and ODS12 until the dust settles down.
2009-11-24 11:42:56 +00:00
robocop
0f16326892
Comments.
2009-11-21 03:23:47 +00:00
asfernandes
13e1546a70
Misc
2009-11-21 00:10:16 +00:00
robocop
2d58a58ef2
If the functions' params can fit in 100 columns...
2009-11-20 09:22:29 +00:00
robocop
0411da9f59
Related to CORE-2759 (but doesn't fix it yet).
2009-11-20 04:53:15 +00:00
robocop
6dcb9c1d01
We align the parentheses with the code.
2009-11-19 09:52:30 +00:00
robocop
6b4f015458
Shortcut.
2009-11-19 09:31:38 +00:00
asfernandes
218f419b5c
Fixed related issues:
...
CORE-1518 - Adding a non-null restricted column to a populated table renders the table inconsistent
CORE-2696 - "alter table" command can add a field which has "not null" definition
CORE-1748 - Unrestorable backup
CORE-1355 - Zero display instead of NULL
2009-11-18 14:24:47 +00:00
robocop
9ce4040042
Replace the now obsolete dbb_minor_original by dbb_minor_version.
2009-11-18 12:02:00 +00:00
asfernandes
4b49453bb8
Correction
2009-11-12 00:44:40 +00:00
asfernandes
79caf4e326
Improve efficiency and error reporting of CORE-1180
2009-11-11 15:12:56 +00:00
asfernandes
0faabd1e6f
Fix logical error caused by concurrent branches development (CORE-1180)
2009-10-31 20:21:37 +00:00
asfernandes
4a3d198ade
Misc
2009-10-31 01:46:06 +00:00
robocop
07dc116ed2
Misc.
2009-10-30 10:50:59 +00:00
asfernandes
3057090c9a
Misc: replace array + conditional allocation by HalfStaticArray
2009-10-28 23:39:56 +00:00
asfernandes
530f0eed0f
Fix some original problems and others done in merges, thanks to Claudio
2009-10-26 14:48:21 +00:00
asfernandes
ed0e0daeb3
- External Engines implementation.
...
- Plugins API.
- Feature CORE-2700 - UDR (User Defined Routines) Engine - C++ API supporting functions, triggers and stored procedures.
- Feature CORE-2470 - Support for alternate format of strings literals.
- Feature CORE-2310 - DDL triggers.
- Feature CORE-2312 - PSQL Packages.
- Feature CORE-1209 - CONTINUE statement.
- Feature CORE-1180 - DDL syntax to change (not) nullable state of columns.
- Feature CORE-2090 - Support OVER () clause with current aggregate functions.
- Fixed CORE-2699 - Common table expression context could be used with parameters.
- Introduce ODS 12.0.
- Work in progress in type-safe parser.
- Refactor some DDL commands (procedures and triggers) from DYN to DdlNodes.
- Refactor virtual tables to use a class hierarchy instead of namespaces. This is basic thing, not based on the changes done in Vulcan. Window functions is based on this work.
- Refactor COMMENT ON and DROP FUNCTION from DYN to DdlNodes. COMMENT ON do not use GDML anymore, it uses DSQL with PreparedStatement class.
- Refactor EXECUTE BLOCK to StmtNodes.
- Refactor the IUDF to SysFunctions. That eliminates RDB$GET_CONTEXT and RDB$SET_CONTEXT from RDB$FUNCTIONS.
2009-10-21 00:42:38 +00:00
robocop
514fe7355f
Misc.
2009-09-30 06:09:05 +00:00
asfernandes
90dfb9a411
Misc
2009-09-30 01:10:11 +00:00
alexpeshkoff
b19dacee16
Ported fix for CORE-2634: Performance regression when restoring database with big metadata
2009-09-29 10:35:16 +00:00
alexpeshkoff
9629eafccd
Use per-thread circular strings buffers instead common and per-attachment combination
2009-09-01 09:20:24 +00:00
robocop
f86149e8ca
Misc.
2009-08-13 10:36:25 +00:00
asfernandes
4759973045
Fixed CORE-2576 - Server may crash parsing wrong or truncated BLR
...
Full rebuild required - CMP_compile2 prototype changed
2009-08-02 04:10:07 +00:00
robocop
de4be11750
Misc.
2009-07-13 10:00:43 +00:00
robocop
f10e1b72eb
Style.
2009-06-27 06:23:36 +00:00
robocop
f3fdc5b5c7
Give idx_id and associated values a consistent data type and treatment.
2009-06-21 06:04:18 +00:00
asfernandes
10328dff3b
Misc
2009-05-06 02:02:37 +00:00
hvlad
0725600e41
Fixed bug CORE-2448 : Not all dependencies is created at restore
2009-05-04 11:59:34 +00:00
alexpeshkoff
8c983fec26
Fixed alignment issues with on-stack vary strings
2009-04-29 14:00:32 +00:00
robocop
2d7cb94844
Unused params
...
Some BLR checks
2009-04-28 13:08:04 +00:00
asfernandes
f6f364da49
Trim trailling spaces
2009-04-04 16:39:31 +00:00
robocop
a730fbf074
Get rid of more typedefs.
2009-04-03 10:07:55 +00:00
hvlad
c448659575
Fixed bug CORE-2386 : ALTER VIEW could remove column used in stored procedure or trigger
2009-03-24 22:20:26 +00:00
roman-simakov
1a4949891b
Refactored NBackup subsystem.
...
1) Fixed CORE-1696 - "Deadlock in LM by using nbackup utility" with priority rating of lock requesting for LCK_backup_database and LCK_bdb.
2) A lot of stability fixes were made.
3) The key thing is using new GlobalRWLock for removing LCK_set_owner_handle function and speed up performance.
4) The code is still ready for using both in shared cache architecture and in claster architecture.
2009-03-17 07:39:55 +00:00
robocop
fab6a3a6cf
Get rid of superflous parentheses.
2009-02-28 11:57:40 +00:00
robocop
54356a146e
Delete unused vars.
2009-02-25 06:00:11 +00:00
alexpeshkoff
40e2f7f892
Fixed transactions support in user management commands
2009-02-19 12:59:32 +00:00
dimitr
1b3927b026
1) Globally named per-database shmem regions.
...
2) Slightly reworked monitoring internals.
3) Encapsulated the event manager, many internal changes there.
4) Various cleanup, etc.
2009-01-28 12:27:18 +00:00
robocop
77bd687168
Style.
2009-01-14 08:22:32 +00:00
dimitr
8b6661a477
Fixed the origin of CORE-2264.
2009-01-06 15:57:52 +00:00
dimitr
deb5454ef0
Restored the original (legacy) way of returning the successful status vector.
...
But added an assert to track an unexpected status vector contents early in debug builds.
Slightly refactored the error handling for events, partially synchronized the globals there.
Plus some basic const'ness, better tdbb scope, etc.
2009-01-06 15:32:01 +00:00
robocop
6406e45337
Shut up compiler warnings (unreferenced vars, uninitialized vars, compile-time conditional code, etc.)
2009-01-02 06:36:12 +00:00
asfernandes
f85c49544e
Fixed CORE-2255 - Exception 'string right truncation' when alter view with join
2008-12-23 13:34:18 +00:00
asfernandes
5311dd5a5e
Misc
2008-12-20 19:57:43 +00:00
robocop
9c9e4e9b0b
There's no need to check whether a pointer is null before applying delete or delete[].
2008-12-20 08:16:55 +00:00
robocop
ff99dc3d46
Style.
2008-12-18 10:47:25 +00:00
robocop
511c7eb7d8
Promote thread_data* as function argument.
2008-12-14 10:19:27 +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
hvlad
77aac31214
Fix for bug CORE-2114 : Fix for CORE-1838 was incomplete
2008-10-09 18:42:02 +00:00
robocop
62bf232c26
Trim name.
2008-08-31 06:32:34 +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
asfernandes
f82e29851f
Misc
2008-08-08 17:26:26 +00:00
asfernandes
6a5e1cc144
Fixed CORE-1894 - Circular dependencies between computed fields crashs the engine
2008-08-08 16:01:58 +00:00
asfernandes
12d3f6106a
Do not update RDB$DEPENDENCIES in system transaction, to be consistent with most of metadata updates and as work in progress for possible solution for CORE-1894
2008-07-21 15:49:24 +00:00
asfernandes
1442725a4a
Fixed CORE-1986 - Altering domains name drops dependencies using the domain
2008-07-15 15:41:43 +00:00
asfernandes
ce4bf91533
Misc
2008-07-01 01:12:02 +00:00
dimitr
f735ff4502
Fixed CORE-1963: Possible server crash on commit when granting/revoking privileges from multiple connections simultaneously.
2008-06-27 08:44:40 +00:00
dimitr
ee312b0920
Final part of the solution for CORE-1938: fixed synchronization.
2008-06-26 11:20:41 +00:00
dimitr
438dec11d6
1) Keep rel_name for dropped relations in order to report errors properly.
...
2) Throw an error when the relation cannot be locked because of being already dropped.
3) Don't release the existence lock before RDB$RELATIONS is cleaned up.
This is the first part of the changes intended to fix CORE-1938.
2008-06-26 10:48:28 +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
alexpeshkoff
956b6df437
Fixed CORE-1914: Problem creating table leave the database in inconsistent state
2008-06-20 12:20:40 +00:00
alexpeshkoff
e0109ab067
1. Use DFW to store data for user management.
...
2. Minor cleanup in DFW, fixed memory leaks.
2008-05-21 08:13:20 +00:00
asfernandes
b471e912d3
Fixed CORE-1907 - Dropping and adding a domain constraint in the same transaction leaves incorrect dependencies
2008-05-19 15:26:09 +00:00
hvlad
e3a6060861
Fixed bug CORE-1838 : SET STATISTICS INDEX on index of GTT may wrongly change index id by maximum available number for database page size
2008-04-16 11:46:50 +00:00
roman-simakov
a202daf6bb
Replaced nbackup dirty pages locking with RAII classes
2008-04-16 08:46:13 +00:00
alexpeshkoff
b237f4ebd8
Cleanup - avoid use of SUPERCLIENT macro in files, used by utilities
...
(and in some other places too).
2008-04-08 14:18:24 +00:00
hvlad
37a03b26b8
Split TDBB_deferred flag by two separate flags as its used for two different purposes now
2008-04-02 13:46:29 +00:00
robocop
f5db14b277
Pass some tdbb's as arguments.
2008-03-18 13:04:05 +00:00
asfernandes
493a6eab3c
Misc
2008-03-17 02:00:16 +00:00
alexpeshkoff
d3ec37bba0
Fixed CORE-1770: Bugcheck 291 in DDL
2008-03-16 17:10:41 +00:00
dimitr
afb970dba1
1) Cleanup.
...
2) Catch exceptions in AST routines.
2008-03-12 16:53:57 +00:00
hvlad
23679a8b04
Fix few race conditions during metadata load and make index lock block accounting more MT safe.
2008-03-05 14:23:19 +00:00
dimitr
99caa91b85
DSQL integration into the engine.
2008-02-28 13:48:16 +00:00
alexpeshkoff
ee6c433597
Mutexes cleanup:
...
1. Make all firebird mutexes recursive.
2. Enable exceptions to be thrown by mutexes and process them in code where needed.
3. Catch and ignore exceptions in various MutexGuard dtors.
2008-02-05 08:21:18 +00:00
dimitr
387c3860ca
More fixes for check_partners. Will this ever end? :-(
2008-02-02 14:59:43 +00:00