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

278 Commits

Author SHA1 Message Date
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