asfernandes
102956a54d
Fixed CORE-1787 - Consistency check when subquery is ordered by aggregate function from other context
2009-09-07 03:58:48 +00:00
asfernandes
88495f2e92
Fixed CORE-2584 - Wrong results for CASE used together with GROUP BY
2009-08-06 02:32:56 +00:00
asfernandes
a8c1cdb655
Fixed CORE-2579 - Parameters and variables cannot be used as expressions in EXECUTE PROCEDURE parameters without a colon prefix.
...
Improvement CORE-2580 - Allow usage of subselects as PSQL expressions
2009-08-01 18:20:17 +00:00
asfernandes
9bd287b702
Fixed CORE-2538 - PSQL doesnt allow to use singleton query result as input parameter of stored procedure when procedure accessed using 'execute procedure'
2009-07-05 00:48:36 +00:00
robocop
f10e1b72eb
Style.
2009-06-27 06:23:36 +00:00
robocop
2e3ce0d23d
Misc.
2009-06-07 09:49:58 +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
hvlad
9a749a272f
Implement improvement CORE-2452 : Add Role Name in input parameters for EXECUTE STATEMENT
2009-05-14 10:21:47 +00:00
alexpeshkoff
f5c31ce09a
Fixed CORE-2441: Server crashes on UPDATE OR INSERT statement
2009-04-27 16:29:01 +00:00
robocop
6292032d72
Comments and style.
2009-04-19 10:06:07 +00:00
asfernandes
ed6912df8d
Misc
2009-04-13 01:46:26 +00:00
hvlad
8f8472f58e
Fixed bug CORE-2416 : AV preparing a query with aggregate over derived table
2009-04-12 07:53:44 +00:00
hvlad
fb3f935710
Fixed bug CORE-2419 : Assert in DEBUG build preparing query witn UNION in derived table
2009-04-12 07:32:45 +00:00
asfernandes
4a4fd4c9e4
Fixed CORE-2417 - Index cannot be used with <field> LIKE <constant> in HAVING clause.
2009-04-10 20:17:35 +00:00
asfernandes
00a64ad59b
Fixed a problem introduced with my last commit. Assertion with query:
...
select * from (select * from t1 group by n) group by n;
2009-03-13 15:46:09 +00:00
asfernandes
bf64550086
Misc (spaces vs tab)
2009-03-13 15:30:33 +00:00
asfernandes
f32516ee4b
Fix another (related to CORE-1246 and CORE-2339) issue with derived expressions, reported by Dmitry:
...
select
*
from
(select
coalesce(sum(r1.RDB$RELATION_ID), 0) as RDB$RELATION_ID
from
(select *
from
rdb$database ) r1 ) r2
wrongly returns NULL
2009-03-13 15:26:50 +00:00
robocop
fab6a3a6cf
Get rid of superflous parentheses.
2009-02-28 11:57:40 +00:00
asfernandes
1105286dee
Misc
2009-02-07 15:20:34 +00:00
asfernandes
891845836d
CORE-2298 - Add support for "some_col = ? or ? IS NULL" conditions
2009-02-05 14:29:28 +00:00
asfernandes
ced3b0010e
Rollback CORE-2298
2009-01-29 20:36:29 +00:00
asfernandes
3592de2b06
Adjustments related to CORE-2298
2009-01-28 22:04:55 +00:00
asfernandes
9784181a33
Improvement CORE-2298 - Add support for "some_col = ? or ? IS NULL" conditions
2009-01-28 21:37:45 +00:00
dimitr
cf82309149
Slightly reworked my recent changes for IN (list).
...
Now it resolves the parameter datatypes the same way as before.
2009-01-21 18:06:20 +00:00
robocop
b8f95abd0b
Cleanup.
2009-01-10 11:11:56 +00:00
asfernandes
647bc06ce1
Misc
2009-01-09 01:50:54 +00:00
robocop
b627ad2a39
Style.
2009-01-07 09:30:57 +00:00
asfernandes
91a4550d23
Misc
2009-01-06 17:46:08 +00:00
robocop
8dca837420
Style.
2009-01-06 05:53:34 +00:00
asfernandes
53f18ba5fc
Fixed CORE-2265 - Grouping by function doesn't work properly
...
(This is related to CORE-1246 changes)
2009-01-04 18:41:36 +00:00
robocop
6406e45337
Shut up compiler warnings (unreferenced vars, uninitialized vars, compile-time conditional code, etc.)
2009-01-02 06:36:12 +00:00
robocop
9c9e4e9b0b
There's no need to check whether a pointer is null before applying delete or delete[].
2008-12-20 08:16:55 +00:00
asfernandes
8fbf0e8e8c
Remove trailing spaces (.cpp files)
2008-12-05 01:20:14 +00:00
asfernandes
c51af68ff9
Misc
2008-11-09 22:42:11 +00:00
asfernandes
26e6444764
Misc
2008-11-08 18:05:21 +00:00
asfernandes
dcfdeca45c
Fixed CORE-2176 - Unexpected (wrong) results with COALESCE and GROUP BY
2008-11-08 17:59:06 +00:00
asfernandes
ad716e38d9
Misc
2008-10-20 23:46:46 +00:00
dimitr
7729fe8622
1) Let's avoid a deep recursion for the IN (<list>) predicate. At least on the parser side.
...
2) Fixed the IN elements limit to be 1500 (as documented) instead of 1499.
2008-10-20 10:43:50 +00:00
asfernandes
774635c3a9
Fixed another case for CORE-1246 - Incorrect column values with outer joins and derived tables:
...
select t2.n
from rdb$database t1
left join (
select 11 n
from (
select 0 a
from rdb$database
) x1
) t2
on 1 = 0
;
was returning 11.
2008-10-04 02:48:35 +00:00
asfernandes
cd8476bea3
Do not change the logic of things that was been working - thanks to Claudio
2008-09-09 11:01:29 +00:00
asfernandes
50ab76f9a7
Fixed:
...
CORE-2067 - GROUP by and RDB$DB_KEY problems
CORE-2068 - Comparision with IN and subquery with RDB$DB_KEY returns wrong result
CORE-2069 - Incorrect VIEW expansion when RDB$DB_KEY is used in view body
2008-09-07 21:50:00 +00:00
asfernandes
384beddc49
Do not mix flags of union and rse. Problem recently introduced:
...
select n from t1
union all
select n from t2;
Error: multiple rows in singleton select
2008-09-07 20:25:18 +00:00
asfernandes
b550749a47
Fixed CORE-1246 - Incorrect column values with outer joins and derived tables
2008-09-07 19:44:48 +00:00
robocop
a6d4e3de82
Misc.
2008-09-03 12:18:59 +00:00
asfernandes
9150e6f4f2
This should fix regressions related to fixes of:
...
CORE-501 - Optimization problem with COALESCE
CORE-1343 - Bug with a simple case and a subquery
CORE-2041 - update or insert with gen_id() with wrong generator value
And should fix this one (snapshot build bug):
CORE-2051 - don't work subquery in COALESCE
2008-09-01 13:18:02 +00:00
alexpeshkoff
13a15d4bfe
1. Final fix for CORE-1964 - finished vararg cleanup in jrd.
...
2. Generic cleanup of error reporting functions all around engine.
2008-08-27 12:20:47 +00:00
robocop
69aeb8cb71
Misc.
2008-08-26 11:04:39 +00:00
dimitr
1739c548b1
Fixed CORE-903: Update Field update / result Updated.
2008-08-25 07:58:45 +00:00
asfernandes
ed0c45c1b9
Temporary fix for the boot build
2008-08-22 02:13:02 +00:00
asfernandes
e54682efa0
Fixed CORE-1343 - Bug with a simple case and a subquery
2008-08-21 01:58:53 +00:00
asfernandes
b910161f82
Fixed CORE-501 - Optimization problem with COALESCE
2008-08-20 01:54:45 +00:00
alexpeshkoff
c188e3dc47
fixed compile error
2008-08-18 06:44:36 +00:00
asfernandes
736659c1a1
Misc
2008-08-16 15:42:38 +00:00
asfernandes
fdfe98f2a8
Fixed CORE-2044 - Incorrect result with UPDATE OR INSERT ... RETURNING OLD and non-nullable columns
2008-08-16 00:59:31 +00:00
asfernandes
5d4084d30c
Fixed CORE-2041 - update or insert with gen_id() with wrong generator value
2008-08-15 16:32:42 +00:00
alexpeshkoff
1785fb6ee3
fixing CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid
...
finished cleanup of vararg in error diagnostics in DSQL
2008-08-15 11:21:47 +00:00
asfernandes
fd90a1e25b
Improvement CORE-2029 - Increase number of contexts avaiable when using derived tables
2008-08-02 23:47:38 +00:00
robocop
7182bbaa8b
Style.
2008-07-16 11:15:00 +00:00
robocop
1d7bc9916b
Misc.
2008-07-03 07:12:36 +00:00
asfernandes
ce4bf91533
Misc
2008-07-01 01:12:02 +00:00
alexpeshkoff
a2e416210b
Fixed CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid.
...
Also cleaned up use of gds__log() in a few places.
2008-06-26 09:47:59 +00:00
hvlad
66fd7d5488
Make blr_exec_stmt extensible in the future.
...
Sorry, recompile of stored objects using new EXECUTE STATEMENT is necessary. Hope the last time ;)
2008-06-10 22:43:30 +00:00
robocop
017d04dbfc
Misc.
2008-06-10 10:11:39 +00:00
alexpeshkoff
bbd35943db
fixed gcc build
2008-06-09 07:49:56 +00:00
asfernandes
26a79e3c6e
Misc
2008-06-09 01:34:33 +00:00
hvlad
5d9c430674
Implemented improvement CORE-1928 : Allow EXECUTE STATEMENT to inherit access privileges of caller stored procedure or trigger.
...
Allow to specify EXECUTE STATEMENToptional clauses in any (not fixed) order.
Use INTERNAL_PROVIDER for access to the current database by another user too.
2008-06-08 20:42:27 +00:00
robocop
b8ea332022
Misc.
2008-06-05 11:02:42 +00:00
robocop
ab2987a3aa
Style.
...
Remove useless parentheses.
2008-06-03 06:19:21 +00:00
robocop
4acad057dc
Give explicit names to vars that save state for later restoration.
2008-05-25 11:44:11 +00:00
asfernandes
d4bf9ab246
Split dsql_req into dsql_req and CompiledStatement. This should be my last refactoring to 2.5:
...
- dsql_req becomes a running request;
- CompiledStatement is derived from dsql_req. The compilation state previously in dsql_req comes to here;
- Rename many "request" parameters to "statement" where type is changed from dsql_req to CompiledStatement.
This changes makes easy the path to support compiled statement cache.
2008-05-24 03:19:52 +00:00
asfernandes
71bd20b209
Fixed CORE-1910 - Not valid fields in MERGE's insert clause are allowed
2008-05-23 01:37:19 +00:00
asfernandes
bdf999ddef
Slight more correct usage of scope level in MERGE
2008-05-23 00:38:06 +00:00
asfernandes
36e7ddd38c
Corrections
2008-05-22 23:19:09 +00:00
asfernandes
ffe554acc1
Misc
2008-05-21 16:04:10 +00:00
asfernandes
d84c1c1d2f
Misc
2008-05-21 16:02:25 +00:00
asfernandes
725a100324
Correction - thanks to Claudio
2008-05-21 15:22:22 +00:00
robocop
83f77468a0
Misc.
2008-05-21 13:00:37 +00:00
asfernandes
d52dc96278
1) Move the new Node classes to appropriate files
...
2) Creation of StmtNode
3) Conversion of IN AUTONOMOUS TRANSACTION to InAutonomousTransactionNode (inherited from StmtNode) - it makes this feature almost self-contained
Please do a boot build or at least run blr_table.
2008-05-19 13:47:48 +00:00
asfernandes
e469bd562a
Cleanup on the "proc_flag" logic: store it on the request and changes when necessary.
2008-05-17 16:51:07 +00:00
robocop
e44a99f339
Style and minor cleanup.
2008-05-10 03:44:57 +00:00
asfernandes
90b3b08ca0
Fixed the problematic assert
2008-05-06 15:20:18 +00:00
hvlad
02f2cef2db
Update DSQL_pretty to print nod_src_info contents even more correctly :) Noted by Adriano. Also make DSQL_pretty to not loop endlessly on nod_return.
2008-05-01 07:26:53 +00:00
hvlad
7667d6e88f
Update DSQL_pretty to print nod_src_info contents correctly
2008-04-30 20:03:40 +00:00
asfernandes
882e71fa81
Put nod_auto_trans in DSQL_pretty - noted by Claudio
2008-04-15 15:19:20 +00:00
asfernandes
77e97a47c0
Feature requests CORE-1737 and CORE-1803:
...
1) ALTER CHARACTER SET <charset> SET DEFAULT COLLATION <collation>
2) CREATE DATABASE ... [ DEFAULT CHARACTER SET <charset> [ COLLATION <collation> ] ]
2008-04-15 02:18:38 +00:00
robocop
73093a8889
Mark dead code.
2008-04-14 13:01:54 +00:00
asfernandes
0ca6d7c20f
Use the collation defined in RDB$DEFAULT_COLLATE_NAME in strings constants
2008-04-12 22:26:24 +00:00
robocop
4de9c4050b
Use array notation.
2008-04-12 11:54:42 +00:00
asfernandes
0e8febd6e3
Misc
2008-04-10 02:35:30 +00:00
hvlad
fe3f8c184b
New EXECUTE STATEMENT with support of external data source implementation
2008-04-09 20:18:47 +00:00
robocop
cd9ede5768
Delete obsolete comment, fix indentation and style.
2008-04-09 13:47:15 +00:00
robocop
ee46acd6bc
Misc.
2008-04-03 13:17:32 +00:00
hvlad
2b7f14dc69
Fixed CORE-1817 : The RelaxedAliasChecking parameter has no effect concerning RDB$DB_KEY
2008-04-02 14:27:17 +00:00
dimitr
30f7cce178
Fixed CORE-1811. A solution is to move the validation code from GEN to PASS1 in order to catch bad things earlier. This differs from the SAS solution, but hopefully it's more generic.
2008-04-01 06:11:29 +00:00
asfernandes
21a13650eb
More problematic cases of CORE-1798 - thanks to Dmitry
2008-03-21 19:05:24 +00:00
asfernandes
3aca6f92b1
Misc
2008-03-21 02:42:24 +00:00
dimitr
13f5cc92e1
Major cleanup of the old-style blk and allocator-based blk_type.
2008-03-19 16:09:00 +00:00
robocop
3e724a9286
Misc.
2008-03-18 13:02:21 +00:00
dimitr
2c722e5854
Fixed the build.
2008-03-17 17:17:33 +00:00
hvlad
0170deaff3
Fixed bug CORE-1793 : AV at prepare of query with unused parametrized CTE
2008-03-17 10:27:01 +00:00