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

342 Commits

Author SHA1 Message Date
dimitr
1e2edd445d Reworked the rsb/cursor logic a bit. Now I don't think sub-queries should be cursors. 2010-04-15 16:10:51 +00:00
asfernandes
f9154aca75 Misc 2010-04-07 02:04:22 +00:00
asfernandes
5ac2130415 Cleanup - switch from pointer arithmetics to sane way to get impure places 2010-04-05 21:20:08 +00:00
asfernandes
fe9bf02848 Refactor user and system functions nodes 2010-04-05 18:43:11 +00:00
dimitr
3c6859f5e0 Misc. 2010-03-21 17:57:40 +00:00
dimitr
90b128d6b6 Fixed CORE-2890: SQLSTATE should also be available as a PSQL context variable like GDSCODE/SQLCODE.
To be later backported into v2.5.1, I suppose.
2010-03-21 07:29:58 +00:00
dimitr
63bedffa71 Refactored the sorter into a proper class.
Removed some dead code and unused files.
2010-03-16 11:19:29 +00:00
asfernandes
7232eff657 This is related to CORE-2912, but changes nothing internally. Intead of reading non-allocated memory, throw a (not always correct, btw) exception. 2010-03-09 15:43:59 +00:00
asfernandes
4f9b9161b4 Feature CORE-2006 - SUBSTRING with regular expression (SIMILAR TO) capability 2010-02-21 01:47:54 +00:00
asfernandes
c737d6a807 Create ExprNode class hierarchy.
Convert CONCATENATE and aggregate functions to it.

Fix some bugs:
- select sum(n) over (order by n2), sum(n) over (), n, n2 from x1;
- select (select 1 from x1 b where list(1, a.n) = 1) from x1 a;
2010-02-13 20:29:29 +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
8f19a2b7e1 Consts 2009-12-27 19:05:38 +00:00
dimitr
debe65bcfb Support for PSQL functions (other JRD changes). Still work in progress. 2009-12-21 17:43:01 +00:00
robocop
13a8d5488f Get rid of the obsolete option CompleteBooleanEvaluation in the config file. We always do short-circuit boolean logic. 2009-12-21 07:01:24 +00:00
robocop
dae574f7f1 Misc, style and unused vars. 2009-12-13 10:41:53 +00:00
dimitr
6162602e53 Set up the ANY/ALL boolean at the compile time instead of runtime. 2009-12-13 08:17:32 +00:00
asfernandes
925bcc9cf6 Misc / warnings 2009-12-10 00:02:01 +00:00
dimitr
11495a55fb Refactored the whole RSB stuff into classes. They're inside the /recsrc sub-directory now.
Fixed the layering for WITH LOCK and (partially) ANY/ALL predicates.
Cleaned up the outdated code that never worked (mapping DISTINCT to an index, some VMS remainings).
Wiped out a lot of the pre-ODS11 optimizer logic. Some minor adjustments there.
Re-implemented the full outer join from scratch. This resolves CORE-2678 (full outer join cannot use available indices).
Resolved CORE-2796: DB_KEY is always zero for external tables.
Implemented the core part of the scrollable PSQL cursors. Implementation is still incomplete, but ready for testing.
Some other changes I don't recall at the moment ;-)

WARNING! The engine may be unstable. Please email me about any issues found.
2009-12-09 18:45:44 +00:00
asfernandes
9ec1c36a55 Cleanup 2009-11-28 19:39:23 +00:00
asfernandes
3f5aded4e3 Misc 2009-11-28 01:44:42 +00:00
robocop
6b58626584 Cleanup. 2009-11-27 06:57:17 +00:00
robocop
f955568fc9 The architect created ODS12 and saw it was good, then he said "thy shall be the only one among your race", dropped the older ones and sent the developers to the four corners of the cyberspace to convert the masses to ODS12. 2009-11-27 02:33:40 +00:00
asfernandes
a3dd1d0482 Misc 2009-11-26 00:20:59 +00:00
robocop
405d008606 Comments. 2009-11-25 09:34:43 +00:00
robocop
579a456329 Style. 2009-11-25 08:38:52 +00:00
robocop
9af5ae7f8d Style. 2009-11-23 05:24:29 +00:00
uid32383
eca4ecba76 Comments. 2009-11-22 03:56:20 +00:00
asfernandes
d7c19021f2 Remove unneeded casts 2009-11-18 14:31:29 +00:00
asfernandes
218f419b5c Fixed related issues:
CORE-1518 - Adding a non-null restricted column to a populated table renders the table inconsistent
CORE-2696 - "alter table" command can add a field which has "not null" definition
CORE-1748 - Unrestorable backup
CORE-1355 - Zero display instead of NULL
2009-11-18 14:24:47 +00:00
asfernandes
1c88679f5e Remove an extra memcpy with lower/upper of strings 2009-11-17 13:06:14 +00:00
alexpeshkoff
9423b33815 Frontported fix for CORE-2730: Bus error when working with DB_KEY on RISC machines 2009-11-05 17:04:30 +00:00
asfernandes
79e9320875 Refactor aggregate handling into AggregateRsb class 2009-10-31 19:03:30 +00:00
dimitr
5ae7b7f340 Cleanup. 2009-10-31 11:08:11 +00:00
dimitr
e6909de7f7 Wipe out the SCROLLABLE_CURSORS code + minor cleanup.
Also, surfaced scrollability for PSQL cursors (without internal support yet).
2009-10-31 06:25:01 +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
dimitr
8e36474f76 More explicit (and shorter) life-time for sort blocks. Now they belong to either requests (user sorts) or transactions (index sorts).
This also resolves CORE-2477: mon$memory_usage: Sorting memory should be reported as owned by the statement.
2009-09-04 06:11:55 +00:00
dimitr
22f35d1fdd Comments. 2009-08-27 09:45:05 +00:00
robocop
ef30c29512 Fix CORE-2581 Infinity should not escape from the engine. UDF issues not touched yet. 2009-08-04 13:01:53 +00:00
asfernandes
0fa5b3fdc4 Do not return isc_no_cur as warning, as it's an error - thanks to Dmitry 2009-07-16 13:09:00 +00:00
asfernandes
284aa72ae9 Fix another similar problem of CORE-2552. Now successfull_completion has wrong in the fetch API, when that warning is posted.
Alex: please verify if ERR_warning could be removed. It's not used anymore.
2009-07-15 00:25:35 +00:00
asfernandes
adacf54d74 Misc 2009-07-14 01:18:17 +00:00
alexpeshkoff
fe4aec8a12 Fixed CORE-2550: Bus error when working with DB_KEY on bigendian machines. Introduced dtype_dbkey inside engine. 2009-07-09 14:04:42 +00:00
robocop
2e3ce0d23d Misc. 2009-06-07 09:49:58 +00:00
alexpeshkoff
46527f2084 MT safe floating point exceptions control. Raise error in case of FP overflow according to SQL standard requirements. 2009-05-27 07:57:06 +00:00
asfernandes
158a05c78d Misc 2009-05-10 15:23:31 +00:00
alexpeshkoff
4742f45669 Fixed CORE-2455: Server fails when doing DROP DATABASE right after error in statistical function 2009-05-07 16:48:48 +00:00
robocop
c23b36160b Misc. 2009-05-02 14:56:43 +00:00
robocop
66b1227b22 Unused params, some formatting, cleanup. 2009-05-01 17:21:36 +00:00
alexpeshkoff
8c983fec26 Fixed alignment issues with on-stack vary strings 2009-04-29 14:00:32 +00:00
robocop
2d7cb94844 Unused params
Some BLR checks
2009-04-28 13:08:04 +00:00