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

301 Commits

Author SHA1 Message Date
alexpeshkoff
e05c1a825f Moved some more .h-files to common from jrd as Vlad suggested 2010-10-13 10:39:52 +00:00
alexpeshkoff
83d6a2f88c Restored a lot of changes, rolled back by me unintentionally 2010-10-12 11:36:51 +00:00
alexpeshkoff
2dc25a44bb OSRI and new posix build 2010-10-12 08:02:57 +00:00
dimitr
34dd100554 Fixed CORE-3137: Partial rollback is possible for a selectable procedure modifying data. 2010-09-18 06:52:46 +00:00
asfernandes
96cd57ba83 Better error reporting and adjustments 2010-07-29 00:36:31 +00:00
asfernandes
36f092fe0e Improvement CORE-3085 - Add clause ALTER DOMAIN <name> [NOT] NULL 2010-07-28 16:14:20 +00:00
dimitr
60763936ac Fixed the second part of the problem described in CORE-2933: Very slow execution of a script that creates a lot of metadata. 2010-05-17 09:58:45 +00:00
asfernandes
d6e4b53865 Misc 2010-05-08 02:25:58 +00:00
skidder
c84d62d82e Fix CORE-2988. Concurrent transaction number not reported if lock timeout occurs 2010-05-04 17:29:44 +00:00
asfernandes
4763533669 Refactor jrd_req into JrdStatement (shared part) and jrd_req (execution of a statement).
Fixed some bugs found in the way.
2010-04-18 22:19:11 +00:00
alexpeshkoff
88b8a40a04 1. Cleaned up most of SUPERSERVER usage.
SUPERSERVER has 4 different meanings in our code:
- this is milticlient server (replaced with Config::getMultiClientServer())
- use shared data cache (replaced with Config::getSharedCache())
- use shared metadata cache (replaced with macro SHARED_METADATA_CACHE)
- database are NOT shared between processes (replaced with getSharedDatabase())

2. Use fb_smp_server as both superclassic and classic binary on posix
(xinetd autodecection is done).

3. Small posix build cleanup.
2010-04-15 14:40:27 +00:00
asfernandes
e1ba33a2ae Fix problem of the system transaction storing pointer to random or already deallocated attachment. Full build (or kind of) required. 2010-04-02 21:48:15 +00:00
hvlad
521f7a5cbc Fixed bug CORE-2879 : Sweep could raise error : page 0 is of wrong type (expected 6, found 1) 2010-02-22 11:09:59 +00:00
robocop
3b5a0fdae5 The way AccessItem instances were ordered was a hack that sooner or later would fail when adding more object types (that now have ACLs but we still don't enfornce them). Further, comparing numbers is faster than comparing strings. 2010-02-13 08:31:16 +00:00
dimitr
4c4a77a4fe Refactored SQZ into a class. Fixed all the SCHAR* pointers to be UCHAR* + appropriate cleanup.
Make the interface and internals friendly to any byte sequence, even the one longer than 32K.
2010-02-12 12:53:06 +00:00
robocop
656dcdb1a5 Got rid of some casts. Please double check it as it's critical for data. The only trick seems to be taking the value of a byte as a signed char, so it can become negative. 2010-02-12 11:29:51 +00:00
robocop
753f914fb1 CORE-2858: Possible memory trashing when raising some exceptions to signal failed security checks. Thanks Dmitry. 2010-02-12 11:22:22 +00:00
robocop
1d87d749f0 Misc. 2010-01-26 08:20:27 +00:00
asfernandes
2faab16698 Misc 2010-01-21 02:51:32 +00:00
hvlad
258f322f67 Avoid possible deadlock in VIO. 2010-01-19 18:41:44 +00:00
hvlad
abdfa188d5 Preserve record's flags when gathering record from fragments. Its used in prepare_update() to check if primary record was backed out. 2010-01-19 18:38:52 +00:00
asfernandes
e8cc188227 Store the view context type when it doesn't came from backup and simplify the code. Still problems altering procedures used in views. 2009-12-28 15:31:09 +00:00
asfernandes
d8c99a9be2 1) Make procedures and functions member of the same hierarchy (Routine class)
2) Some completion for external functions
2009-12-27 22:05:22 +00:00
asfernandes
534b8c020e Misc 2009-12-25 19:29:58 +00:00
dimitr
ea23c03133 PSQL functions (security). 2009-12-25 12:58:06 +00:00
dimitr
cd6f04ffb2 Corrections. 2009-12-25 10:49:53 +00:00
dimitr
cb4d798aca Corrections. 2009-12-25 09:50:35 +00:00
robocop
f3091483ca Misc. 2009-12-25 04:41:10 +00:00
dimitr
33155c65b7 An alternative way to assign auto-generated metadata IDs while restoring a database. It doesn't require system triggers.
If nobody objects, I will migrate procedure/exception/generator IDs to this approach and then redo my system triggers cleanup.
2009-12-24 15:41:39 +00:00
dimitr
6e1f8db753 Metadata cache support for PSQL functions. 2009-12-24 14:15:21 +00:00
dimitr
debe65bcfb Support for PSQL functions (other JRD changes). Still work in progress. 2009-12-21 17:43:01 +00:00
robocop
00c5d74904 Cleanup. 2009-12-13 13:49:43 +00:00
dimitr
11495a55fb Refactored the whole RSB stuff into classes. They're inside the /recsrc sub-directory now.
Fixed the layering for WITH LOCK and (partially) ANY/ALL predicates.
Cleaned up the outdated code that never worked (mapping DISTINCT to an index, some VMS remainings).
Wiped out a lot of the pre-ODS11 optimizer logic. Some minor adjustments there.
Re-implemented the full outer join from scratch. This resolves CORE-2678 (full outer join cannot use available indices).
Resolved CORE-2796: DB_KEY is always zero for external tables.
Implemented the core part of the scrollable PSQL cursors. Implementation is still incomplete, but ready for testing.
Some other changes I don't recall at the moment ;-)

