alexpeshkoff
7c8bacb692
Detect forced unload of plugin by OS when process is exited
2011-03-04 15:49:37 +00:00
alexpeshkoff
0a7c3fc69d
Fixed CORE-3369: first step to make it possible to specify non-default security database for specific database
2011-03-02 13:42:56 +00:00
asfernandes
97da335f60
Removed the legacy DSQL hash table module (HSHD).
2011-02-26 21:52:47 +00:00
asfernandes
2096bd7239
Refactor DSQL exceptions: nod_on_error, nod_sqlcode, nod_gdscode, nod_exception and nod_default.
2011-02-25 02:52:51 +00:00
asfernandes
f26d9a4b14
Fixed CORE-3201 - ATAN2 returns incorrect value for (0, 0).
2011-02-03 14:51:50 +00:00
alexpeshkoff
89d82bd9fc
MT safety and exceptions processing in upgradeInterface
2011-02-01 13:11:30 +00:00
asfernandes
b0f702e7bd
Another small refactor on variables in DSQL.
2011-01-31 14:47:41 +00:00
alexpeshkoff
6a2a22ec28
It was useless here
2011-01-19 17:22:19 +00:00
alexpeshkoff
86df15917b
Fixed calling conventions in interfaces - thanks to Dmitry Kovalenko
2011-01-17 14:13:57 +00:00
asfernandes
233093cee4
Misc
2011-01-16 02:16:15 +00:00
alexpeshkoff
d6fcde387b
New plugin manager. Use it for all types of plugins.
2011-01-14 17:31:40 +00:00
asfernandes
c9ec26c0c3
Feature CORE-726 - Boolean data type
2010-12-18 02:17:06 +00:00
asfernandes
9c42d4e5af
Finish the statements refactor in the engine. Get rid of jrd_nod.
2010-12-04 22:15:03 +00:00
dimitr
7eded400e8
Let's clearly distinguish between deterministic and invariant functions, they're not the same thing actually. Runtime optimization usage is to be re-considered, if necessary.
...
Warning: this includes an ODS change, please boot-build.
2010-11-13 15:03:44 +00:00
dimitr
086adbac30
Fixed the Windows build.
2010-11-11 07:41:56 +00:00
alexpeshkoff
0ab6c4abf7
Avoid throwing C++ exceptions from authentication plugins
2010-10-28 08:02:42 +00:00
alexpeshkoff
e05c1a825f
Moved some more .h-files to common from jrd as Vlad suggested
2010-10-13 10:39:52 +00:00
alexpeshkoff
c6932824f7
Full fix for CORE-3024
2010-10-13 09:15:48 +00:00
asfernandes
91384eb587
Misc
2010-10-12 17:40:27 +00:00
alexpeshkoff
2dc25a44bb
OSRI and new posix build
2010-10-12 08:02:57 +00:00
asfernandes
ad57aa29a1
Refactor CREATE/ALTER/CREATE OR ALTER/RECREATE VIEW and cleanup related to previously refactors
2010-08-02 02:22:26 +00:00
asfernandes
96cd57ba83
Better error reporting and adjustments
2010-07-29 00:36:31 +00:00
asfernandes
0b7c21172a
Refactor CREATE/ALTER/DROP/RECREATE TABLE and DROP VIEW commands
2010-07-26 02:37:57 +00:00
alexpeshkoff
d24cd9cbd7
Implemented self-registering plugins format (same plugin can be easily linked statically
...
or as dynamic library, depending upon platform requirements). Self-registering plugins
need not export any functions, instead they call fb_register_plugin() on startup.
Reworked all user management to use self-registering plugins.
Removed system table RDB$USERS. PLG$USERS is not created automatically by plugin, but
will be later (work in progress).
2010-07-23 12:04:18 +00:00
alexpeshkoff
88db8b2fbc
ODS change: made RDB$USERS system table, added virtual table SEC$USERS
2010-07-09 12:51:05 +00:00
asfernandes
f2c938d9fa
Refactor CREATE/DROP COLLATION
2010-06-26 01:52:06 +00:00
asfernandes
b36b9764ce
Misc
2010-04-16 02:31:36 +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
dimitr
ab42a23369
Corrections for SQL states.
2010-04-09 08:03:41 +00:00
asfernandes
68b5c1df6f
Cleanup
2010-04-07 16:32:12 +00:00
asfernandes
fd8a4d3b00
Small cleanup
2010-04-06 01:13:22 +00:00
alexpeshkoff
bf0c113988
Cleanup SUPERSERVER - this code is not needed in FB3
2010-03-23 11:55:09 +00:00
asfernandes
2ed85aef29
Misc
2010-03-21 23:01:30 +00:00
dimitr
8e579e0359
Commit the forgotten file, sorry.
2010-03-21 17:55:41 +00:00
asfernandes
77a2706b73
Misc
2010-03-01 02:14:36 +00:00
asfernandes
55b245bbac
Implement Claudio' suggestion of explicit message about access to private packaged routines
2010-02-25 15:56:39 +00:00
robocop
e5cd58ecbe
I hope nobody will mind if I reuse this constant for the future.
2010-02-14 10:57:30 +00:00
alexpeshkoff
43653efb47
Reserved error code for 2.5 fix
2010-02-01 14:04:05 +00:00
alexpeshkoff
55e717f810
Moved authentication code from engine to remote listener.
...
Get ready for authentication plugins.
2010-01-22 14:55:11 +00:00
dimitr
b795f91267
Misc.
2010-01-14 08:42:33 +00:00
asfernandes
9c1bab1793
Feature CORE-1385 Identity columns - in its basic form
2010-01-13 19:14:15 +00:00
asfernandes
7c47718d68
Move DYN constants to private header
2010-01-10 17:56:57 +00:00
asfernandes
be859980ea
Feature CORE-832 - Parameterized exceptions
2010-01-07 00:16:50 +00:00
asfernandes
4dc5b55f74
Misc
2010-01-04 00:43:45 +00:00
robocop
8141afe475
Put more strings into the msg db.
2010-01-03 10:46:42 +00:00
robocop
a2f34c1dbc
Put more strings into the msg db.
2010-01-02 09:42:09 +00:00
asfernandes
06a3d020b2
Misc
2010-01-01 18:45:30 +00:00
asfernandes
76ec6d6bdb
Remove the noisy of msgs.h when new messages are added
2010-01-01 18:10:35 +00:00
robocop
7d47e6217d
Set ODS8 (IB4.0) as the minimum requirement to backup a db. Establish previous enhancements (belonging to older ODS versions) as always present, then clean the code. Added two messages, too.
2010-01-01 09:53:49 +00:00
asfernandes
a5ab8a2b33
Make referencing and execution (try) of unimplemented packaged routines work correctly
2009-12-31 11:24:28 +00:00
robocop
08819b1224
Silence these two warnings for now.
2009-12-31 09:07:59 +00:00
alexpeshkoff
443f261abf
Introduce isc_dpb_version2 - format is WideTagged.
2009-12-30 15:24:16 +00:00
asfernandes
29df794a24
Fixes and completions for packages
2009-12-29 15:27:58 +00:00
robocop
bf3fbd05c3
Comment unused items.
2009-12-29 12:56: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
robocop
5d9204657c
More appropriate name.
2009-12-26 13:24:39 +00:00
asfernandes
534b8c020e
Misc
2009-12-25 19:29:58 +00:00
robocop
273ef5b87c
Tabify and style.
2009-12-25 05:18:07 +00:00
asfernandes
d3ac9ac6cc
More refactoring: name changes, accessors, consts, removed not good references (statement referencing scratch and metadata indirectly)
2009-12-23 00:57:08 +00:00
dimitr
54b9459117
Support for PSQL functions.
2009-12-21 16:48:06 +00:00
dimitr
df3d4508d0
Error codes introduced for PSQL functions.
2009-12-21 16:38:49 +00:00
dimitr
fd6c858ba7
New system fields (ODS change).
2009-12-21 16:36:39 +00:00
alexpeshkoff
0b0650370a
Fixed error reporting in nbackup
2009-12-21 11:58:29 +00:00
asfernandes
20ed875d57
Replaced linked list of dsql parameters by array
2009-12-19 18:50:38 +00:00
robocop
c5c03c06c3
Correction (worked thanks to legacy-aware code).
2009-12-19 09:03:07 +00:00
alexpeshkoff
3d7a990876
Frontported detection of missing/invalid parameter in fbsvcmgr
2009-12-18 14:15:26 +00:00
alexpeshkoff
f2753b7e86
Frontported changes to make -Direct switch of nbackup accept on/off parameter
2009-12-18 14:06:28 +00:00
robocop
30eee9c993
Move more hardcoded messages to the msg db.
2009-12-18 12:01:44 +00:00
robocop
5f7d45be9b
Make more error messages non-hardcoded.
2009-12-17 10:50:40 +00:00
alexpeshkoff
1bb19c721d
Added switch to nbackup, controlling direct access to database file
2009-12-16 17:28:52 +00:00
alexpeshkoff
c569345201
Some more changes suggested by Claudio
2009-12-16 13:40:26 +00:00
alexpeshkoff
3b95a6b5b4
Fixed an issue with gsec compatibility with previous versions
2009-12-16 11:25:50 +00:00
alexpeshkoff
2ecf08fa75
Forgotten file?
2009-12-16 11:19:46 +00:00
robocop
363ebe834b
Localization: one needed message and two messages to be used.
2009-12-16 08:12:59 +00:00
robocop
465c88570e
Make views know exactly what type of source their fields have: include a type of context and a package name in rdb$view_relations. Debugged with a small script.
...
To be reviewed & completed by Adriano.
Full rebuild, please.
2009-12-15 14:08:28 +00:00
robocop
00c5d74904
Cleanup.
2009-12-13 13:49:43 +00:00
robocop
886f385c73
Applying the vacuum cleaner to this header.
2009-12-13 10:56:15 +00:00
asfernandes
b1de816d6a
Misc
2009-12-12 20:56:12 +00:00
robocop
f1e70cd821
Do not hardcode anymore the backup versions allowed.
2009-12-10 07:24:18 +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
alexpeshkoff
66e980a1f2
Frontported fixed of bugs, found during 2.5.0.RC1 QA - incorrect message when lockdir is not accessible; broken yValve behavior when lockdir is not accessible; bad access rights on lockdir in init.d startup scripts
2009-12-08 15:02:09 +00:00
alexpeshkoff
34d79c9c3f
Fixed CORE-2728: Access Violation when trying to add an user that already exists
2009-11-30 12:10:47 +00:00
robocop
8ac7971dc2
- Firebird does not use runtime licences.
...
- Client for DOS has not been seen for more time than I care to count.
2009-11-29 08:36:02 +00:00
asfernandes
3f5aded4e3
Misc
2009-11-28 01:44:42 +00:00
alexpeshkoff
751c8f6c61
cleanup
2009-11-26 16:01:17 +00:00
robocop
b66d6d9f64
Harmless warnings, but anyway...
2009-11-25 08:32:11 +00:00
robocop
0411da9f59
Related to CORE-2759 (but doesn't fix it yet).
2009-11-20 04:53:15 +00:00
asfernandes
59a21a1f8c
Improvement CORE-2754 - Hint the user about -FIX_FSS_METADATA and -FIX_FSS_DATA when restore fail with malformed string error
2009-11-19 13:21:59 +00:00
asfernandes
c3ae6a708b
Create new message recommended by Claudio
2009-11-17 14:22:16 +00:00
alexpeshkoff
4f54fd68e8
Frontported improvement CORE-2748: allow gsec to grant RDB$ADMIN role in the security database
2009-11-13 19:00:09 +00:00
robocop
749f83a177
Fix CORE-2740.
2009-11-08 09:12:34 +00:00
robocop
d85538ec52
Upgrade the backup version to 10 for FB3.
2009-11-06 11:36:06 +00:00
hvlad
bc9ad95c82
Fixed bug CORE-2731 : Recursive EXECUTE STATEMENT works wrong
2009-11-05 22:42:46 +00:00
robocop
08a33d50cc
Unfortunately several of these are intertwined:
...
CORE-462 New option in addition to -V switch to specify a custom verbose interval
CORE-2540 Utilities need a more coherent way to show help and version
CORE-2541 Too many hardcoded messages in nbackup
CORE-2542 qli and nbackup accept arbitrary input after the first letter of an option
CORE-2543 nbackup may hide the real cause of failure
CORE-2545 Lack of several validations in gbak
CORE-2547 Utilities need to honor their minimum number of characters to recognize an option
CORE-2565 Many hardcoded messages in Trace Manager
Moving functions that don't depend on preprocessing to iutils.cpp in isql is the only alien change here.
2009-11-05 09:03:41 +00:00
verbguy
1d9a25d825
improved fix from Adriano for ibase.h woes
2009-11-04 02:11:07 +00:00
verbguy
d67ba89735
fix Sun Studio build
2009-11-03 16:00:07 +00:00
robocop
5ed1680699
Misc.
2009-11-03 07:36:20 +00:00
asfernandes
2e32ff0ed3
Fix build with a clean checkout
2009-11-02 03:01:49 +00:00
robocop
b304b96224
Misc.
2009-10-30 10:43:42 +00:00
asfernandes
2bd4e4fa63
Fix boot build and regenerate file in Linux
2009-10-24 01:55:55 +00:00
asfernandes
3fd4ee50da
Fix number conflict found by Claudio
2009-10-22 10:01:41 +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
alexpeshkoff
fbda7f245e
Fixed CORE-2439: Add FIX_FSS_DATA and FIX_FSS_METADATA into the server
2009-10-05 10:26:59 +00:00
alexpeshkoff
dbbea09f2b
Fixed CORE-2657: Ability to get any permissions (including SYSDBA) working with services
2009-10-02 16:44:00 +00:00
hvlad
e08eddc692
Missing MSVC part for CORE-2601
2009-09-11 13:10:22 +00:00
hvlad
41896eeba1
Fixed bug CORE-2252 : EXECUTE STATEMENT on EXTERNAL SOURCE does not check the status of the transaction
2009-09-02 10:46:43 +00:00
alexpeshkoff
404f2b7c0b
Avoid suspicious ctor according to Claudio's request
2009-09-01 10:36:30 +00:00
alexpeshkoff
9629eafccd
Use per-thread circular strings buffers instead common and per-attachment combination
2009-09-01 09:20:24 +00:00
asfernandes
8c0b380fac
Misc
2009-08-27 02:19:36 +00:00
alexpeshkoff
9a325bd8b5
Avoid need in StringsBuffer when processing serious system errors
2009-08-26 13:08:54 +00:00
dimitr
4c459ebf1b
Fixed CORE-2514: When there is not enough space on the temp drive an error about CreateFile is reported.
...
This also fixes CORE-2321: query fails with message 'operating system directive write failed. Invalid argument.
2009-08-21 08:36:37 +00:00
robocop
d9af0e265b
Fix strange indentation.
2009-08-20 06:12:17 +00:00
dimitr
4262ee12fc
Warnings.
2009-08-19 18:00:13 +00:00
hvlad
440d3f9aee
Updated generated headers
2009-08-08 12:42:32 +00:00
robocop
13a05476e7
CORE-2582 Infinity from UDF should be trapped by the engine (and NaN as well).
2009-08-07 07:27:33 +00:00
dimitr
db07da4f28
Need sizeof(size_t) to correctly define format in common.h
2009-08-04 10:39:57 +00:00
asfernandes
28a7e4c037
Misc
2009-07-24 02:15:07 +00:00
alexpeshkoff
440fad4858
HPUX port by Bill Oliver and Jerry Adair
2009-07-23 08:58:26 +00:00
asfernandes
6377356940
Misc
2009-07-23 00:56:28 +00:00
paulbeach
00af06a82f
And the long march to making Firebird build and run on MacOSX continues
2009-07-21 13:59:45 +00:00
alexpeshkoff
4506ae61bc
Solaris 9 patch from SAS
2009-07-21 08:58:28 +00:00
robocop
e60f718dfb
The original message about FP overflow was not very useful for built-in functions (unlike other msgs, it didn't identify the cause). Made a special message for it. Also, one alice (gfix) help item was put erroneously by IB engineers in system_errors.sql; delete it.
2009-07-17 17:13:28 +00:00
robocop
f10e1b72eb
Style.
2009-06-27 06:23:36 +00:00
robocop
ce9a9baf08
Validations (do not crash).
2009-06-21 11:16:24 +00:00
robocop
82d2c6377c
New messages to fix CORE-2505: beware of built-in functions returning NaN and Inf. Code will follow in one day.
2009-06-14 12:22:59 +00:00
asfernandes
cb40c9f8ba
Apply Alex/Bill/Jerry/me patch re. portability in redefinition of operator new
2009-06-13 16:36:10 +00:00
robocop
c7906977d9
String windows.h even more and add synonym for _isnan (without underscore).
2009-06-12 08:22:54 +00:00
asfernandes
c9261a4e84
Misc
2009-06-06 18:38:11 +00:00
asfernandes
83820dc0d9
Fixed CORE-2499 - Implementation limit of DISTINCT items are not enforced, causing generation of incorrect BLR
2009-06-06 02:21:23 +00:00
dimitr
6d2711ff7b
Added timeouts to the network event listener code.
...
Fixed wrong usage of SO_REUSEADDR on Windows.
2009-06-04 11:06:34 +00:00
dimitr
d8dede8e11
SQLSTATE adjustments.
2009-05-13 07:40:57 +00:00
robocop
a317a08aa6
Undefine definitions used in other platforms (just in case).
2009-05-07 15:52:45 +00:00
robocop
e5b226f7a7
More unused params; style.
2009-05-02 13:00:09 +00:00
alexpeshkoff
9b0950da7a
Fixed CORE-2306: fbserver terminated abnormally when thread start failed
2009-04-24 15:51:40 +00:00
alexpeshkoff
cd54e5533e
Fixed CORE-2437: Buffer overflow on client when delivering events.
2009-04-17 13:36:34 +00:00
robocop
dea57e9099
Get rid of SCO.
2009-04-15 06:29:00 +00:00
robocop
44bd3c0f45
Do not hide some important warnings.
2009-03-06 12:10:50 +00:00
asfernandes
2d40bd2425
Remove not used and non-simmetric platform specific define
2009-03-05 01:01:57 +00:00
aafemt
6f2d3a5acc
Shared library extension on Windows is "dll"
2009-03-01 16:37:08 +00:00
asfernandes
517f426392
Misc
2009-02-15 18:05:38 +00:00
alexpeshkoff
0d99a0d6c4
Implemented CORE-2322: added gsec and services support to control SYSDBA-like access of windows domain administrators to security database
2009-02-13 13:05:50 +00:00
asfernandes
0038863661
Misc
2009-02-08 17:23:00 +00:00
robocop
7be6dc9a47
This file was challenging all our typical indenting practices.
2009-02-08 09:09:20 +00:00
asfernandes
1105286dee
Misc
2009-02-07 15:20:34 +00:00
dimitr
12931dc790
Committed the forgotten file.
2009-02-06 09:01:23 +00:00
dimitr
bf22c99788
1) Declare the input of put_vax_short() to be signed instead of unsigned.
...
2) Add put_vax_int64() to deal with 64-bit values.
2009-02-05 20:09:53 +00:00
dimitr
b2a8a619e3
Move the int64 typedefs from common.h into fb_types.h.
...
This brings the consistency with other FB types and allows to use int64 values without including common.h.
2009-02-05 20:08:33 +00:00
hvlad
3fa1da548d
MSVC have <io.h>
2009-02-02 13:54:37 +00:00
robocop
297055ab15
Proposed solution for CORE-2245 in HEAD:
...
- create recovery routine for corrupt backups from FB2.0 and FB2.1.
- create new function to store text with length between 256 and 64K bytes.
- other related adjustments.
2009-02-02 10:24:51 +00:00
hvlad
115602ff06
Trace services support
2009-02-01 22:10:12 +00:00