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

374 Commits

Author SHA1 Message Date
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
dimitr
33d31b3d0f Rolled back my "partner check" changes upon Vlad's request. But one minor change is still done to avoid races in SS. To be reviewed after the CS build is fixed. 2008-01-31 13:36:11 +00:00
dimitr
a38b327886 Cleanup. Get rid of the JrdMemoryPool. 2008-01-29 10:11:52 +00:00
dimitr
8f742ba52c Major synchronization changes. Description of the commit will be posted to fb-devel. 2008-01-26 12:57:52 +00:00
alexpeshkoff
39896cb955 Fixed CORE-1671: atexit() calls in client libraries cause segfaults
and CORE-1079: Every attach of fbclient/fbembed library leaks 64KB of memory

To do it:
- created new template GlobalPtr, controlling access to destructors of global objects.
- applied it to global objects.

Also some related cleanup.
2008-01-23 15:52:40 +00:00
dimitr
2c78462820 The merge continued. 2008-01-16 08:46:02 +00:00
dimitr
792fd3d8b6 Bugfix for CORE-1641. The solution is to move some of the phase 3 code to phase 4, so that both create_trigger() and modify_trigger() are in sync. To be reviewed by Adriano. 2007-12-09 09:15:48 +00:00
alexpeshkoff
eea9070f48 Optimized RuntimeStaticstics (and related part of ThreadDb) for performance - some tests run 25faster 2007-12-03 15:46:39 +00:00
robocop
6958aafa45 Misc. 2007-09-02 09:50:33 +00:00
robocop
a455c5e3aa An extra pair of useless parenthesis was added. 2007-08-31 05:56:17 +00:00
asfernandes
f3ba6d4fa5 Misc 2007-08-29 02:33:35 +00:00
hvlad
8de5dd7342 Fixed bug CORE-1361 : Index operations for global temporary tables are not visible for the active connection 2007-08-28 20:17:36 +00:00
robocop
3a7d93f658 Misc tweaks with Firebird::string. 2007-08-26 09:53:08 +00:00
robocop
fa1538a1ae Minor changes in MetaName usage. 2007-08-26 09:05:29 +00:00
robocop
7da5c35b5d Misc. 2007-08-07 10:28:24 +00:00
asfernandes
a568843ccd Fixed CORE-1395 - Few problems with domains's check constraints 2007-08-04 02:11:07 +00:00
hvlad
42fedd1c0e PIO_act_alloc and PIO_max_alloc moved into PageSpace static metods 2007-05-22 11:52:23 +00:00
asfernandes
97843da8a3 Misc 2007-05-20 03:25:52 +00:00
asfernandes
de7a981a6b Fixed CORE-1271 - Creation of invalid procedures/triggers allowed 2007-05-19 21:25:47 +00:00
skidder
04b9ec818b NBAK synchronization rework. This should fix CORE-1151 and other Nbackup stability issues 2007-04-24 14:05:46 +00:00
asfernandes
9582ea243c 1) Upgrade INTL interface to undestand misc. configuration informations
2) Make our ICU collations work with different ICU versions (tested with ICU 3.6)
2007-04-15 15:57:12 +00:00
alexpeshkoff
f0d465bf34 Fixed gcc warnings, general (un)signed usage cleanup 2007-04-11 09:28:50 +00:00
asfernandes
b7a1aea1c9 Fixed problem of not storing dependencies for database triggers - reported privately by Dmitry 2007-04-03 15:41:00 +00:00
hvlad
b3dcfede36 Close external table's file when relation is not used by the engine.
This is simplest fix for bug CORE-132 (Restore fails on external table) and CORE-961(Free external tables)
2007-03-19 21:34:52 +00:00
dimitr
51a3d78c1e Fixed bug in the ported code. 2007-01-28 07:03:02 +00:00
asfernandes
564147db66 Misc 2006-12-15 01:32:39 +00:00
dimitr
9d2b718bba Restored the old alter-in-use logic upon customer requests. 2006-12-14 16:11:21 +00:00
hvlad
a810712c6e Fix for CORE-1051: Possible stack corruption in DFW\check_dependencies 2006-12-11 14:03:29 +00:00
robocop
7a46dc7247 Misc. 2006-11-10 08:12:07 +00:00
asfernandes
73f1aa1f8c Remove variable shadowing - thanks to Claudio 2006-11-09 00:18:07 +00:00
asfernandes
570b6cd4b4 1) CORE-645 and CORE-745: Database triggers
2) CORE-711: Make syntax for "CREATE TRIGGER" compliant with SQL2003
2006-11-05 18:30:36 +00:00
robocop
6b4ee46d7c Misc. 2006-09-30 09:25:49 +00:00
robocop
bdda709bca Misc. 2006-08-30 06:14:34 +00:00
asfernandes
fcac437363 Don't check procedure BLR when it's marked as invalid, to allow restoration of backups with invalid procedures. 2006-08-27 01:09:47 +00:00
asfernandes
b7af27215e Allow usage of domains in PSQL (with TYPE OF syntax) 2006-08-19 02:52:39 +00:00
robocop
471d052e82 Misc. 2006-08-13 06:46:16 +00:00
asfernandes
e538061c38 Implementation of CREATE/DROP COLLATION and ISQL show/extraction of collations 2006-08-07 16:39:21 +00:00
asfernandes
50cae9632b Misc 2006-07-12 01:38:41 +00:00
robocop
4c0b816568 CORE-847
Deleting dependencies for fields that WERE computed.
2006-07-11 04:57:28 +00:00
dimitr
0aef0fe67c Report "feature not supported" for nbak operations on ODS10. 2006-06-06 10:23:37 +00:00
robocop
3fa49e994b Style and typo correction. 2006-05-26 05:19:48 +00:00
dimitr
211645e3dc Getting rid of the old allocator routines. 2006-05-23 10:17:00 +00:00
hvlad
701f2cbda4 Global temporary tables implementation 2006-05-21 22:07:35 +00:00
robocop
e77a46b011 Misc. 2006-05-20 03:55:54 +00:00
asfernandes
292ad66e96 Misc 2006-05-20 01:53:51 +00:00
alexpeshkoff
b056a118b5 1. Avoid use of STL
2. Reworked exceptions to make status_exception always hold correct status vector
3. Avoid use of RTTI
2006-05-19 15:17:02 +00:00
dimitr
b93f103c49 Fixed SF #1475979: Dropping and recreating a table in the same txn disables PK. 2006-04-30 04:51:10 +00:00
robocop
c5f2284b15 Style. 2006-04-06 08:18:53 +00:00
robocop
8f1cf8f2cb Commit correct signature for events-related calls. 2006-03-10 08:23:40 +00:00
robocop
1f84bac700 Mark unused data members, discover more code associated to conditional compilation, clean some places, replace custom loops by memcpy and memset when possible, etc. 2006-02-23 05:08:26 +00:00
hvlad
832bba530c Fixed SF #1436066 : Adding index during DB activity causes GFIX errors 2006-02-22 14:55:54 +00:00
asfernandes
5959391572 Don't allow to drop indices used in explicit plans inside SPs/triggers 2006-02-19 21:16:45 +00:00
robocop
044c5841ad Misc. 2006-02-10 03:28:43 +00:00
dimitr
2b10a0e4b7 Hopefully, this should fix SF #1404157. 2006-01-26 11:17:52 +00:00
robocop
1ca7a582f9 EXPRESSION_INDICES code is considered stable and therefore there's no need to keep it protected by macros. Please do a full rebuild. 2006-01-14 07:00:44 +00:00
alexpeshkoff
32ef4f5b67 fixed compilation after changes in exception 2006-01-07 16:58:23 +00:00
dimitr
38e34a43ba Fixed SF #1191206. 2005-12-12 13:58:19 +00:00
robocop
e2f440a374 Finish Mike work after 3 years. :-) 2005-12-03 06:43:19 +00:00
robocop
f00fc0ff56 1.- Make "vec" type safe and get rid of several code contortions. Fix some small bugs meanwhile.
2.- Put inside PC_ENGINE several data members that belong to that feature.
3.- Put inside PC_ENGINE the code that does cleanup on those unused data members.
2005-12-02 07:35:34 +00:00
alexpeshkoff
62a24d46e4 1. Moved data structures, written to database file, into ods.h.
2. Added new types of clumplets to ClumpletReader and ClupmletWriter.
3. Applied modified ClumpletReader and ClupmletWriter to /remote and partially /jrd.
4. Added active protection from remote brute-force attack to services API.
2005-11-27 20:53:09 +00:00
hvlad
9d6b361f69 Eliminate unnecessary JRD_get_thread_data call in nbak.
Checked against B2_0_BV_Stable3 branch
2005-11-21 23:33:20 +00:00
hvlad
3d798bb34d Fixed bug in DFW reported by Claudio in fb-devel (lost status-vector during phase 0 execution) 2005-11-13 10:01:47 +00:00
robocop
6ec02b200e Moved another hardcoded error string to the msg database. 2005-10-07 08:52:51 +00:00
robocop
eb03e65ddc Source code comments. 2005-09-27 07:47:11 +00:00
robocop
7d34a2dfb4 It shouldn't be possible to write BLR to create tables with fields using unknown data types. 2005-09-24 05:11:04 +00:00
hvlad
8425cc1b2d Fix SF #1256675 2005-08-14 20:46:17 +00:00
hvlad
da230f3442 Temporary disable procedure parameters dependency check until proper solution (something like dyn_mod_parameter) will be implemented.
This check was never worked properly so no harm is done
2005-08-13 20:24:40 +00:00
hvlad
41e5597de0 Lost part of my previous commit. Thanks to Claudio 2005-08-04 06:21:11 +00:00
robocop
773b8035c1 Totally misc. 2005-08-04 04:03:01 +00:00
hvlad
c104f1b23d Fixed two DFW bugs
1. Unregistered FB2 bug - expression index dependencies was tracked not correctly.
2. SF #1250150
2005-08-02 11:41:37 +00:00
robocop
66f466d3a9 Misc. 2005-07-08 03:25:31 +00:00
hvlad
0bc1c4bf49 1. Allow to create FK constraints without exclusive database locking
2. Fix 'partner index not found' error when one process dropped FK and another trying to delete master record
3. misc changes in vio.cpp
2005-06-26 21:48:47 +00:00
robocop
a3e76836e3 Misc. 2005-06-16 05:02:37 +00:00
asfernandes
890494ac7c 1) Fixed SF #1016040 Missing external libraries causes engine exception
2) Use better error messages
2005-06-14 03:16:54 +00:00
hvlad
8146bb5e41 Fixed SF bug #1186607 (Foreign key relation VARCHAR <-> INT ??????) 2005-06-11 11:39:03 +00:00
asfernandes
59213efe7e Merge INTL branch into HEAD 2005-05-27 22:45:31 +00:00
alexpeshkoff
c03d2241c5 fixed issues, reported by Claudio 2005-05-17 18:20:07 +00:00
robocop
ee7dbf0b8c Let's go back to the old more robust code after Alex change: one argument is not null terminated. 2005-05-16 09:04:00 +00:00
alexpeshkoff
5729790ed6 1. Applied class MetaName
2. Small generic cleanup
2005-05-12 18:28:04 +00:00
dimitr
636425845a Correction. 2005-03-29 05:54:57 +00:00
dimitr
4ec439dd14 1) Deliver trigger type to the compiler level
2) Disallow NEW context assignments for POST-triggers
2005-03-28 21:52:55 +00:00
dimitr
1d5133d6cc Solved restore issues with recent (and future) compiler changes. 2005-03-28 19:36:01 +00:00
robocop
0410e8b0ac Fix items 1 & 2 from SF Bug #217042.
A table should have at least one "physical" field. A table with only computed fields cannot accept data, same than a table with only a check constraint.
2005-01-25 06:46:38 +00:00
robocop
73c5351bb7 1.- Misc.
2.- Use constants instead of harcoded positions in node's arguments.
2005-01-21 08:36:06 +00:00
robocop
24742873ad fb_string.h is moved to common/classes. 2004-12-17 05:41:47 +00:00
robocop
fd2bcc04e4 frb_sys_flag becomes fb_sys_flag 2004-11-29 09:09:42 +00:00
robocop
d6535351a2 Misc: style. 2004-11-24 09:22:07 +00:00
alexpeshkoff
ea9e900ab3 cleanup of methods, storing data in plain char* 2004-11-14 18:05:13 +00:00
alexpeshkoff
73c3fc3e51 1.fixed problem with double-opened databases on LanMan mounted disk.
might cause database corruption.
2.more active use of Firebird::string in isc_file.cpp
2004-11-07 14:43:29 +00:00
hvlad
4d95ce3d42 New garbage collector thread implementation 2004-11-05 08:01:21 +00:00
robocop
5c58b09674 Misc. 2004-10-30 05:51:30 +00:00
robocop
41c68bdd70 Implement rdb$description in rdb$generators. What a chore. 2004-10-30 05:23:31 +00:00
skidder
0c46bd34ea Unify ODS11 between 32-bit and 64-bit builds on the same architecture: use 64-bit alignment and 32-bit descriptors 2004-10-25 01:18:37 +00:00
dimitr
0b52c3f9e2 Fixed bug related to UDFs vs expression indices. 2004-10-10 19:29:05 +00:00
robocop
4778d95532 Possible buffer overrun. 2004-10-07 09:02:24 +00:00
skidder
3e6b170862 Roll back implementation of Claudio suggestion for consturctor of BID structure. It forced addition of constructors for message structures generated by GPRE which is not correct 2004-10-03 20:18:13 +00:00
skidder
36c4d7b832 Implement BID constructor as Claudio suggested 2004-10-01 21:12:46 +00:00
dimitr
a4cb9ebc26 Added transaction lock timeouts and new TPB value. 2004-09-28 20:25:52 +00:00
skidder
02a0915156 Teach engine to work with larger record numbers - 64-bit internally, 40-bit externally 2004-09-28 06:28:38 +00:00
robocop
8021b1db19 Redundant cast 2004-09-26 07:45:19 +00:00
robocop
840bf14b36 If we are using namespace fb_utils, it doesn't make sense to prefix functions in it with fb_ again. Mechanical replacement made one by one (no bulk automatic changes). 2004-09-26 01:49:52 +00:00