dimitr
e956e2e6c0
1) Restricted ALTER/DROP permissions to the object owners only. Now this applies to domains, charsets, collations, generators and exceptions. This fixes CORE-304: Metadata security hole - any user can alter/drop generators and exceptions.
...
2) Opened the gates to implement the standard USAGE privilege (CORE-2884). SQL support and validation logic are still to be developed.
3) Added the grant option to the owner permissions for packages, procedures and functions.
4) Misc cleanup and refactoring.
2012-01-08 14:05:29 +00:00
asfernandes
59acf81405
Misc.
2011-11-28 00:57:11 +00:00
asfernandes
016ddf41dc
Refactored CREATE FILTER and CREATE INDEX.
2011-11-27 19:08:06 +00:00
asfernandes
b956356922
DDL refactor: ALTER EXTERNAL FUNCTION, ALTER INDEX, SET STATISTICS, CREATE SHADOW, ALTER ROLE, CREATE/ALTER DATABASE.
2011-11-22 16:33:25 +00:00
asfernandes
2013038d7f
Correction.
2011-11-14 18:15:44 +00:00
asfernandes
0de4423b02
Misc.
2011-11-14 18:06:44 +00:00
asfernandes
193f9379b9
Refactor DDL commands: DROP INDEX, DROP FILTER, DROP SHADOW, CREATE/DROP ROLE and DROP USER.
2011-11-13 21:32:12 +00:00
asfernandes
45327bf06b
Feature CORE-3018 - RECREATE SEQUENCE/GENERATOR.
2011-11-10 14:55:06 +00:00
asfernandes
e090671523
Apply CORE-3114 patch (Attempt to drop non-existing generator produces bad error) with some modifications.
2011-11-09 15:30:00 +00:00
hvlad
0ed1fadf25
Additional fix for CORE-3557 : AV in engine when preparing query against dropping table
...
Also fixed CORE-3579 : Can't drop table when computed field depends on later created another field
2011-11-08 16:46:40 +00:00
asfernandes
ba36a29f9d
1) Refactored legacy (UDF) function creation.
...
2) Extend ISQL' SHOW FUNCTION to take packages and parameter's datatype of non-legacy functions into account.
2011-11-08 14:54:48 +00:00
asfernandes
c627005a89
Feature CORE-3626 - Subfunctions in PSQL and EXECUTE BLOCK.
...
Tests at http://firebird.cvs.sourceforge.net/viewvc/firebird/fbtcs/GTCS/tests/FB_SQL_SUBFUNC_1.output .
Also did:
- Refactor to share more code/data between procedures and functions.
- Fixed some PSQL functions problems.
2011-10-16 20:36:07 +00:00
asfernandes
01e6fd70ae
Fixed PSQL functions problem (missing EOS).
2011-09-25 23:28:09 +00:00
robocop
59b3dc1c2b
Misc.
2011-07-30 07:14:00 +00:00
asfernandes
87a81a5002
Correct the lookup of unspecified parameters wrt packages.
2011-07-16 18:46:58 +00:00
dimitr
d9e4c3eac0
Completed some missing parts of the PSQL functions implementation. Adriano, please review.
2011-07-15 11:52:16 +00:00
dimitr
d455d15bfe
Implemented COMMENT for function arguments.
2011-07-15 08:54:00 +00:00
dimitr
ffa0c84d97
Added the missing RDB$SYSTEM_FLAG and RDB$DESCRIPTION columns into RDB$FUNCTION_ARGUMENTS.
2011-07-14 15:27:25 +00:00
asfernandes
cd7c8dee95
Use the BLR message definition of external procedures and functions.
2011-07-10 01:23:53 +00:00
asfernandes
866b0c8d98
Misc.
2011-06-22 00:30:30 +00:00
asfernandes
17c249fc3d
Complement fix for CORE-3140 - Preserve comments for parameters after altering procedures.
2011-06-17 12:39:25 +00:00
dimitr
4d91d6c564
Fixed the error handling broken after introducing system constraints.
2011-06-01 16:44:41 +00:00
asfernandes
7c5b69403e
Frontported changes of CORE-3491.
2011-05-27 02:05:27 +00:00
asfernandes
efbd651d7f
Correction.
2011-04-29 15:16:53 +00:00
asfernandes
8d8a8b5047
Fixed problem with position handling (see CORE-2797).
2011-04-01 18:39:41 +00:00
dimitr
cc6f90ddf8
Apply Adriano's yesterday fix to functions as well.
2011-04-01 05:26:55 +00:00
asfernandes
51f68bd9ac
Fixed CORE-3423 - Wrong RDB$PARAMETER_MECHANISM.
2011-03-31 14:26:31 +00:00
asfernandes
aeefde32c0
Fixed CORE-3401 - Collation errors with [type of] <domain>, type of column.
2011-03-22 18:59:13 +00:00
asfernandes
5ffa89e0c7
Reference DML statements in DSQL with StmtNode instead of dsql_nod.
2011-03-06 02:48:34 +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
0a6e338392
Refactoring nod_list and nod_block statements.
2011-02-22 00:51:56 +00:00
asfernandes
dfe830af7c
Added EVENT_TYPE and OBJECT_TYPE to DDL_TRIGGER context. Improvement suggested by Thomas Steinmaurer.
2011-02-20 01:08:48 +00:00
asfernandes
5573581488
Refactored nod_alias.
2011-02-17 14:25:56 +00:00
asfernandes
bf77761d84
Fixed CORE-3310 - RDB$GET_CONTEXT and between in view.
...
Fixed CORE-3338 - Some expression indexes with COALESCE, CASE and DECODE became inoperant.
Removed DSQL hidden variables expressions.
Refactored COALESCE, DECODE and (simple) CASE, using new BLR verbs.
Fixed v3 regression with UPDATE OR INSERT inside PROCEDURE/FUNCTION.
Fixed assert with DECODE/CASE with only test parameters and no values.
2011-02-06 18:13:12 +00:00
asfernandes
b0f702e7bd
Another small refactor on variables in DSQL.
2011-01-31 14:47:41 +00:00
asfernandes
d7d3c4d8ab
Refactor internals of DSQL variables.
2011-01-31 00:13:15 +00:00
asfernandes
f27d60369e
Refactor nod_relation_name and nod_rel_proc_name.
2011-01-30 00:25:46 +00:00
asfernandes
123aa675ab
Refactor nod_aggregate, nod_relation, nod_rse, nod_derived_table, nod_query_spec and nod_limit
2011-01-09 21:58:56 +00:00
asfernandes
4a9f98bed7
Refactor DSQL's nod_field
2010-12-19 21:42:32 +00:00
asfernandes
8af7ec0211
Refactored the support for blr_handler, blr_loop, blr_exec_sql, blr_exec_into, blr_exec_stmt,
...
blr_start_savepoint, blr_end_savepoint, blr_store, blr_store2, blr_erase, blr_modify,
blr_modify2, blr_exec_proc, blr_exec_proc2, blr_exec_pid, blr_dcl_cursor, blr_cursor_stmt,
blr_set_generator, blr_receive, blr_stall, blr_select, blr_block, blr_error_handler,
blr_label, blr_leave, blr_continue and the source info node.
2010-11-29 02:17:04 +00:00
asfernandes
3eb252ec5f
Refactored DSQL nodes: nod_derived_field, nod_map, nod_dbkey and nod_rec_version.
...
Refactored JRD nodes: blr_field (JRD side only), blr_dbkey, blr_record_version and blr_stmt_expr.
2010-11-14 17:25:48 +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
b6752fe29b
Fixed inability to alter the [[NOT] DETERMINISTIC] clause.
2010-11-13 08:54:36 +00:00
asfernandes
9086a900bb
1) Frontport fix for CORE-3222 - View with "WITH CHECK OPTION" doesn't like TRIM function in WHERE
...
2) Other related fix and cleanup
2010-11-11 00:05:49 +00:00
asfernandes
2b6106938e
Refactor variables
2010-11-02 17:05:01 +00:00
asfernandes
51f4b27991
Simplify the internal "null replacement" logic
2010-11-01 00:42:12 +00:00
asfernandes
dde217e91f
Make node creation more directly
2010-10-30 18:57:53 +00:00
asfernandes
c46f5cf800
Misc
2010-10-29 00:28:35 +00:00
asfernandes
097426ffc1
Fixed CORE-3140 - Preserve comments for parameters after altering procedures
2010-10-29 00:23:18 +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
asfernandes
43aeec0a64
Fixed CORE-3180 - ALTER VIEW with not matched columns in declaration and selection crashs the server
2010-10-17 14:22:53 +00:00
asfernandes
38ba5852ae
Cleanup: remove blr_prot_mask and blr_lock_state support
2010-10-16 15:34:52 +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
2dc25a44bb
OSRI and new posix build
2010-10-12 08:02:57 +00:00
robocop
98a2c6822d
Warnings.
2010-09-24 09:53:51 +00:00
asfernandes
477091ebcc
Misc
2010-09-18 15:56:54 +00:00
asfernandes
57d222bb0a
Fix problem with view WITH CHECK OPTION present since the introduction of ExprNode
2010-09-17 14:42:11 +00:00
asfernandes
c1b5abfdf2
1) Refactor all types of boolean nodes.
...
2) Remove the scratch from the nodes.
2010-09-17 03:15:32 +00:00
asfernandes
52a4c39f41
1) Separate DsqlCompilerScratch in its own files.
...
2) Move BlockNode functionality to it.
3) Move some related CTE functions to it.
2010-08-27 02:18:00 +00:00
asfernandes
4cb0195ee6
Misc
2010-08-10 15:20:20 +00:00
asfernandes
de5098b85d
Misc
2010-08-10 00:37:26 +00:00
robocop
4677d74e9b
Misc.
2010-08-09 11:50:12 +00:00
asfernandes
124e614654
Simplification
2010-08-05 00:47:06 +00:00
asfernandes
c27a73a1c2
Misc: "explicit" with more than one parameter is unnecessary
2010-08-04 02:22:09 +00:00
asfernandes
9e05b7f43b
Corrections
2010-08-03 01:09:39 +00:00
asfernandes
2def39c746
Suggestions of Claudio
2010-08-02 15:58:29 +00:00
asfernandes
9c3eccef94
Create template for RECREATE commands
2010-08-02 15:47:36 +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
9a946aea74
Fix problem noticed by Claudio
2010-07-30 14:13:54 +00:00
asfernandes
3197757f00
Rename misleading TriStateType class name to Nullable
2010-07-29 00:20:53 +00:00
asfernandes
36f092fe0e
Improvement CORE-3085 - Add clause ALTER DOMAIN <name> [NOT] NULL
2010-07-28 16:14:20 +00:00
asfernandes
0b7c21172a
Refactor CREATE/ALTER/DROP/RECREATE TABLE and DROP VIEW commands
2010-07-26 02:37:57 +00:00
asfernandes
4db389758f
Refactor CREATE/ALTER/CREATE OR ALTER/RECREATE/DROP EXCEPTION commands
2010-07-11 18:21:42 +00:00
robocop
ee99b63cc6
Misc.
2010-07-06 09:10:27 +00:00
asfernandes
20b0bbaf82
Refactor CREATE/ALTER/DROP DOMAIN
2010-07-06 00:49:33 +00:00
asfernandes
fc00a3d58d
Cleanup
2010-06-26 02:50:07 +00:00
asfernandes
7851a943c3
Misc
2010-06-26 02:30:01 +00:00
asfernandes
f2c938d9fa
Refactor CREATE/DROP COLLATION
2010-06-26 01:52:06 +00:00
asfernandes
75af3ccf65
Misc/cleanup
2010-06-22 00:53:35 +00:00
asfernandes
12079f5ece
Created class BlrWriter and reorganization (move BLR generation from statement to scratch)
2010-06-17 01:18:40 +00:00
asfernandes
a9adf6d626
1) Refactor PSQL support in DSQL. This started as subprocedure implementation, but I'm now separating things.
...
2) Fix thrown of isc_bad_default_value
2010-06-15 16:07:58 +00:00
asfernandes
0c47a04538
1) Use RAII with the non-cached requests.
...
2) Change GPRE generated code to something that fits the future SMP-aware engine, replacing calls of "request = CMP_compile2(...)" by "request.compile(...)". Boot build required.
2010-04-19 22:49:18 +00:00
asfernandes
fc432dc572
Correction to my last commit
2010-03-21 02:27:54 +00:00
asfernandes
f2dcf72838
Fixed CORE-2923 - Problem with dependencies between a procedure and a view using that procedure.
2010-03-21 02:01:59 +00:00
asfernandes
e992be2595
Hope this fix the DDL problem reported by Ivan Prenosil
2010-03-06 19:10:48 +00:00
asfernandes
9c1bab1793
Feature CORE-1385 Identity columns - in its basic form
2010-01-13 19:14:15 +00:00
asfernandes
cdb6af0ba8
Misc
2010-01-10 17:35:11 +00:00
asfernandes
c3f9ef27e8
Refactor CREATE GENERATOR/SEQUENCE
2010-01-10 17:32:40 +00:00
asfernandes
37624273b6
Throw trigger creation exceptions like in previous versions
2010-01-10 16:39:56 +00:00
asfernandes
a2359fc3f2
Support for new types and support for getters in ResultSet
2010-01-03 20:56:39 +00:00
asfernandes
7ff112a901
Some syntactic sugar
2010-01-03 00:19:14 +00:00
robocop
a2f34c1dbc
Put more strings into the msg db.
2010-01-02 09:42:09 +00:00
asfernandes
e13a0e3865
Misc
2010-01-01 20:23:52 +00:00
asfernandes
f7e2c38f14
1) Write the function return type as domain, like the parameters. 2) Fix storeGlobalField to always store RDB.
2009-12-31 14:58:12 +00:00
asfernandes
1cb7ba068e
Try to collect function signatures like procedures. Not good yet.
2009-12-30 14:50:18 +00:00
asfernandes
29df794a24
Fixes and completions for packages
2009-12-29 15:27:58 +00:00
asfernandes
534b8c020e
Misc
2009-12-25 19:29:58 +00:00
dimitr
2702907c88
We don't need an EOS slot for PSQL functions.
2009-12-25 11:16:20 +00:00
dimitr
e3a3594f12
Corrections.
2009-12-24 12:02:29 +00:00