hvlad
2dc879afca
This should fix known issues with MERGE and stable cursor (see CORE-3362).
...
Thanks to Dmitry for idea
2016-02-25 09:20:01 +00:00
asfernandes
6760fe25c8
Misc.
2016-02-25 01:50:46 +00:00
dimitr
477af6bb96
Checking the datatype at compile time is unreliable: some nodes return one type at compile time and another type at runtime, thus causing unexpectedly missing casts. I'm moving the check to runtime, this should fix the remaining regressions (fingers crossed).
2016-02-24 20:11:34 +00:00
aafemt
a0eca08629
Get secondary error code isc_dsql_sqlda_err back, thanks to Dmitry Yemanov
2016-02-23 20:49:56 +00:00
aafemt
7a7c6cb95b
Some more cases of CORE-5112 as pointed by Dmitry Yemanov
2016-02-23 16:18:38 +00:00
dimitr
2461d05460
Removed "cast no-op" extensions as they break many tests, e.g. CAST('A' as CHAR(10)) remains CHAR(1) instead of being padded up to CHAR(10). Let's no-op only really equal descriptors for the time being.
2016-02-23 09:52:51 +00:00
dimitr
b1efab55b2
And another postfix for CORE-5097, it resolves regression for core_3545.fbt.
...
Adriano, please review.
2016-02-23 09:10:41 +00:00
asfernandes
1b3d63e687
Fixed regression with CORE-1839 after fix for CORE-5097.
2016-02-18 14:52:04 +00:00
asfernandes
6259b1b1e0
Misc.
2016-02-15 02:53:24 +00:00
asfernandes
47bcd0db2b
Fixed CORE-2923 - Problem with dependencies with views.
2016-02-11 18:10:53 +00:00
dimitr
798a4a5aab
Postfix to address the regression found in the recent commit for CORE-5097.
2016-02-05 11:00:09 +00:00
asfernandes
b5a34e985f
Move the code and add the CAST only when required, per Dmitry comment.
2016-02-04 14:28:26 +00:00
alexpeshkoff
bebf1d5a70
Implemented CORE-5100: Improve control over database crypt keys
2016-02-03 13:20:41 +00:00
hvlad
9b6969b56e
It should fix bug CORE-5087 : Database shutdown can cause server crash if multiple attachments run EXECUTE STATEMENT
2016-02-02 22:26:50 +00:00
asfernandes
36ac140be8
Fixed CORE-5093 - Alter computed field type does not work.
2016-02-01 16:51:50 +00:00
asfernandes
dcdec26c77
Revert to the bad (that works) commit for CORE-5062. It's difficult to work when both the original architects and the users do bad things in relation to CHAR and MBCS.
2016-01-06 18:20:39 +00:00
asfernandes
210920d3b6
Fixed CORE-5062 - CHAR_TO_UUID on column with index throws expression evaluation not supported Human readable UUID argument for CHAR_TO_UUID must be of exact length 36.
2016-01-03 15:50:38 +00:00
dimitr
24b7a7982c
Fixed CORE-5061: ISQL plan output is unexpectedly truncated after a query is simplified to become shorter.
2016-01-02 12:08:31 +00:00
dimitr
9f28f77266
Remove the redundant (no-op) line.
2015-12-19 05:55:20 +00:00
dimitr
738ad6ea21
Constness.
2015-12-18 16:57:06 +00:00
asfernandes
0e686e0c58
Avoid warnings with clang.
2015-12-18 16:34:33 +00:00
asfernandes
80a29fe79f
Fixed CORE-5049 - Regression: incorrect calculation of byte-length for view columns.
2015-12-18 16:34:20 +00:00
asfernandes
047175e1a5
Misc.
2015-12-13 01:02:02 +00:00
aafemt
84573c0854
Perform db encryption checks at ddl time to avoid corrupting database by wrong plugin name in header
2015-12-09 14:22:13 +00:00
aafemt
08aabbf41d
Prevent using DECRYPT and ENCRYPT clauses in one query
2015-12-09 13:47:03 +00:00
asfernandes
85cae875bf
Misc.
2015-11-18 01:10:08 +00:00
asfernandes
1c1021b892
Try to fix the performance problem noted by Arno.
2015-11-17 17:01:08 +00:00
dimitr
ec6d38eb47
FB3 seems to be properly protected from CORE-4983 at the y-valve level, but I'm adding an additional protection for the engine anyway (call me paranoid).
2015-11-17 11:46:21 +00:00
dimitr
23975e8614
Remove the code no longer neccessary.
2015-11-03 10:37:11 +00:00
dimitr
bbcc9654c3
Generic solution for CORE-4982: Server crashes during "select from procedure" if exception is thrown while backing out the current savepoint.
2015-10-29 11:18:56 +00:00
alexpeshkoff
ea49fcaa52
Fixed CORE-4980: Operator REVOKE can modify rights granted to system tables at DB creation time
2015-10-27 16:48:31 +00:00
dimitr
80e0b8375d
Disabled GRANT/REVOKE for privileges not currently enforced: USAGE/DOMAIN, USAGE/CHARSET, USAGE/COLLATION.
2015-10-27 12:19:00 +00:00
dimitr
b4a3572fc6
Fixed CORE-4970: Table trigger does not see its mode: inserting or updating or deleting.
2015-10-20 13:06:52 +00:00
dimitr
4e4d8002e5
CORE-4965: Extend the transaction ID space beyond 2^32 transactions. Initially developed in the v2.5 custom branch, then reworked and now merged into v3.0.
2015-10-19 13:32:02 +00:00
asfernandes
9fbee6b719
Misc.
2015-10-13 02:22:57 +00:00
asfernandes
05c40f0ae5
Use pools in the btyacc skeleton file.
2015-10-13 01:49:11 +00:00
alexpeshkoff
139331c7e3
Enhanced memory leaks search - changed FB_NEW to FB_NEW_POOL,
...
plain new to FB_NEW, making allocated with it blocks tagged with file/line.
Make related code slightly better readable.
2015-10-12 14:26:00 +00:00
alexpeshkoff
42b98af12b
Better syntax for CORE-4955 & docs
2015-10-09 13:57:39 +00:00
alexpeshkoff
bcf2c0eb10
Implemented CORE-4955: Define a new option for DROP SHADOW command to leave the shadow file in the filesystem
2015-10-09 13:30:45 +00:00
dimitr
7857160480
Misc.
2015-10-08 13:24:21 +00:00
asfernandes
96e6676163
Fixed CORE-4954 - The package procedure with value by default isn't called if this parameter isn't specified.
2015-10-07 18:24:36 +00:00
dimitr
2a1d6e246a
Use simpler solution for CORE-4928. Let's not open new gates for direct table modifications.
2015-10-06 10:58:56 +00:00
asfernandes
9769499937
Fixed CORE-4950 - Statistics for any system index can not be updated/recalculated.
2015-10-02 17:30:09 +00:00
asfernandes
68e2043fcf
Fixed CORE-4292 - Server ignores asynchronous (monitoring or cancellation) requests while preparing a query with lot of windowed functions.
2015-09-30 16:35:37 +00:00
asfernandes
1e9ab8cf19
Fixed CORE-4947 - Compound ALTER TABLE statement with ADD and DROP the same check constraint fails.
2015-09-29 16:45:12 +00:00
asfernandes
a8496bc551
Fixed FETCH CURSOR <c> (without INTO) after changes for CORE-4929.
2015-09-27 19:39:52 +00:00
asfernandes
10d3c38b68
Fixed CORE-4928 - It is not possible to save the connection information in the ON CONNECT trigger, if the connection is created by the gbak.
2015-09-10 17:06:47 +00:00
dimitr
5b57c1438a
This should fix CORE-4929: Cannot compile source with ELSE IF () THEN and commands to manipulate explicit cursor.
2015-09-09 21:38:24 +00:00
asfernandes
5393b8cf6f
Fixed CORE-4585 - Can't create column check constraint when the column is domain based.
2015-09-03 16:30:30 +00:00
asfernandes
64f82e1682
Improvement CORE-4923 - Add ability to track domains rename in DDL triggers.
2015-09-02 16:24:31 +00:00
asfernandes
ce80938834
Fixed possible similar problems to CORE-4497.
2015-09-01 15:55:10 +00:00
asfernandes
182016b222
Fixed CORE-4917 - ALTER DOMAIN ... TO <new_name> allows to specify <new_name> matching to 'RDB$[[:DIGIT:]]*'.
2015-08-31 15:26:06 +00:00
dimitr
fe24642bc2
Fixed invariants handling in independent subqueries (seems to be related to CORE-4497).
2015-08-31 15:11:06 +00:00
asfernandes
35397f8c05
Fixed CORE-4870 - SET COUNT ON: issuing UPDATE on view which was created WITH CHECK OPTION produces wrong number of affected rows (doubled ?).
2015-08-25 15:22:40 +00:00
asfernandes
9a2a88b560
Fixed CORE-4884 - Crash on pasring of script containing execute block
with lot of nested begin..end statements.
2015-08-05 16:44:48 +00:00
asfernandes
50b2d7352a
Fixed CORE-4887 - AFTER CREATE/ALTER PACKAGE DDL triggers runs in incorrectly moment.
2015-07-28 15:56:58 +00:00
asfernandes
8074c9338c
Fixed weird indentation.
2015-07-28 15:56:46 +00:00
asfernandes
67e92f8872
Fixed CORE-4881 - Increase maximum string literal length to 64K (bytes) while setting a lower limit (of characters) for multibyte charsets based on their max char. length (UTF-8 literals will be limited to 16383 characters).
2015-07-27 01:06:51 +00:00
asfernandes
020126e9ae
Rework on CORE-4781 - Maximum string length (32767 bytes) is not validated.
2015-07-14 16:00:43 +00:00
alexpeshkoff
391e28ce75
Fixed CORE-4864: CREATE DATABASE fail with ISQL
2015-07-07 13:51:50 +00:00
asfernandes
04b3f239a7
Fixed CORE-4846 - Altering a trigger indicating other table than the original does not reflect the change.
2015-07-03 16:18:07 +00:00
asfernandes
551dbdba6d
Fixed CORE-4848 - MERGE ... WHEN NOT MATCHED ... RETURNING returns wrong (non-null) values when no insert is performed.
2015-07-01 17:10:07 +00:00
alexpeshkoff
4168cdf81d
Fixed CORE-4836: Grant update(c) on t to U01 with grant option: user U01 will not be able to "revoke update(c) on t from <user | role>" if this U01 do some DML before revoke
2015-06-25 16:02:43 +00:00
asfernandes
e9ccc80f8c
Misc.
2015-06-13 19:00:28 +00:00
robocop
219963e56b
Misc.
2015-06-11 06:42:50 +00:00
alexpeshkoff
225cca9b0d
Fixed CORE-4831: Revoke all on all from role <R> -- failed with "SQL role <R> does not exist in security database"
2015-06-10 13:42:48 +00:00
dimitr
2b4e779a0a
Fixed Windows build.
2015-06-08 12:13:57 +00:00
asfernandes
f9bc6e1736
Add code to print the parser/executable tree to XML for debugging purposes.
2015-06-05 18:26:36 +00:00
alexpeshkoff
4e9539b074
Postfix for CORE-4821: fixed segfault in REVOKE ALL ON ALL
2015-06-04 14:10:15 +00:00
alexpeshkoff
5dff2e4fc0
Fixed CORE-4821: ensure CREATE DATABASE right is granted only to roles that do exist in security database
2015-06-04 13:43:09 +00:00
alexpeshkoff
1b6632ac8b
Fixed CORE-4811: Make user names behave according to SQL identifiers rules
2015-06-03 13:57:18 +00:00
dimitr
8744b80766
1) Reverted a more complex refetch logic introduced recently to its original state.
...
2) Protected against an undo record being used in VIO modify/erase/writelock routines.
3) Avoided false deadlocks in read-committed transactions.
This should cure CORE-4369, CORE-4561 and CORE-4618 at once.
2015-06-02 10:43:16 +00:00
dimitr
14ba585c0e
Fixed CORE-214: Count ( DISTINCT ... ) is too slow.
2015-05-31 16:14:48 +00:00
asfernandes
f86a15c90b
Fixed CORE-4819 - EXECUTE PROCEDURE's RETURNING_VALUES and EXECUTE STATEMENT's INTO does not check validity of assignments targets leading to bugcheck.
2015-05-30 19:01:02 +00:00
asfernandes
ba03a8c71e
1) Improvement CORE-4791 - Make INSERTING/UPDATING/DELETING reserved words to fix ambiguity with boolean expresions.
...
2) Fixed CORE-4735 - Expression 'where bool_field IS true | false' should also use index as 'where bool_field = true | false' (if such index exists).
2015-05-15 16:10:39 +00:00
alexpeshkoff
3eb6728368
Postfix for CORE-4785
2015-05-14 10:04:26 +00:00
alexpeshkoff
9646a5d593
Fixed CORE-4785: Bad packet of op_execute kills the server
2015-05-13 13:24:33 +00:00
alexpeshkoff
2e3438fd56
Some more postfixes for CORE-4760
2015-05-06 16:25:06 +00:00
asfernandes
bdbdc30efc
Fixed CORE-4781 - Maximum string length (32765 bytes) is not validated.
2015-05-04 16:24:10 +00:00
robocop
c0627ba33b
Misc.
2015-05-03 06:18:56 +00:00
asfernandes
adf1fd737d
Misc.
2015-05-02 03:54:03 +00:00
asfernandes
4e509cbf1b
Fixed CORE-3234 - Support for text BLOBs >= 32K as first argument for TRIM().
2015-04-30 15:56:47 +00:00
alexpeshkoff
0ac40f77be
Fixed CORE-4760: Can not create user with non-ascii (multi-byte) characters in the name
2015-04-30 13:44:43 +00:00
asfernandes
dd2411e576
Fixed CORE-4755 - Parameterized exception: wrong output when number of arguments greater than 7.
2015-04-29 15:59:46 +00:00
asfernandes
94e9cc985f
Fixed CORE-4774 - Table aliasing is unnecessary required when doing UPDATE ... RETURNING RDB$ pseudo-columns.
2015-04-27 18:58:36 +00:00
asfernandes
3ed87ec404
Fixed reintroduction of CORE-1379 per Pavel Zotov comment - Invalid parameter type when using it in CHAR_LENGTH function.
2015-04-18 19:19:12 +00:00
alexpeshkoff
bab9ce6e47
Fixed CORE-4743: Granted role does not work with non-ascii username
2015-04-17 18:35:39 +00:00
asfernandes
5109af2436
Fixed CORE-4725 - Inconsistencies with ALTER DOMAIN and ALTER TABLE with DROP NOT NULL and PRIMARY KEYs; Fixed some others problems with trailing spaces in object names in error messages.
2015-04-13 18:35:46 +00:00
asfernandes
193b892bb9
Fixed CORE-4744 - ALTER DATABASE SET DEFAULT CHARACTER SET: 1) take effect only for once for current attachment; 2) does not check that new char set exists untill it will be used.
2015-04-11 00:59:31 +00:00
asfernandes
119d1e16f4
Fixed (again) CORE-2932 - Wrong field position after ALTER POSITION.
2015-04-08 03:21:09 +00:00
alexpeshkoff
c68c440657
Fixed a bug noticed by Simonov Denis
2015-04-06 11:12:54 +00:00
asfernandes
2828aee4ab
Fixed CORE-4733 - Command "Alter table <T> alter TYPE <C> <DOMAIN_WITH_NOT_NULL" does not verifies data in column <C> and makes incorrect assignments in <C> to ZERO / JULIAN_DATE / ASCII(0) for types INT, TIMESTAMP and VARCHAR.
2015-04-05 02:24:40 +00:00
asfernandes
edb4192e67
Changes related to CORE-1180: change syntax and semantics to the standard SQL, and also manage RDB$RELATION_CONSTRAINTS records correctly.
2015-04-02 02:26:46 +00:00
asfernandes
336456d140
Misc.
2015-03-28 00:36:04 +00:00
alexpeshkoff
16768b177d
Be more consistent putting IStatus into fast inline wrapper. Also some syntax sugar as suggested by Dmitry
2015-03-27 17:51:19 +00:00
alexpeshkoff
e7663b6bc0
Use status interface instead plain status vector when working with exceptions.
...
Avoid use of circullar allocation for strings in status vector (except when unavoidable for ISC API backward compatibility).
Use TLS for circullar allocation buffer instead manually working with threads' list.
2015-03-27 14:36:30 +00:00
asfernandes
43977cc4bf
Rework new aggregate functions so that they use the single blr_agg_function BLR verb.
2015-03-25 17:52:14 +00:00
asfernandes
4554ee24f5
Feature CORE-4722 - Aggregate linear regression functions.
2015-03-25 17:51:54 +00:00
alexpeshkoff
6c5f9b77fe
Cleanup - avoid automatic type conversion in FbLocalStatus as suggested by Claudio
2015-03-23 11:06:51 +00:00
asfernandes
64d146a06f
Feature CORE-4717 - Aggregate statistical functions COVAR_SAMP, COVAR_POP and CORR - contributed by Hajime Nakagami.
2015-03-23 02:55:42 +00:00