8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-26 07:23:08 +01:00
Commit Graph

217 Commits

Author SHA1 Message Date
alexpeshkoff
ede4082090 Fixed one more problem detected with valgrind.
Also do not write empty blobs to temp file.
2008-04-19 13:02:13 +00:00
alexpeshkoff
3334cf7fe1 Fixed a problem detected by valgrind - uninitialized data in temp file 2008-04-18 16:15:04 +00:00
asfernandes
aab534e66c 1) Misc 2) Remove temp. comment found by Claudio 2008-04-13 14:38:39 +00:00
asfernandes
553da033a1 Changed blob filter functions to throw exceptions instead of return status codes 2008-04-12 04:11:03 +00:00
hvlad
d8dce81b86 Create temporary page space on first reference of temporary page space ID. This allows to use temporary page space for blobs storage even if no GTT was referenced. 2008-04-09 17:21:23 +00:00
asfernandes
21da64cca7 Link blobs of autonomous transaction with the outer transaction - to fix invalid BLOB ID errors. 2008-04-05 19:28:52 +00:00
dimitr
580544fbd7 More changes targeted to a better error diagnostics. 2008-04-04 10:01:06 +00:00
dimitr
f715a3d796 More changes targeted to a better error diagnostics. 2008-04-03 08:10:14 +00:00
dimitr
0e9ae43558 Cleanup/refactoring. 2008-03-19 12:27:52 +00:00
asfernandes
0b6ecafe1b 1) Remove REPLAY_OSRI_API_CALLS_SUBSYSTEM code
2) Remove internal y-valve function INTERNAL_COMPILE_REQUEST
3) Go direct to engine internals from DSQL, without need to exit/enter the attachment lock and check exceptions in status vector
2008-03-07 15:23:21 +00:00
robocop
e9e1ead67a Mostly style, constness, native memcpy and explicit constructors. 2008-02-02 17:04:06 +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
1fa56f4cd7 The merge is being fixed. 2008-01-16 12:10:43 +00:00
dimitr
d4d587d155 The merge continued. 2008-01-16 08:16:36 +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
paulbeach
7602a29b94 HPUX Port 2007-11-12 14:26:44 +00:00
hvlad
b38d29c22b Fixed bug CORE-1584 : Server crashed or bugcheck when inserting in monitoring tables 2007-11-10 09:46:52 +00:00
alexpeshkoff
c4f6801e34 avoid cast 2007-11-01 17:19:54 +00:00
alexpeshkoff
abd533f545 Fixed CORE-1499: Wrong alignment of data, used in INTL converters 2007-10-05 14:37:33 +00:00
asfernandes
9a1eb5891b Misc 2007-05-23 15:29:53 +00:00
asfernandes
4c97cfc22b Correction 2007-05-23 10:48:00 +00:00
asfernandes
2e663f91b5 Improvement CORE-1280 - Verify well-formedness of text blobs 2007-05-23 02:26:27 +00:00
asfernandes
c67afcb4ee Improvement CORE-1277 - Automatic transliteration of text blobs 2007-05-22 02:14:20 +00:00
hvlad
9cfd2c8207 Fixed CORE-1247 : Blobs garbage collector removed wrong blob if going blob descriptor contains 0:0 (NULL value) but field's NULL flag is not set 2007-05-07 09:39:45 +00:00
alexpeshkoff
d63491e3c5 Finished gcc-warnings cleanup 2007-04-11 16:05:40 +00:00
alexpeshkoff
f0d465bf34 Fixed gcc warnings, general (un)signed usage cleanup 2007-04-11 09:28:50 +00:00
asfernandes
20299bb856 Misc 2007-03-24 17:44:09 +00:00
asfernandes
032a4b170c Don't leak memory after conversion to blob for store the value in a variable or parameter 2007-03-24 03:00:22 +00:00
dimitr
937333b619 An alternative attempt to fix the alignment issue. We don't need to track the entire blob_id, the record number part is enough. Hence there's no need to read the whole blob_id as int64.
Discussed with Vlad and Alex, tested on SPARC.
2007-03-23 11:25:41 +00:00
asfernandes
23dba8075c Fix problem where a temporary blob could not be returned to the client throwing "invalid BLOB ID" 2007-03-22 01:42:33 +00:00
asfernandes
bf5db7403e Fixed CORE-1169 - Conversion of temporary blobs to the destination blob type when materializing 2007-03-15 02:30:14 +00:00
asfernandes
7c72839ea2 Allow conversions from numbers to blobs 2007-03-09 15:42:17 +00:00
asfernandes
2100a06c84 Make MOV_move know how to move blobs.
This fixes CORE-1147: Blobs are not converted to string in UDF parameters.
2007-03-02 00:46:03 +00:00
asfernandes
2d26b3f5f8 Allow BLOBs in EXECUTE STATEMENT and possibly in others unkown cases 2007-02-27 02:36:20 +00:00
robocop
d009be834f Misc. 2007-02-09 08:34:16 +00:00
asfernandes
0ac7d125cd Fixed CORE-1122 - Recursive Query bug in FB2.1 2007-02-08 14:46:58 +00:00
dimitr
543fc5e0d1 Enabled rescheduling points for classic. It allows to shutdown database or cancel operation timely for a heavy loaded attachment. 2006-10-31 15:59:23 +00:00
robocop
e56aeea01a Cleanup. 2006-09-09 08:32:32 +00:00
asfernandes
eb4fb2f491 1) Concatenate of BLOBs
2) Start a refactoration on descriptor manipulations
2006-08-10 02:53:16 +00:00
asfernandes
df38d56bb5 Misc 2006-08-06 18:03:22 +00:00
asfernandes
da697e6e78 Work on CORE-655 - Blob Type 1 compatibility with VarChar:
Compatibility of blobs with others data types and different blob sub_types in assignments and CAST.
2006-08-05 19:52:26 +00:00
robocop
d2d3230637 Misc. 2006-07-01 08:50:21 +00:00
asfernandes
1dcdd0d3ca Misc 2006-05-25 03:15:53 +00:00
hvlad
18362ed19e Changes noted by Claudio 2006-05-24 11:38:16 +00:00
dimitr
211645e3dc Getting rid of the old allocator routines. 2006-05-23 10:17:00 +00:00
asfernandes
24d936cd70 Misc 2006-05-22 01:29:06 +00:00
hvlad
701f2cbda4 Global temporary tables implementation 2006-05-21 22:07:35 +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
asfernandes
22640e1189 BLB_put_segment can't write more than 64K in one shot.
Create BLB_put_data and use it. Thanks to Claudio.
2006-05-13 18:35:13 +00:00
asfernandes
7a9ab50851 Make everything that is convertible to string convertible to blob too 2006-05-13 01:24:55 +00:00
robocop
c5f2284b15 Style. 2006-04-06 08:18:53 +00:00
robocop
a8c34522a8 Totally misc. 2006-03-18 06:22:54 +00:00
asfernandes
53a61936d0 Misc 2006-03-18 01:57:16 +00:00
hvlad
25fb29b127 Fixed SF #1446987 2006-03-17 09:28:35 +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
robocop
044c5841ad Misc. 2006-02-10 03:28:43 +00:00
hvlad
961aea2f41 Correction 2006-02-03 22:05:04 +00:00
hvlad
00fdbbe579 Replace one fb_assert with BUGCHECK as Claudio suggested some time ago 2006-02-03 16:57:26 +00:00
dimitr
7dc2833785 Fixed one more compatibility issue with arrays. 2005-12-12 18:39:47 +00:00
dimitr
228d0ab300 Better error reporting. 2005-12-12 10:55:18 +00:00
dimitr
6aa3b33c79 Rolled back one of my previous commits.
We cannot forbid array->array assignments.
2005-12-10 10:25:08 +00:00
dimitr
f0b9e6d400 More changes re. blobs handling. 2005-12-06 10:11:18 +00:00
dimitr
6bbe2b239f Oops. 2005-12-05 12:45:42 +00:00
dimitr
9fde3787da 1. Cleanup.
2. Made array->blob assignments possible.
2005-12-05 12:40:22 +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
dimitr
3f5bb7564d 1) Prepare the blobs mover to be ready for dtype_blob variables.
2) Fix the string routines to work with PSQL blobs.
2005-11-25 15:20:26 +00:00
skidder
4ac89757a6 Fix the issue with bad incremental backups created when large blobs were changed.
Direct thanks to Hui Wang of BroadView QA team who chased down the problem.
2005-11-16 01:27:02 +00:00
hvlad
acc87f9e7f Fixed FB2 regression with blobs 2005-10-16 11:19:16 +00:00
dimitr
fd76a3eff0 Fixed SF #1211328. 2005-10-13 13:39:18 +00:00
robocop
a32d2f48b6 Totally misc. 2005-07-31 03:34:04 +00:00
robocop
6c89683142 Totally misc. 2005-07-31 00:45:38 +00:00
asfernandes
8b193dc794 Fixed field-test #1244126 - Update text BLOBs when connected with NONE charset 2005-07-25 12:01:19 +00:00
dimitr
894fa1e011 Removed unused thread scheduling option. 2005-06-12 06:27:12 +00:00
asfernandes
59213efe7e Merge INTL branch into HEAD 2005-05-27 22:45:31 +00:00
alexpeshkoff
5729790ed6 1. Applied class MetaName
2. Small generic cleanup
2005-05-12 18:28:04 +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
skidder
abe8670cbe Use slightly more hairy BID structure to work correctly on Sparc, PPC and other RISC platforms 2004-09-30 17:45:09 +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
6a8f60a552 Got rid of redundant cast 2004-09-15 03:47:43 +00:00
alexpeshkoff
c3db4aaa97 added (and used in sources) template to change and restore default pool 2004-08-30 18:11:08 +00:00
alexpeshkoff
31039a254e next step preparing to allocate auto objects memory from appropriate pool 2004-08-16 12:28:43 +00:00
skidder
2dfaa5dc95 Fix for regression in DEV_BUILD I caused recently 2004-08-03 16:04:17 +00:00
robocop
1bbb740b98 Undo inheritance in ODS page types as requested by Nickolay. Either some macros are too silly or the compiler is limited by the standard here.
Notice I may have missed some file that's not compiled in Win32.
2004-07-10 03:20:33 +00:00
skidder
f4e7ebdd3b Implement rudimentary framework to track lifetimes of active BLOBs.
This solves the following issues:
1) Outrageous memory consumption when blobs are converted from strings during request processing
2) Materialization doesn't cause invalidation of BLOB IDs too early.
Original behaviour caused errors with updatable views or procedures receiving BLOB arguments.
2004-06-22 20:13:10 +00:00
alexpeshkoff
1591a54e5e Thread cleanup:
1. Added macros to declare thread entrypoints
2. THD_mutex_* functions use Firebird::Mutex
3. Thread local storage use fb_tls.h
2004-06-08 13:41:08 +00:00
alexpeshkoff
9a34ce553c make bool (isEmpty/hasData) checks for string and stack safe 2004-05-27 16:26:52 +00:00
brodsom
bed146ad19 -Replace *_thread_data macros with inline functions (jrd step 2) 2004-05-23 03:18:10 +00:00
brodsom
f4ca41fa3d -Replace *_thread_data macros with inline functions (jrd step 1) 2004-05-22 14:28:54 +00:00
robocop
441817bd82 1.- Misc changes
2.- Style
3.- Recover dsc_ttype in dsc after Blas' cleanup as a synonym for dsc_sub_type in text types
2004-05-21 06:16:17 +00:00
brodsom
68cb86b274 - Remove *_THREAD_DATA definitions from thd.h, are unneeded and conflicts with definitions in providers/services main headers (which need to use undef).
- Use different names for each service/provider *_THREAD_DATA macros.
2004-05-19 18:14:29 +00:00
brodsom
b30a0b8799 Macro cleaning 2004-05-12 00:02:37 +00:00
robocop
802f244ec1 Misc changes 2004-05-09 05:48:33 +00:00
skidder
43cb0d1ce4 Y-Valve handle translation layer 2004-05-02 23:06:37 +00:00
brodsom
a549091c94 - Split sqlda.h to avoid duplicated definitions between ibase.h and sqlda.h
- Replace define for constants
- Remove contants.h where not used.
2004-04-30 22:47:16 +00:00
brodsom
2c0ab256cf Removing duplicated definitions between
ibase.h and blob_filter.h
ibase.h and constants.h
2004-04-29 17:48:39 +00:00
skidder
2689422538 Back out my block leak fix and return to 1.5.0 logic in this place 2004-04-27 01:45:53 +00:00
skidder
7472c7319a Use another approach to address memory leak when converting strings to blobs. This one works for updatable views 2004-04-25 21:52:42 +00:00
alexpeshkoff
7b27fa55be fixed number problems after lls to Stack conversion 2004-04-21 14:14:36 +00:00