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

227 Commits

Author SHA1 Message Date
alexpeshkoff
d6fcde387b New plugin manager. Use it for all types of plugins. 2011-01-14 17:31:40 +00:00
hvlad
f955808a51 Frontport better fix for bug CORE-3266 : Race condition between async service detach request and running user trace service 2010-12-17 22:32:35 +00:00
asfernandes
9c42d4e5af Finish the statements refactor in the engine. Get rid of jrd_nod. 2010-12-04 22:15:03 +00:00
asfernandes
a3064848d6 Make ExprNodes and RecordSourceNodes reference others directly instead of via jrd_nod.
Store ValueExprNodes instead of jrd_nod in the metadata cache.
Make RecordSourceNode child of ExprNode as they share most operations.
Get rid of the JRD visitors in favor of direct calls.
Convert assignments statement lists created inside expressions to separate source and targets ValuesExprNodes.
2010-11-21 03:47:29 +00:00
asfernandes
4dea3a42a1 Remove dependency of jrd_nod in ExprNode 2010-11-14 22:31:42 +00:00
asfernandes
2b6106938e Refactor variables 2010-11-02 17:05:01 +00:00
asfernandes
3317eeeebc Refactor literal values. 2010-10-24 00:26:00 +00:00
asfernandes
16ff0c51ce Refactor NULL expression 2010-10-22 15:00:22 +00:00
alexpeshkoff
e05c1a825f Moved some more .h-files to common from jrd as Vlad suggested 2010-10-13 10:39:52 +00:00
asfernandes
91384eb587 Misc 2010-10-12 17:40:27 +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
asfernandes
4d00fec2d6 Refactor parameters and GEN_ID. 2010-10-09 01:57:37 +00:00
asfernandes
dadc0f560c Const correction for EVL, EXE and they subsystems. Adjustments to CMP and OPT. 2010-08-09 15:48:51 +00:00
asfernandes
5baf890a21 Misc 2010-06-26 01:18:53 +00:00
alexpeshkoff
6cbefa1f46 Introduced class SharedMemory - base class for everything, using IPC. Related to CORE-3035. 2010-06-25 11:55:11 +00:00
alexpeshkoff
b6c0bbcd41 frontported fix for CORE-3021: Segfault in DEV_BUILD 2010-06-17 07:34:15 +00:00
asfernandes
3940feef1f Port from CVS Vlad's fixes for CORE-3015, CORE-3016 and CORE-3017 2010-06-05 00:48:06 +00:00
asfernandes
e37d097240 Misc 2010-05-22 02:00:45 +00:00
hvlad
ee2be8aca8 Improvement CORE-3008 : Add attachment's CHARACTER SET name into corresponding trace records 2010-05-19 16:25:50 +00:00
hvlad
335e3ad769 Fixed bug CORE-2981 : Error in Trace plugin (use local symbols in query) 2010-05-19 07:33:15 +00:00
alexpeshkoff
965b851b77 Fixed CORE-2984: gbak -v srv:db stdout creates a broken backup 2010-05-06 13:42:20 +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
asfernandes
3387c9c288 Move impure area and rpbs to their own arrays 2010-04-09 15:43:48 +00:00
asfernandes
5ac2130415 Cleanup - switch from pointer arithmetics to sane way to get impure places 2010-04-05 21:20:08 +00:00
dimitr
e743545884 Misc. 2010-03-21 13:31:47 +00:00
asfernandes
9463ffe238 Misc 2010-03-08 01:21:24 +00:00
asfernandes
6aaede8bd3 Fixed CORE-2898 - CHAR_TO_UUID and UUID_TO_CHAR works different in big/little endian architectures 2010-03-05 01:18:55 +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
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
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
asfernandes
8968888820 Getters and setters for DsqlCompiledStatement and consts 2009-12-22 15:36:10 +00:00
asfernandes
488eb40fe0 Refactor DSQL, continuing the work I started in 2.5:
- Renamed CompiledStatement to DsqlCompilerScratch and removed inheritance to dsql_req.
- Introduced DsqlCompilerStatement, moving things from dsql_req - not completelly shareable yet.
- Make dsql_req reference a DsqlCompilerStatement. DsqlCompilerScratch may be discarded in the future.
- Replaced AlterCharSetNode usage by PreparedStatement for the default collation in database creation.
- Changed METD API.
2009-12-20 21:01:10 +00:00
asfernandes
20ed875d57 Replaced linked list of dsql parameters by array 2009-12-19 18:50:38 +00:00
alexpeshkoff
4f249d5269 Frontported - fixed delivery of status vector from service thread 2009-12-18 12:42:26 +00:00
asfernandes
b137cdfd80 Misc 2009-12-14 23:55:56 +00:00
alexpeshkoff
cf3ef42133 Fixed CORE-2807: Problem with tracing on linux 2009-12-14 14:26:22 +00:00
asfernandes
e99a07bffd Remove usage of tdbb (and tdbb->tdbb_status_vector) in the lock manager 2009-12-06 01:34:57 +00:00
asfernandes
7d52a84520 Misc 2009-12-02 00:35:55 +00:00
hvlad
eca2c62138 Fixed bug CORE-2781 : AV in fbtracemgr when command line swithes set wrongly 2009-12-01 14:45:20 +00:00
robocop
9728f53928 Misc. 2009-11-30 09:23:02 +00:00
hvlad
78fb02143f Implement improvements CORE-2773 : Let "Start trace session" service report ID of newly created trace session
and CORE-2774 : Let "Start trace session" service report if there was no trace plugin's loaded by the engine
2009-11-30 09:13:21 +00:00
asfernandes
aa254c0e64 Misc 2009-11-16 01:20:35 +00:00
asfernandes
d9ce9ca48f Fully deprecate isc_ddl. 2009-11-15 00:38:12 +00:00
asfernandes
f2cd6b7ec2 Misc 2009-11-12 01:38:48 +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
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
dbbea09f2b Fixed CORE-2657: Ability to get any permissions (including SYSDBA) working with services 2009-10-02 16:44:00 +00:00
hvlad
02b9ac8fd8 No need to report full path of the failed traced plugin module as we load it from only one and well known location 2009-10-02 13:24:21 +00:00
asfernandes
eb059b8403 Misc 2009-10-02 02:17:36 +00:00
hvlad
96b5309e03 Remove double quotes around value of AuditTraceConfigFile setting, if present 2009-10-01 09:14:26 +00:00
robocop
2c3eb534e0 - Fix compilation problem after Adriano's volatile.
- Misc.
2009-09-24 06:29:50 +00:00
asfernandes
e2e6c7765c Another necessary volatile 2009-09-24 02:10:46 +00:00
hvlad
deb6f181d5 Better error diagnostics for trace configuration. 2009-09-23 22:10:24 +00:00
alexpeshkoff
60a115efc2 Fixed CORE-2601: fine tuning of the installation directories does not work in configure 2009-09-11 10:49:46 +00:00
robocop
98a5f2e6a4 Misc. 2009-09-03 11:17:46 +00:00
skidder
aca5a83a46 Fixed CORE-2609: Update support for Windows 98/ME and NT4.0 2009-08-30 19:00:46 +00:00
verbguy
1cbf929ed4 HP-UX IA-64 warnings, type qualifier is meaningless 2009-08-27 20:15:44 +00:00
asfernandes
09b6e1b26b Misc 2009-08-09 22:21:31 +00:00
hvlad
b78925cf86 Improvement CORE-2588 : Allow to run engine instances in different Windows sessions without conflics on trace shared memory 2009-08-08 13:12:10 +00:00
asfernandes
4171c16988 Some things discussed with Dmitry and Claudio - rename the new function to fb_print_blr, use ULONG parameter for blr_length and return int 2009-08-03 15:52:48 +00:00
asfernandes
4759973045 Fixed CORE-2576 - Server may crash parsing wrong or truncated BLR
Full rebuild required - CMP_compile2 prototype changed
2009-08-02 04:10:07 +00:00
hvlad
57a5d5f842 Correct a typo, noted by Claudio. 2009-07-20 12:59:16 +00:00
robocop
5e6ae73158 Typo :-) 2009-07-19 16:00:59 +00:00
hvlad
8e28e2689e Update usage text to include required connection parameters 2009-07-19 13:55:19 +00:00
robocop
89d81e1933 Change minimal option length from S[SUSPEND] to SU[SPEND] in trace manager with Vlad's agreement. 2009-07-12 12:39:45 +00:00
robocop
ba89580753 CORE 2540: Utilities need a more coherent way to show help and version
Now all utilities react to -z for version and -? for help (qli was left for another time)
CORE-2541: Too many hardcoded messages in nbackup (done partially)
2009-07-07 10:25:50 +00:00
robocop
da99075cbb Delete debris of copy-paste from gbak. :-) 2009-07-06 07:32:05 +00:00
robocop
6f98842365 Misc. 2009-07-06 07:29:52 +00:00
robocop
fb51b65b4a Misc. 2009-06-25 11:34:00 +00:00
asfernandes
097b0ca2c2 Misc 2009-06-25 02:29:13 +00:00
hvlad
9ba34ee2cc New feature 2524 : Command line utility to work with Trace Service
Source code
2009-06-24 13:05:51 +00:00
robocop
6bfacad413 CORE-2509. Took the opportunity to fix several data types. 2009-06-18 12:07:07 +00:00
hvlad
78aeb9f520 Use unsigned char in ntrace.h where appropriate, as Claudio suggest 2009-06-08 14:59:58 +00:00
robocop
913ded5189 in_sw_tab_t data member in_sw_state is bool. 2009-06-07 10:13:57 +00:00
robocop
2e3ce0d23d Misc. 2009-06-07 09:49:58 +00:00
hvlad
1887871770 Trace files is potentially shared between processes. Place its in lock folder as it should have correct access rights set. 2009-05-28 09:49:46 +00:00
alexpeshkoff
b62e4f1c28 Renamed function to better match it's tasks 2009-05-25 11:31:38 +00:00
alexpeshkoff
91134ab0d0 Make engine create lock files in /tmp/firebird 2009-05-22 13:47:27 +00:00
alexpeshkoff
86f3176307 Fixed CORE-2467: security risk in 2.5 beta1 2009-05-19 14:33:36 +00:00
robocop
66b1227b22 Unused params, some formatting, cleanup. 2009-05-01 17:21:36 +00:00
asfernandes
f6f364da49 Trim trailling spaces 2009-04-04 16:39:31 +00:00
robocop
5acf561eb6 Get rid of some typedefs. 2009-04-02 08:53:25 +00:00
hvlad
709ea47530 Split long error message on two lines. Misc. 2009-03-26 22:29:19 +00:00
alexpeshkoff
8c507dbb45 Fixed a number of gcc warnings: class has virtual functions but non-virtual destructor 2009-03-05 17:01:50 +00:00
alexpeshkoff
2a8603af7d Formally this fixes gcc warning - no virtual dtor in class with virtual functions.
But this required serious reworking of InstanceControl and GlobalPtr<> classes.
GlobalPtr<> should not be directly derived from class with virtual functions -
virtual table for it's instances may become invalid in the moment,
when cleanup is needed. Therefore indirect link via InstanceList and
InstanceLink is established instead. This required also a little changes in
a way how InstanceControl is used. GlobalPtr<> usage is not changed.
2009-03-04 10:26:16 +00:00
aafemt
f28366aa03 Rollback till better fix for Windows loader problem 2009-03-02 10:27:35 +00:00
aafemt
42862bb779 Only shared libraries can have plugins inside 2009-03-01 16:38:53 +00:00
alexpeshkoff
0346cf6a83 Fixed a number of problems with file ownership and access rights on unix 2009-02-20 16:18:12 +00:00
asfernandes
f0de59cde9 Misc 2009-02-13 21:08:56 +00:00
robocop
6612f1b08c Misc. 2009-02-13 07:48:28 +00:00
hvlad
22107f0ba3 Suspend trace session when log is full despite of log reader [in]activity. 2009-02-11 15:24:12 +00:00
hvlad
90984234ec Refactoring. Make getStorage static method. 2009-02-11 15:21:31 +00:00
hvlad
44ffbdb145 Avod assertion 2009-02-11 15:20:14 +00:00
hvlad
17b13cbd0c Misc 2009-02-11 15:19:20 +00:00
hvlad
6983baea22 Pass Firebird's root directory to the trace plugin with initialization info.
Allow to use relative and/or empty filenames as audit log file.
Ensure root directory ends with separator when it is used.
2009-02-11 11:36:49 +00:00
asfernandes
7ba3e7d0e5 Misc 2009-02-11 01:32:09 +00:00
hvlad
243f59e424 Lets handle file IO errors.
Don't use HW dependent size_t in shared file records.
2009-02-10 11:32:11 +00:00
hvlad
14408ad443 Correction by Adriano 2009-02-10 09:01:19 +00:00
hvlad
026c2412e6 Constness 2009-02-09 15:25:01 +00:00
asfernandes
4d77727642 Misc 2009-02-08 18:01:38 +00:00
robocop
f01b2a5abf Misc, please review. 2009-02-08 12:54:33 +00:00
robocop
a18dc0519f Misc, style, fixing dangerous warnings, constness, etc. 2009-02-08 11:23:46 +00:00
asfernandes
1105286dee Misc 2009-02-07 15:20:34 +00:00
hvlad
c048467cba Don't change descriptors of other objects, noted by Claudio 2009-02-06 14:18:20 +00:00
hvlad
789edd2afc Correct typo, thanks to Claudio 2009-02-06 13:47:57 +00:00
hvlad
39394c343f Simplification 2009-02-06 13:47:10 +00:00
asfernandes
a1b2736830 Misc 2009-02-05 14:50:57 +00:00
asfernandes
478ad06312 Misc 2009-02-05 14:44:11 +00:00
asfernandes
75c0d0f353 Misc 2009-02-05 01:08:13 +00:00
alexpeshkoff
aca2ff3483 Make trace plugin work on linux 2009-02-04 11:43:19 +00:00
alexpeshkoff
2da14652dd Avoid use of class PluginManager 2009-02-04 11:39:37 +00:00
hvlad
da44ed0f49 When no active trace sessions left, clear notification needs 2009-02-03 19:14:52 +00:00
alexpeshkoff
d0e4a14230 removed #ifdefs - after latest Vlad's fixes not needed any more 2009-02-03 08:09:52 +00:00
hvlad
2ece5acb86 Use-count approach to track lifetime of trace configurations storage file. 2009-02-02 22:27:03 +00:00
hvlad
2d6965d832 Remove unneeded assignment 2009-02-02 16:28:24 +00:00
hvlad
bdcdb6a328 Enable unlink of temporary trace files for WINNT only. This is temporary solution. 2009-02-02 16:24:33 +00:00
hvlad
a0ab0d9109 Trace correctly failed SQL statement prepare attempts and SET TRANSACTION statement. 2009-02-02 16:23:05 +00:00
alexpeshkoff
4821c8a329 Do not AC_CONFIG_FILE twice 2009-02-02 15:23:50 +00:00
alexpeshkoff
94f9917300 filename case 2009-02-02 15:12:38 +00:00
asfernandes
56689d338b Misc 2009-02-02 14:46:24 +00:00
hvlad
64ed2f7064 Correction 2009-02-02 14:01:22 +00:00
alexpeshkoff
d4062a3fa5 make it compile on posix 2009-02-02 13:31:20 +00:00
hvlad
5a821aa8fc Be POSIX compliant. Fixed few errors, thanks to Alex. 2009-02-02 13:11:48 +00:00
alexpeshkoff
397bacc330 fixed posix compile 2009-02-02 12:05:09 +00:00
hvlad
91dedb36ab Don't use "None" as empty configuration file name for audit. Per Adriano request. 2009-02-02 09:12:38 +00:00
hvlad
09d9645c46 Trace services implementation 2009-02-01 22:07:35 +00:00