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

172 Commits

Author SHA1 Message Date
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
brodsom
b9bdc2a2fe - Avoiding some signed unsigned comparisons 2003-04-03 13:52:42 +00:00
dimitr
f489530467 Some cleanup and bugfixing. 2003-03-05 12:50:44 +00:00
alexpeshkoff
878b0b6091 Fixed EXECUTE STATEMENT to support INTO clause 2003-03-01 19:19:23 +00:00
tamlin
66527bca20 Fix optimizer crasher with too many streams (UCHAR overflow/wrap-around). 2003-02-27 16:28:53 +00:00
arnobrinkman
c187bdd4b8 sub-selects inside a set-clause from an UPDATE didn't use an index when there was one.
From now indices are used whenever possible with sub-selects inside the set-clause.
Pointed by Nickolay Samofatov.
2003-02-23 23:40:41 +00:00
dimitr
1dcf79e065 Cleanup and bugfixing. VIO statistics now work properly. 2003-02-19 15:25:27 +00:00
dimitr
35791e9c21 Cleanup. 2003-02-15 15:11:42 +00:00
dimitr
67749f906b Fixed exception handling. 2003-02-13 13:33:57 +00:00
dimitr
b096a2593d CONST -> const 2003-02-13 10:11:35 +00:00
eku
a7f18b2e31 Removed "register" variables from the source code. It's up to the compiler
to hold variables in CPU registers.
2003-02-10 13:28:35 +00:00
arnobrinkman
6246288af3 bugfix: SF BUG # [ 523589 ] View is affecting the result of a query. Problem was that rse's (inside the view) where not flagged as variant 2003-02-09 02:07:51 +00:00
dimitr
934f4126aa Fixed bug with cyclic dependencies in the metadata cache. 2003-01-30 14:53:37 +00:00
arnobrinkman
fcb77779fa More and better optimizations with "complex" JOIN queries (LEFT JOIN, views, sp etc...).
bugfix: An SORT can't be generated when there are already RSBs on the stack, because this will lead to strange values. See also SF BUG # [ 221921 ].
2003-01-22 00:17:27 +00:00
skidder
ba5e11b15c Integrate new memory manager into the engine 2003-01-16 17:47:10 +00:00
dimitr
41a70a6d19 Restored the check - just to be safe from infinite recursions etc. 2002-12-06 21:20:08 +00:00
arnobrinkman
bda65dd209 bugfix: release wrong memory (introduced in last commit) 2002-12-05 22:28:20 +00:00
arnobrinkman
3115d75eb7 no message 2002-12-04 18:56:05 +00:00
arnobrinkman
3982660a91 no message 2002-12-04 18:50:45 +00:00
arnobrinkman
fb42c5b975 Cosmetic changes with thanks to Claudio V.
A better/logical change so that the optimizer can use indices in sub-selects and aggregate-statements.
2002-12-04 18:39:14 +00:00
hippoman
9a8f0768b9 Changed struct fld and FLD to local module names 2002-11-30 17:45:02 +00:00
dimitr
a1fdc40618 Since an impure area is dynamically allocated out of the request memory pool, I cannot see any reason to limit request size. 2002-11-25 10:23:56 +00:00
arnobrinkman
b5f4f72800 1) bugfix another LEFT JOIN and 'no current record for fetch operation'.
2) Let sub-selects also use indices when there parent is a stored procedure.
2002-11-23 23:36:22 +00:00
dimitr
1e74d73b5b Increased maximum size of request block. 2002-11-23 17:58:29 +00:00
hippoman
7387e6fb70 changed nod,tra,req,trg,rel,ctx,prc struct names to local module names 2002-11-20 23:18:16 +00:00
skidder
53f625e077 New explicit pessimistic locks implementation. It is logically consistent in all TPB modes and should be very fast. 2002-11-18 20:27:24 +00:00
hippoman
4a76e9e4fe change TRA,REQ,TRG,REL,CTX or PRC, to module local names. 2002-11-17 00:13:59 +00:00
skidder
5a712a4fee Fixed restore problem for databases having views that use procedures AND are used by procedures. General procedure metadata related cleanup. 2002-11-16 18:48:01 +00:00
skidder
62e80d6abc Better cache dependency tracking for procedure modification 2002-11-14 13:39:02 +00:00
dimitr
ae89b0f3cb Fixed bug with dynamic exception messages. 2002-11-14 07:35:44 +00:00
hippoman
25c1dbd367 * Changed NOD struct name to JRD_NOD. 2002-11-11 19:42:47 +00:00
seanleyne
b3ad604669 Removed support for obsolete "PC_PLATFORM" define 2002-10-31 05:06:02 +00:00
seanleyne
0b82f4aa07 Removed obsolete "Netware" port 2002-10-30 06:40:58 +00:00
skidder
8e6622a20e Merging changes from skidder branch - explicit locks, savepoints, build system changes 2002-10-29 20:20:44 +00:00
dimitr
536d8c0552 1. Reworked internal_info implementation in both DSQL and JRD.
New helper class created to serve it properly.
2. Added exception re-raise semantics.
Syntax: EXCEPTION;
If there was handled exception, re-initiate it, otherwise evaluate to no-op.
3. Implemented run-time exception messages.
Syntax: EXCEPTION <exception_name> [<value>];
If <value> is specified, evaluate it and use instead of RDB$EXCEPTION_MESSAGE.
4. Added new SQLCODE and GDSCODE system variables.
Available in procedures/triggers only.
If there wasn't any exception raised, return zero (success), otherwise return an error code.
5. Implemented ROWS_AFFECTED system variable.
Available in procedures/triggers only.
Count rows affected by the last INSERT/UPDATE/DELETE statement.
For any other statement, result is always zero.
2002-09-28 14:04:35 +00:00
skidder
0518ca14a3 Fix several mostly DDL-related coredumps and locking failures 2002-09-27 22:59:24 +00:00
skidder
040bd8e499 Fixed some memory leaks 2002-09-26 18:13:02 +00:00
skidder
6d64014e57 Changed engine to store source file name/line number information for EVERY allocation when DEBUG_GDS_ALLOC is defined. All allocation should be done using FB_NEW or FB_NEW_RPT macros instead of keyword new since now 2002-09-25 17:12:16 +00:00
skidder
b374caac68 Deferred user trigger compilation added. Solves some, but not all DDL issues and speeds things up 2002-09-19 16:02:58 +00:00
dimitr
b9ef9abcc0 Get rid of the legacy GATEWAY (vms/oracle) implementation. 2002-08-22 08:20:27 +00:00
skywalker
dae9189129 Changes for rebuild of fb2. 2002-07-04 09:34:20 +00:00
dimitr
25de98bfd8 Merging changes from fb1. 2002-06-29 13:03:13 +00:00
dimitr
c5f50577cb 1. New system variables - CONNECTION_ID and TRANSACTION_ID
2. Universal triggers
2002-06-14 12:09:37 +00:00
skywalker
a887af3646 Changes to make it compile on linux.
and work through a few issues.
2002-01-04 11:34:22 +00:00
tamlin
80f7fb6dd4 New C++ memory pool 2001-12-24 02:51:06 +00:00
skywalker
365a7fe19c Changes to compile fb2 under autoconf includes some structural changes 2001-07-29 17:42:23 +00:00
bellardo
747d13c0d5 Changes to bring FB2 to c++ on *nix. 2001-07-12 05:46:06 +00:00
tamlin
9a776a604e First steps towards a C++ conversion. 2001-05-23 13:26:42 +00:00