asfernandes
78bf2fc824
Cleanup
2009-12-17 23:25:11 +00:00
robocop
5cfc9dc78b
CORE-2787: Make rdb$system_flag not null.
...
Please do a full rebuild.
2009-12-03 12:52:10 +00:00
asfernandes
9ec1c36a55
Cleanup
2009-11-28 19:39:23 +00:00
asfernandes
d38d8dccbd
Some changes aiming a future replacement of the metadata character set
2009-11-28 16:39:54 +00:00
asfernandes
3f5aded4e3
Misc
2009-11-28 01:44:42 +00:00
robocop
9dc71e817d
Cleanup.
2009-11-27 06:59:21 +00:00
robocop
6b58626584
Cleanup.
2009-11-27 06:57:17 +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
804ad6048a
Restrict us to ODS11 and ODS12 until the dust settles down.
2009-11-24 11:42:56 +00:00
robocop
9ce4040042
Replace the now obsolete dbb_minor_original by dbb_minor_version.
2009-11-18 12:02:00 +00:00
robocop
ee3c1043cb
Style.
2009-11-08 09:13:35 +00:00
dimitr
b6ece14c55
Cleanup the unsused logic related to in-place ODS upgrades.
...
Simplified the version-specific column handling.
2009-10-22 14:50:23 +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
dimitr
8e36474f76
More explicit (and shorter) life-time for sort blocks. Now they belong to either requests (user sorts) or transactions (index sorts).
...
This also resolves CORE-2477: mon$memory_usage: Sorting memory should be reported as owned by the statement.
2009-09-04 06:11:55 +00:00
robocop
81e2c10f0d
Moved DEFAULT_CLASS to constants.h;
...
a Buil | Clean Solution + F7 may be needed in VC (otherwise linker errors appear).
2009-06-26 11:18:45 +00:00
robocop
6406e45337
Shut up compiler warnings (unreferenced vars, uninitialized vars, compile-time conditional code, etc.)
2009-01-02 06:36:12 +00:00
asfernandes
5311dd5a5e
Misc
2008-12-20 19:57:43 +00:00
robocop
95292d1731
Style.
2008-12-20 08:12:19 +00:00
dimitr
5e41ad36c8
Fixed CORE-2231: Bugcheck 179 when attempting to read from the table RDB$TRIGGER_MESSAGES in ODS10.
...
Thanks to Vlad for the test case and the proposed fix.
2008-12-09 08:09:38 +00:00
alexpeshkoff
f242d71025
AIX port
2008-11-13 09:42:13 +00:00
dimitr
609f466ad3
1) Fixed the layering, as dbb_lock shouldn't belong to PIO.
...
2) Passed tdbb to some engine routines that were dealing with TLS.
3) Got rid of fil_length and some minor cleanup.
2008-07-09 08:40:31 +00:00
dimitr
f735ff4502
Fixed CORE-1963: Possible server crash on commit when granting/revoking privileges from multiple connections simultaneously.
2008-06-27 08:44:40 +00:00
robocop
5777ff76fa
More VC6 cleanup.
2008-05-14 13:11:41 +00:00
dimitr
2c7acdef79
Cleanup of the disabled/unused code.
2008-05-07 10:39:24 +00:00
robocop
c376d70cd9
Make sure rdb$system_flag is written (it's still nullable field).
2008-05-06 09:03:33 +00:00
hvlad
6ee4242552
Fixed bug CORE-1841 : If some VIEW used derived tables and long table names\aliases, It is possible to overflow RDB$VIEW_RELATIONS.RDB$CONTEXT_NAME.
...
Attention : ODS changed !
2008-04-29 16:39:17 +00:00
robocop
f5db14b277
Pass some tdbb's as arguments.
2008-03-18 13:04:05 +00:00
robocop
4cbc8d6a2f
Misc.
2008-02-21 13:11:32 +00:00
dimitr
b745ca1f93
Correction for my prior commit.
2008-02-20 15:11:35 +00:00
dimitr
9fa724a658
Let's create varchar columns with the length defined in fields.h. No more weird 253 and 78 bytes.
...
This change requires everybody to boot-build and recreate already existing ODS 11.2 databases.
2008-02-20 13:17:54 +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
e08c5da397
The merge continued.
2008-01-16 09:07:24 +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
asfernandes
93df6a42f6
Fixed:
...
CORE-1178 - Standarize ES_ES_CI_AI collation
CORE-1179 - "CH" and "LL" are not separate spanish alphabet letters since 1994
2007-04-06 02:10:10 +00:00
dimitr
3cf3bbcb27
Allow the monitoring feature for Dialect 1 databases.
2007-02-12 10:01:45 +00:00
asfernandes
d168869475
Added RDB$NULL_FLAG and RDB$PARAMETER_MECHANISM to RDB$PROCEDURE_PARAMETERS
2006-11-24 00:25:13 +00:00
hvlad
58d381edd7
1. Remove blr_src_info code as it is prevents database downgrade from ODS 11.1
...
2. Put debug information (mapping between blr offset and source line\column and names of local variables) into new blob field RDB$DEBUG_INFO
This is first step to implement native SQL debugger i believe
2006-10-30 20:58:06 +00:00
asfernandes
45346169c5
1) UNICODE_CI - UNICODE case-insensitive collation for UTF8
...
2) Locale specific attribute for UNICODE collations
3) Remove code duplication in implementation of UNICODE collations for fbintl
4) Remove ugly TEXTTYPE type
2006-09-17 20:06:36 +00:00
asfernandes
b7af27215e
Allow usage of domains in PSQL (with TYPE OF syntax)
2006-08-19 02:52:39 +00:00
robocop
64f6eb42a1
Misc.
2006-07-21 01:35:17 +00:00
dimitr
181bb79351
A few changed based on Adriano's suggestions.
2006-07-18 07:08:52 +00:00
asfernandes
ea0435247a
Misc
2006-07-18 02:45:35 +00:00
dimitr
c68587fe66
1. Virtual tables
...
2. ODS 11.1, procedure type and relation type
2006-07-17 17:44:18 +00:00
asfernandes
4f0370df3e
Misc
2006-06-03 01:01:51 +00:00
robocop
c542ca823e
Experimental change: I thought this flaw came from IB4.0, but Paul Beach found it was noticed already in IB3.3. Stops users (except sysdba and owner) from destroying information in rdb$pages and rdb$formats, it's the death knell for the database.
2006-06-02 09:20:52 +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
ebe0a75026
Simplification.
2006-05-04 00:02:58 +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
dimitr
e4733278ab
An attempt to fix the regression with allowed updates of index-constrained columns.
...
No guarantees that it won't cause some MET/DFW conflicts, but I'm out of better ideas.
2005-12-08 13:52:11 +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
dimitr
3ff4b39ef2
Fixed corrupted IDs of system generators caused by my changes re. system triggers loading.
2005-11-25 14:23:15 +00:00
dimitr
5d34721f04
Let's load real system triggers from the database, not the ones hardcoded in trigs.h.
...
Otherwise weird things happen when we access a database with older ODS.
2005-10-13 08:11:37 +00:00
asfernandes
2fde15281b
Only initialize metadata BLOB charset for text BLOBs
2005-06-10 02:01:39 +00:00
robocop
b8d1f00f94
- Corrections and changes to Adriano's commit, subject to his inspection.
...
- Solved an endless loop with trim and zero-length trim characters, etc.
- Some places are signaled with FB_COMPILER_MESSAGE for prompt attention.
2005-06-06 08:30:03 +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
robocop
107e7347b0
Leave room to register the example UDF's with the new macros.
2004-11-27 05:44:53 +00:00
robocop
9e07a894af
Bad comment caused by copy/paste.
2004-11-23 05:34:07 +00:00
skidder
9507cf9714
Context variables support
2004-11-22 20:22:03 +00:00
hvlad
3592c54752
Enlarge exception messages from 80 to 1023 bytes
2004-11-17 12:19:18 +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
robocop
a159bd4281
Take repeating code to a small function
2004-08-29 07:37:17 +00:00
dimitr
4dfeca45b6
Restored ODS compatibility after new fields were added to RDB$ROLES.
2004-08-28 08:20:43 +00:00
robocop
10756f80ca
After writing to Ann, I confirmed this GDML statement needs to be compiled and freed only once, not in each pass of the loop
2004-08-26 11:03:31 +00:00
robocop
421246fbe9
1.- Get rid of redundant cast to jrd_req*
...
2.- Post example code (disabled) to register a built-in UDF.
2004-08-21 09:39:37 +00:00
alexpeshkoff
31039a254e
next step preparing to allocate auto objects memory from appropriate pool
2004-08-16 12:28:43 +00:00
skidder
0360af0308
Do not write rubbish per-segment selectivity into the database. Valgrind reported it as uninitialized value passed to write(buf) syscall
2004-08-12 00:31:29 +00:00
robocop
682b582764
USHORT -> bool
2004-07-07 03:47:12 +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
f8f159dc9e
Changing some variables that have a trailing underscore to allow conflict with C++ keywords or engine structs.
2004-05-31 02:34:35 +00:00
brodsom
f4ca41fa3d
-Replace *_thread_data macros with inline functions (jrd step 1)
2004-05-22 14:28:54 +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
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
2c0ab256cf
Removing duplicated definitions between
...
ibase.h and blob_filter.h
ibase.h and constants.h
2004-04-29 17:48:39 +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
1e6c7b18e9
fixed problem with loop in includes
2004-03-22 11:38:23 +00:00
alexpeshkoff
7007d6f2a4
1. introduced Jrd and Ods namespaces
...
2. cleanup of blk* request conversions
3. fixed memory allocation in Execute Statement
2004-03-20 14:57:40 +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
robocop
2ab1f94dd2
Cleanup
...
Some minor corrections
Second step to rename
2004-03-11 05:04:26 +00:00
robocop
e6187cecd2
Cleanup
...
Some bug fixes
Style
2004-03-07 07:58:55 +00:00
robocop
2fa67d46bc
Cleanup
...
Reduce reinterpret and C casts
Fix isql so it can show all predefined blob types in readable form.
2004-02-24 05:34:44 +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
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
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
robocop
16cbc204df
Cleanup
2003-12-31 05:36:12 +00:00
robocop
d020ea5ca1
ping-pong cleanup: change one place and you have to change several others
2003-12-11 10:33:30 +00:00
robocop
84062732d8
More cleanup
2003-12-03 08:19:24 +00:00
dimitr
48e66184f8
Added new field to RDB$INDEX_SEGMENTS
2003-11-30 21:05:51 +00:00
brodsom
c5253ae8a5
-Replace gds__ constants with isc_ contants
...
-Replace codes.h with iberror.h (or remove)
-Move gds__vax_integer and gds__event_block* to alt.cpp and isc_ to gds.cpp
-Use ISC_QUAD internally
-Use isc_vax_integer internally
2003-11-11 12:19:20 +00:00
brodsom
4285bc623c
Removing gdsold.h and gds.h
2003-11-08 16:40:17 +00:00
brodsom
ff070a16a8
Replacing assert with fb_assert
2003-11-03 23:59:24 +00:00
robocop
9ead7a37b4
const correctness
...
placed some variables in context
fixed some function signatures
closed a few possible buffer overruns
sorry to the platform maintainers, I can't verify what I did for non-Win32 builds
2003-10-29 10:53:47 +00:00