alexpeshkoff
120b10a78a
Implemented CORE-4263: Database linger
2013-11-14 16:16:24 +00:00
asfernandes
5296e616d3
Fixed CORE-4237 - FB3 vs FB2.5. Different metadata for UDF return argument.
...
The is a case showing a difference between 2.5 and 3.0 in the first comment. The second comment does not show difference between versions.
2013-10-04 15:58:03 +00:00
asfernandes
56c2a5fc66
Fixed CORE-4237 - FB3 vs FB2.5. Different metadata for UDF return argument.
2013-10-03 15:38:58 +00:00
asfernandes
0b51caa5f4
Fixed CORE-4145 - Memory leak when preparing Execute Block which uses domains.
2013-09-25 15:49:43 +00:00
hvlad
8611366e5f
Fixed bug CORE-4214 : GTT should not reference permanent relation
2013-09-10 14:37:06 +00:00
asfernandes
eae91e94a9
Improvement CORE-4206 - Add RESTART [WITH] clause for alter identity columns.
2013-09-05 15:58:30 +00:00
asfernandes
4789ba1672
Improvement CORE-4199 - Add optional START WITH clause to identity columns.
2013-09-04 15:54:19 +00:00
asfernandes
8e6a973957
Simplificate representation of 64-bit numbers and sequences in the parser.
2013-08-29 16:05:37 +00:00
dimitr
20d9fd1d76
Fixed regression appeared in test bugs.core_1715.
2013-07-16 03:53:58 +00:00
dimitr
81466c3768
1) Fixed XCP_MESSAGE_LENGTH to represent the real max length. We have the column defined as VARCHAR(1023), so there's no need to subtract the overhead.
...
2) Slightly refactored the message buffer management.
3) Fixed the buffer overrun in the release build.
2013-07-10 11:44:39 +00:00
dimitr
ecfe07ab72
A somewhat hackery solution that allows ISQL to work with SET GENERATOR as it expects. It fixes the issue reported by Philippe in fb-devel.
2013-06-20 08:04:04 +00:00
dimitr
3ba9ad4cc1
A few corrections, mostly regarding new-style vs legacy UDFs.
2013-06-19 09:14:01 +00:00
dimitr
0c9a9fdf4c
Made the ALTER SEQUENCE RESTART behavior standard compliant.
2013-06-18 18:22:31 +00:00
asfernandes
bce4462d85
Fixed CORE-4071 - external function declaration with "returns parameter" crashes the server.
2013-03-27 16:09:18 +00:00
asfernandes
d7c58ad709
Fixed CORE-4070 - NOT-NULL-column can be used as primary key and filled with NULL-values.
2013-03-27 15:54:13 +00:00
asfernandes
1652cf93d7
Fixed CORE-4067 - Problem with "CREATE DATABASE ... COLLATION ..." and 1 dialect.
2013-03-23 20:41:17 +00:00
asfernandes
a412ef75bf
Misc.
2013-03-17 20:36:56 +00:00
dimitr
478857711e
Correction.
2013-03-12 10:26:33 +00:00
asfernandes
bd237461db
Misc.
2013-03-08 02:37:40 +00:00
dimitr
86f4b02ef3
1) Cleanup and renaming in the SCL code.
...
2) Reimplemented the USAGE privilege as a separate one.
3) Added USAGE permission checks for generators/sequences and exceptions.
4) Supported USAGE in GRANT/REVOKE for all object types.
5) Refactored SET GENERATOR and ALTER SEQUENCE as true DDL. blr_set_generator is supported only for backward compatibility, it's not generated by DSQL anymore.
6) Added START WITH clause for [RE]CREATE SEQUENCE and CREATE OR ALTER SEQUENCE.
7) Fixed a number of related errors.
2013-03-07 13:59:03 +00:00
alexpeshkoff
fc12495d0e
Modified IStatement interface in our API:
...
1. Never allocate empty statement - always use att->prepare() to create statement interface
2. Separated IStatement into 2 parts - statement itself and resultset.
3. Added stmt->openCursor() (and att->openCursor() for unprepared statements) to create IResultSet.
4. Always use IMessageMetadata (former IParametersMetadata) to pass message fromat info from client,
therefore avoiding need in BLR generation in client applications.
2013-02-17 12:08:53 +00:00
asfernandes
42cbecab05
Fixed a problem with CREATE COLLATION.
2013-01-20 15:11:57 +00:00
asfernandes
970677e8de
Get rid of dsql_str and fix metadata strings.
2012-12-25 17:34:50 +00:00
asfernandes
eb00918b00
Misc.
2012-12-10 15:46:51 +00:00
asfernandes
d5f3e9f1fb
Get rid of g_field hack.
2012-12-10 02:09:28 +00:00
asfernandes
1cfac2b169
Refactor dsql_fld, TypeClause and ParameterClause. Eliminate some warnings.
2012-12-05 02:07:37 +00:00
asfernandes
a1b17ce0a5
Small cleanup on COMMENT ON constants.
2012-10-18 15:49:15 +00:00
asfernandes
81609a77d7
Cleanup.
2012-09-18 16:01:58 +00:00
asfernandes
1e918da7b6
Fixed database default charset being ignored.
2012-09-13 15:55:12 +00:00
asfernandes
94a9c6dad0
Fixed CORE-3894 - Wrong numbers in error message for decreasing char/varchar columns.
2012-07-22 01:42:19 +00:00
asfernandes
1dcad0fe90
Misc.
2012-06-03 03:00:24 +00:00
alexpeshkoff
2a01e4bcf9
Implemented CORE-3861: Make it possible to encrypt database
...
Also some cleanups, the most important are:
- meaningful ctor on Jrd::Lock, helping to avoid code dup
- avoid unneeded h-file dependencies, making boot build engine dependent
2012-05-31 16:53:42 +00:00
asfernandes
5580857d73
Fixed problems with views WITH CHECK OPTION. Also change its triggers as asked for opinions in fb-devel.
2012-05-20 19:28:52 +00:00
robocop
844b15bd13
Misc and style.
2012-05-20 10:00:52 +00:00
asfernandes
9575304592
Fixed the problem reported a while ago in fb-devel by Thomas Steinmaurer ("Fb 3 and RDB$MECHANISM values for SP/SF parameters").
2012-05-07 15:25:46 +00:00
asfernandes
db30902bad
Misc - seen by Claudio.
2012-05-05 19:16:21 +00:00
asfernandes
2b0eea972a
Make usage of dsqlChildNodes consistent.
2012-05-04 15:32:49 +00:00
asfernandes
07747144f7
Unify DSQL/JRD sub-nodes.
2012-05-03 16:43:29 +00:00
asfernandes
a2b389f1db
Getting rid of dsql_nod.
2012-04-25 01:42:47 +00:00
asfernandes
617ef670ed
Refactored nod_select_expr, nod_with and nod_list (union).
2012-04-07 03:03:28 +00:00
dimitr
a1c5800f64
Fixed compilation.
2012-03-26 15:28:13 +00:00
asfernandes
38083d12dc
Refactored nod_field_name, nod_var_name, nod_array and nod_collate.
2012-03-25 01:08:55 +00:00
alexpeshkoff
a89f9b7735
Fixed CORE-3782: Password encoding
2012-03-23 17:44:17 +00:00
asfernandes
456af220a8
Refactor nod_def_index.
2012-03-18 22:22:14 +00:00
asfernandes
3e81925010
Refactor DDL nodes removing references to non-value/-rse dsql_nod.
2012-03-18 21:37:13 +00:00
alexpeshkoff
4e795f4047
Include platform definitions file common.h in firebird.h. Use OS-specific ThreadId instead artificial FB_THREAD_ID, avoiding unneeded casts in the code. This should fix BSD and MAC ports.
2012-03-01 08:55:43 +00:00
asfernandes
2522f8fc94
Correction.
2012-02-29 15:24:50 +00:00
asfernandes
b522566474
Remove legacy statements residuals.
2012-02-20 02:02:04 +00:00
asfernandes
df31dac958
Refactor GRANT and REVOKE commands. This eliminates the DYN subsystem.
2012-02-19 02:17:27 +00:00
robocop
5d2a0118c0
I don't see the point in creating temporary strings in these cases.
2012-02-15 03:43:06 +00:00
asfernandes
819da0f942
Fixed problem with default collation.
2012-01-25 17:46:44 +00:00
robocop
21cd78a0fd
Cleanup: unused functions, parameters & variables.
2012-01-24 03:37:43 +00:00
asfernandes
ed3d7ed720
Misc.
2012-01-20 01:42:03 +00:00
robocop
5ad1da3891
Simplification.
2012-01-19 05:42:04 +00:00
robocop
e2914070b9
Misc.
2012-01-19 04:54:39 +00:00
asfernandes
d66783ae3c
Misc.
2012-01-16 20:33:52 +00:00
alexpeshkoff
35e6c1ff04
Fixed CORE-3599: Possible drop role RDB$ADMIN
2012-01-13 08:23:20 +00:00
dimitr
0e41945307
1) Made the functions logic in sync with the procedures one.
...
2) Simplified the privileges creation code.
2012-01-09 09:48:14 +00:00
asfernandes
c44c548f8c
Corrections and cleanup.
2012-01-09 00:08:33 +00:00
dimitr
69cede6f1a
Refactored CREATE/ALTER USER. Untested at runtime.
2012-01-08 18:33:59 +00:00
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