WARNING! The engine may be unstable. Please email me about any issues found.
2009-12-09 18:45:44 +00:00
robocop
f955568fc9 The architect created ODS12 and saw it was good, then he said "thy shall be the only one among your race", dropped the older ones and sent the developers to the four corners of the cyberspace to convert the masses to ODS12. 2009-11-27 02:33:40 +00:00
robocop
2ffcc8b2ce Style. 2009-11-25 04:06:48 +00:00
asfernandes
13e1546a70 Misc 2009-11-21 00:10:16 +00:00
robocop
9ce4040042 Replace the now obsolete dbb_minor_original by dbb_minor_version. 2009-11-18 12:02:00 +00:00
robocop
1386adcf90 Style. 2009-11-16 08:06:31 +00:00
asfernandes
79caf4e326 Improve efficiency and error reporting of CORE-1180 2009-11-11 15:12:56 +00:00
dimitr
e6909de7f7 Wipe out the SCROLLABLE_CURSORS code + minor cleanup.
Also, surfaced scrollability for PSQL cursors (without internal support yet).
2009-10-31 06:25:01 +00:00
asfernandes
a52967acfb Misc 2009-10-29 14:39:50 +00:00
asfernandes
ed0e0daeb3 - External Engines implementation.
- Plugins API.

- Feature CORE-2700 - UDR (User Defined Routines) Engine - C++ API supporting functions, triggers and stored procedures.
- Feature CORE-2470 - Support for alternate format of strings literals.
- Feature CORE-2310 - DDL triggers.
- Feature CORE-2312 - PSQL Packages.
- Feature CORE-1209 - CONTINUE statement.
- Feature CORE-1180 - DDL syntax to change (not) nullable state of columns.
- Feature CORE-2090 - Support OVER () clause with current aggregate functions.

- Fixed CORE-2699 - Common table expression context could be used with parameters.

- Introduce ODS 12.0.

- Work in progress in type-safe parser.
- Refactor some DDL commands (procedures and triggers) from DYN to DdlNodes.
- Refactor virtual tables to use a class hierarchy instead of namespaces. This is basic thing, not based on the changes done in Vulcan. Window functions is based on this work.
- Refactor COMMENT ON and DROP FUNCTION from DYN to DdlNodes. COMMENT ON do not use GDML anymore, it uses DSQL with PreparedStatement class.
- Refactor EXECUTE BLOCK to StmtNodes.
- Refactor the IUDF to SysFunctions. That eliminates RDB$GET_CONTEXT and RDB$SET_CONTEXT from RDB$FUNCTIONS.
2009-10-21 00:42:38 +00:00
asfernandes
90dfb9a411 Misc 2009-09-30 01:10:11 +00:00
alexpeshkoff
b19dacee16 Ported fix for CORE-2634: Performance regression when restoring database with big metadata 2009-09-29 10:35:16 +00:00
robocop
17cefa486e Comments. 2009-08-21 08:54:56 +00:00
robocop
bb83e70cfe Isolate even more the scrollable cursors-related code. 2009-06-22 08:45:38 +00:00
asfernandes
26c1892310 Misc 2009-06-20 18:46:59 +00:00
hvlad
e0a9bd88d9 Initialize variables before it could be used.
GCC complains about potential use of not initialized variables : if exception occurs "goto gc_exit" will bypass initialization.
2009-06-19 13:34:06 +00:00
robocop
3c65def766 - Better input type for SQZ_decompress plus a bit of style.
- Txn state is int.
- Some internal data is better handled as plain int.
2009-06-14 12:19:32 +00:00
robocop
ad1621c0e5 Style. 2009-06-13 05:40:47 +00:00