dimitr
47d00c34e0
A number of little corrections.
2004-09-13 21:06:41 +00:00
alexpeshkoff
c3db4aaa97
added (and used in sources) template to change and restore default pool
2004-08-30 18:11:08 +00:00
brodsom
15a5a276da
Fix signed/unsigned comparisons
2004-08-26 21:47:19 +00:00
robocop
9ce5f2f683
Simplify expression
2004-08-21 09:30:54 +00:00
alexpeshkoff
31039a254e
next step preparing to allocate auto objects memory from appropriate pool
2004-08-16 12:28:43 +00:00
skidder
311d7b4b34
Fix a couple 'invalid read' problems found by Valgrind. Both could cause crashes, one could result in invalid nulls placement. Removed const*const*const stuff in couple places because things like that make code really hard to understand
2004-08-11 05:34:23 +00:00
aafemt
0f132c7212
Variable score
2004-08-04 06:29:23 +00:00
dimitr
321ac4792f
Prevent any modifications of the OLD context in triggers.
2004-08-02 19:53:45 +00:00
dimitr
9dc9adf017
Fixed implementations of concatenation and SUBSTRING function.
...
Used new messages for error reporting. Changes should be fully SQLDA-compatible.
2004-08-02 19:49:12 +00:00
robocop
9eecdd8066
Nickolay says the local variable is different from the outer variable.
...
Therefore, renamed the inner variable to avoid warning found by D. Sibiryakov. Some integer types made const, too.
2004-07-30 04:58:26 +00:00
skidder
5494b34caa
size_t is more correct type for container sizes and indices
2004-07-16 23:06:31 +00:00
robocop
b5c374a300
Style
2004-07-09 05:22:46 +00:00
aafemt
2978da19cd
Variable's scope
2004-07-07 10:12:55 +00:00
robocop
949830d0c6
1.- const correctness
...
2.- style
3.- Try to fix the mess caused by different data types used to represent bifields of SCL_ constants defined in scl.h,
first round. No circular dependencies found through MSVC. Still pending dyn* and grant.epp files.
2004-06-29 04:37:59 +00:00
dimitr
fe5962a281
1. Yet another attempt to fix that damned double-compile UDF args crap. Hopefully, the last one...
...
2. Temporary fix for the SUBSTRING (BLOB) issue (until Yaffil merge).
2004-06-27 19:06:41 +00:00
skidder
2915fcf547
Somewhat simplify invariant tracking stuff. It is more pessimistic now, but should work more reliably when invariants are modified (see QMDB tests for details)
2004-06-25 22:12:20 +00:00
brodsom
d2b64735c6
Removing wrong extra ;
2004-06-13 23:47:02 +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
robocop
609ce1c1b1
Const correctness: we no longer need this disguised const_cast because
...
the function accepts a const string.
2004-05-29 04:58:56 +00:00
alexpeshkoff
9a34ce553c
make bool (isEmpty/hasData) checks for string and stack safe
2004-05-27 16:26:52 +00:00
alexpeshkoff
2f99a5ebf1
small strings cleanup
2004-05-26 16:12:05 +00:00
brodsom
f4ca41fa3d
-Replace *_thread_data macros with inline functions (jrd step 1)
2004-05-22 14:28:54 +00:00
brodsom
f55f6d5d3e
Multiple line comment warning
2004-05-21 15:24:30 +00:00
robocop
f6a7a6844e
Reading fb-checkins I realized some bad merges mine.
2004-05-21 07:28:17 +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
df4aa2ec66
Macro cleaning (use ini.h instead repeating the macros)
2004-05-18 16:40:20 +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
brodsom
60d9d085a0
Macro cleaning
2004-05-03 21:43:56 +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
2f4865a195
Replace defines for constants
2004-04-29 14:51:02 +00:00
dimitr
8b24551d15
Fixed bug in one of my previous commits.
2004-04-25 10:00:37 +00:00
alexpeshkoff
7b27fa55be
fixed number problems after lls to Stack conversion
2004-04-21 14:14:36 +00:00
alexpeshkoff
ce0d00e9f6
struct trig moved to class Trigger
2004-04-19 15:29:29 +00:00
alexpeshkoff
045e9dc8ec
1. removed any mentions of blk_pool() from engine (and method itself)
...
2. replaced 'struct lls' with 'template Stack'
2004-04-18 14:22:27 +00:00
skidder
abdbec6f84
Switch to Firebird container templates for request resource tracking. This significantly reduces CPU time any memory consumption for databases with complex metadata
2004-04-18 02:50:38 +00:00
alexpeshkoff
4650f4975f
string cleanup
2004-03-31 18:03:51 +00:00
robocop
faa41f7b3b
Cleanup
2004-03-30 04:10:52 +00:00
robocop
1824343930
Cleanup.
...
Fixed a linking error with MSVC6, too.
2004-03-28 09:10:30 +00:00
alexpeshkoff
695c222ad2
1. introduced Jrd and Ods namespaces
...
2. cleanup of blk* request conversions
3. fixed memory allocation in Execute Statement
2004-03-20 15:33:30 +00:00
robocop
958f9e31aa
Cleanup
...
A few new[] - delete[] pairs fixed.
2004-03-19 06:14:53 +00:00
robocop
f58c769c37
Cleanup. In geeky words:
...
PandoraBox* pbox = reinterpret_cast<PandoraBox*>(&can_of_worms);
pbox->open();
pbox->flush();
Nickolay may want to undo my ods.h changes if gcc insists
in its crusade against non-PODs and poodles.
2004-03-18 05:56:06 +00:00
alexpeshkoff
67f1740fea
Various cleanup to make engine compile and work after mentioned earlier changes.
...
Mainly:
1) MemoryPool* => MemoryPool& in arrays' constructors
2) use Firebird::string to keep strings data
2004-03-14 13:40:14 +00:00
skidder
1c870a7426
Fix issues in my code spotted by Claudio
2004-03-12 20:19:41 +00:00
skidder
c64f31b712
Fix some warnings from GCC/Linux build. Some of them were subtle errors
2004-03-12 07:00:52 +00:00
robocop
2ab1f94dd2
Cleanup
...
Some minor corrections
Second step to rename
2004-03-11 05:04:26 +00:00
dimitr
8c295fc475
1) Propagate fragments of the user-supplied plan to nested levels of joins, thus allowing to manually optimize complex outer joins.
...
2) Check the user-supplied plan for correctness in outer joins.
2004-03-07 14:37:00 +00:00
dimitr
cffa34f47a
1) Some cleanup and encapsulation.
...
2) Fixed a number of stream-related crashes.
2004-03-07 09:48:56 +00:00
robocop
e6187cecd2
Cleanup
...
Some bug fixes
Style
2004-03-07 07:58:55 +00:00
skidder
dc7aab8f9c
Fix up exception handling. Handle (do not ignore) std::bad_alloc and generic exceptions, provide syscall and error information in system_call_failed
2004-03-01 03:35:23 +00:00
dimitr
dfa944c71b
Prevent UDF arguments from being compiled/optimized twice. Every UDF node has nod_count = 1, so the correct handling will be done automagically in both pass1() and pass2().
2004-02-28 15:15:25 +00:00
robocop
5c3c8abd9a
Big cleanup.
...
God have pity on platform maintainers.
I only can compile/test Win32; sorry, folks.
2004-02-20 06:43:27 +00:00
robocop
663e3b16e7
Cleanup
2004-02-02 11:02:12 +00:00
robocop
2b295a9108
General cleanup. Sorry if I missed some occurrence.
2004-01-28 07:50:41 +00:00
skidder
08eee5ebaa
Further AMD64 fixes. Given this fixes you may start playing with databases using isql_static.
2004-01-21 07:18:30 +00:00
robocop
b441cd9aef
Cleanup
2004-01-13 09:52:19 +00:00
dimitr
9b0108c682
Fixed bug with computed fields referenced in a trigger context.
2004-01-11 09:29:44 +00:00
skidder
f13d160aa5
Fix resource leak for recursive procedures when procedure request is closed at
...
SUSPEND statement. This leak prevented more then 1000 such operations for one connection.
This bug was reported by Claus Holst
2004-01-10 01:48:46 +00:00
robocop
fd93837ec3
Cleanup:
...
const correctness
BOOLEAN -> bool
Vars in scope
Formatting
JRD_REQ -> jrd_req*
JRD_TRA -> jrd_tra*
JRD_REL -> jrd_rel*
JRD_FLD -> jrd_fld*
event -> event_t, EVENT_T dropped, EVENT should go in the future
Frank's corrections
alice's STR -> alice_str*
remote's STR -> rem_str*
etc.
It creates entities and backups and restores for me. :-)
2004-01-03 10:59:52 +00:00
skidder
d7fb2d6cb3
Integrate new LIKE/STARTING WITH/CONTAINING algorithms into the engine. This has following impact:
...
1. String functions now search BLOBs correctly
2. Their performace is improved
3. Fixed crash when NULL is passed as escape value to LIKE
2003-12-27 04:37:23 +00:00
robocop
ad0b5c4de3
General cleanup
2003-12-22 10:00:59 +00:00
dimitr
82bbf9a352
Always copy message structures. Keep all message references in sync. Never allow one message node to be shared between different RSBs.
2003-12-12 17:33:47 +00:00
robocop
84062732d8
More cleanup
2003-12-03 08:19:24 +00:00
arnobrinkman
4d7319e1af
Fix a bug,
...
when end() returns pointer with value 0x0000000 then after -1 this value is bigger as begin()
2003-11-30 20:23:10 +00:00
skidder
2ef44e962f
Little correction in my invariant-tracking changes
2003-11-30 14:13:48 +00:00
dimitr
54c59554dd
Fixed bugs related to metadata cache and database shutdown.
2003-11-27 11:39:10 +00:00
skidder
16ea16b085
Fix invariant tracking in recursive procedures and when invariants
...
depend on variables. This solves issues like SF#627057.
2003-11-23 20:17:30 +00:00
dimitr
d0ad504f5e
Minor protection against improper index locks reference.
2003-11-23 17:54:59 +00:00
arnobrinkman
5720f7a68b
bugfix: Charset problem when mixing none (constants)/ascii charset and other character-sets in concatenation.
2003-11-22 00:07:23 +00:00
brodsom
abe35ef6fe
-Remove unneeded setjmp header
2003-11-18 12:39:12 +00:00
robocop
f55c6f6f8c
const correctness and cleanup
2003-11-10 09:16:38 +00:00
dimitr
63809c18b8
1) Make view fields unconditionally updatable
...
2) Make views updatable only directly or via the triggers
3) Cleanup
2003-11-09 09:51:02 +00:00
brodsom
4285bc623c
Removing gdsold.h and gds.h
2003-11-08 16:40:17 +00:00
robocop
db77ffa605
const correctness, variables in scope, cleanup, etc.
2003-11-07 08:06:35 +00:00
brodsom
ff070a16a8
Replacing assert with fb_assert
2003-11-03 23:59:24 +00:00
dimitr
881140edfe
Small cleanup.
2003-11-02 17:08:47 +00:00
dimitr
9b20660785
1. Fixed GDSCODE and SQLCODE variables
...
2. Enhanced ROW_COUNT variable
3. Fixed EXCEPTION statement
4. Added explicit cursor internals
5. Some cleanup
2003-11-02 11:55:17 +00:00
arnobrinkman
20ac04d3a3
bugfix: Missing literal node caused at least to fail on GROUP BY constant expressions
2003-10-28 22:44:11 +00:00
brodsom
76c7382b78
Macro cleaning
2003-10-20 22:41:11 +00:00
aafemt
900fa62a1d
'struct' cleanup
2003-10-20 10:53:52 +00:00
brodsom
64c31be213
extern cleaning
...
removing underscores in macros
DLL_EXPORT cleaning
2003-10-03 01:34:14 +00:00
skidder
235db035ce
Ok, i'm joining Firebird destruction team with my cleanup:
...
1. Bring trace DSQL, DYN and BLR trace logging up-to-date
2. Remove redundant CSB pointer dereferences in BLR parser and request compiler
3. Convert RIGHT JOIN to LEFT JOIN early during BLR parsing
4. Check BLR syntax for unititalized contexts usage
5. Some type-safety and const-correctness fixes
2003-09-28 21:36:05 +00:00
brodsom
9d5721473a
Removing SHLIB_DEFS
2003-09-22 17:56:35 +00:00
brodsom
8c0cc95124
Fix indents
2003-09-13 12:03:11 +00:00
brodsom
4a15406cd0
-Code format
2003-09-12 01:58:51 +00:00
brodsom
8624a7c209
-Use NULL instead 0 for null pointers
...
-Remove unneeded casts
2003-09-01 07:58:04 +00:00
brodsom
6a2ef35fda
-Remove NULL_PTR
...
-Remove unneeded NULL casts
-Remove (void) function return cast
2003-08-28 13:16:03 +00:00
aafemt
8798a33d84
ENUM removal
2003-08-22 10:56:55 +00:00
skidder
bdbeb38959
Avoid storing and using pointers allocated from one request pool
...
in other requests. Make request access lists use view ID, not pointer
to view structure. This changes solve the crash reported by
Evgeny Kilin when altering complex recursive procedure->trigger chains.
2003-08-14 20:45:36 +00:00
brodsom
5cb44f514e
-Fix cast warnings.
2003-08-09 21:55:01 +00:00
brodsom
c50093593e
Rollback generated metadata headers
2003-08-03 23:54:39 +00:00
brodsom
66725d4a77
Move fields.h, relations.h and names.h to include/gen, generator will follow
2003-07-12 13:24:30 +00:00
alexpeshkoff
7315cce362
Fixed server AV for any combination of sub-select & between.
...
Not ideal, but such diagnostic is better than server crash.
2003-07-09 13:07:26 +00:00
alexpeshkoff
b65c58fe6b
fixed AV in fbserver when JRD_PRC::prc_request == 0 at commit time
2003-06-30 13:11:40 +00:00
dimitr
112c7022b6
Fixed (hopefully) savepoints implementation:
...
1) RELEASE SAVEPOINT statement is added
2) SAVEPOINT statement now re-establishes existing savepoint with the same name
3) all savepoint stuff is changed to use single BLR verb
2003-06-10 13:40:19 +00:00
skidder
b79a5aa971
Fix metadata cache problem that prevented restore of some databases
2003-06-01 16:22:47 +00:00
alexpeshkoff
6391b56386
Comment added
2003-05-05 07:55:16 +00:00
alexpeshkoff
74f9a0db5c
Once I've seen att_requests == 0x00000014,
...
so some debugging code added to catch it earlier in dev_builds
2003-05-02 15:13:16 +00:00