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

308 Commits

Author SHA1 Message Date
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
robocop
446097fe8e Be explicit, change "qualifier" to "package" in QualifiedName (needed anyway if/when schemas are added). 2010-01-27 04:32:27 +00:00
asfernandes
16f77c21a2 Cleanup 2010-01-27 02:20:19 +00:00
asfernandes
9c1bab1793 Feature CORE-1385 Identity columns - in its basic form 2010-01-13 19:14:15 +00:00
asfernandes
7c47718d68 Move DYN constants to private header 2010-01-10 17:56:57 +00:00
asfernandes
c3f9ef27e8 Refactor CREATE GENERATOR/SEQUENCE 2010-01-10 17:32:40 +00:00
asfernandes
e8cc188227 Store the view context type when it doesn't came from backup and simplify the code. Still problems altering procedures used in views. 2009-12-28 15:31:09 +00:00
robocop
cd4c00ab21 Misc. 2009-12-24 10:42:32 +00:00
asfernandes
d3ac9ac6cc More refactoring: name changes, accessors, consts, removed not good references (statement referencing scratch and metadata indirectly) 2009-12-23 00:57:08 +00:00
asfernandes
8968888820 Getters and setters for DsqlCompiledStatement and consts 2009-12-22 15:36:10 +00:00
asfernandes
dd6331f002 Some fixes; Misc. 2009-12-22 00:08:49 +00:00
dimitr
1f3694c903 Support for PSQL functions (only the DSQL part so far). Still work in progress. 2009-12-21 17:23:07 +00:00
asfernandes
74972f5913 Consts 2009-12-20 23:41:48 +00:00
asfernandes
985bc2db87 Separate the scratch, statement and request flags. Don't ask me why I didn't change them to bools. 2009-12-20 22:42:43 +00:00
asfernandes
488eb40fe0 Refactor DSQL, continuing the work I started in 2.5:
- Renamed CompiledStatement to DsqlCompilerScratch and removed inheritance to dsql_req.
- Introduced DsqlCompilerStatement, moving things from dsql_req - not completelly shareable yet.
- Make dsql_req reference a DsqlCompilerStatement. DsqlCompilerScratch may be discarded in the future.
- Replaced AlterCharSetNode usage by PreparedStatement for the default collation in database creation.
- Changed METD API.
2009-12-20 21:01:10 +00:00
asfernandes
b525f3b54f Misc 2009-12-16 21:52:01 +00:00
robocop
465c88570e Make views know exactly what type of source their fields have: include a type of context and a package name in rdb$view_relations. Debugged with a small script.
To be reviewed & completed by Adriano.
Full rebuild, please.
2009-12-15 14:08:28 +00:00
asfernandes
ad4d4b2ba9 Feature CORE-2777 - Make possible to alter the default database character set without manual update of system table 2009-12-07 18:26:50 +00:00
asfernandes
7a78601ef2 1) Use metadata character set in DSQL cache
2) Make exceptions in metadata charset and convert them to the client charset - this should fix CORE-2431
3) Support for "internal" (engine) DSQL statements and use in COMMENT ON
2009-12-05 14:21:52 +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
200a63b1b4 Reduce usage of legacy (and unsafe) nodes related to PSQL parameters and variables.
Use btyacc feature "inherited attributes" (kind of parameters for non-terminals).
2009-11-21 20:42:27 +00:00
robocop
f069eeda54 Style. 2009-11-21 09:24:20 +00:00
robocop
9c71413426 Style. 2009-11-16 09:18:24 +00:00
alexpeshkoff
4f54fd68e8 Frontported improvement CORE-2748: allow gsec to grant RDB$ADMIN role in the security database 2009-11-13 19:00:09 +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
aafemt
f81520e142 CORE-1991 2009-09-19 08:05:14 +00:00
asfernandes
a01096b36b Fixed CORE-2516 - Wrong processing SP parameters with arrays 2009-06-19 15:47:16 +00:00
dimitr
3d8091e338 An attempt to fix the regression(s) reported by Bill Oliver. 2009-05-06 17:05:59 +00:00
robocop
66b1227b22 Unused params, some formatting, cleanup. 2009-05-01 17:21:36 +00:00
robocop
4490f77b06 More unused params. 2009-04-28 13:48:18 +00:00
dimitr
1b5a289b65 More detailed (hopefully) fix for CORE-2424 which cares about nested maps/aliases/etc.
It also resolves CORE-1402 and provides better check for view updatability.
2009-04-27 18:41:51 +00:00
robocop
888000e21e Unused function params. 2009-04-26 10:24:44 +00:00
asfernandes
a1b1c2371c Fixed CORE-2424 - Make CREATE VIEW infer column names for views involving a GROUP BY clause or derived table 2009-04-22 15:49:56 +00:00
robocop
74537636b9 Comments. 2009-04-18 14:13:26 +00:00
robocop
fab6a3a6cf Get rid of superflous parentheses. 2009-02-28 11:57:40 +00:00
asfernandes
28aa57fc50 Fixed CORE-2341 - Hidden variables conflict with output parameters, causing assertions, unexpected errors or possibly incorrect results 2009-02-24 15:51:31 +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
79e89d573d Misc 2009-01-03 19:02:04 +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
d11c994960 Style. 2008-12-31 05:06:08 +00:00
asfernandes
b262751dae Fixed CORE-2230 - Implement domain check of input parameters of execute block 2008-12-10 14:42:09 +00:00
robocop
9f52942ab0 Style. 2008-12-02 07:09:49 +00:00
asfernandes
a6b30e0b4f Misc 2008-11-22 14:26:59 +00:00
robocop
09f142746b Misc. 2008-11-19 04:25:56 +00:00
asfernandes
3942ad9570 Misc 2008-11-19 01:04:36 +00:00
robocop
3f5556edf9 Misc. 2008-11-16 08:36:48 +00:00
alexpeshkoff
d3f22d3fc5 Implemented feature CORE-2113: Remove all privileges of a user or role. Readme will be ready soon. 2008-11-14 10:00:45 +00:00
alexpeshkoff
f6c2181187 make status vector have same structure for most uses of SQLERR -607 2008-10-27 15:10:45 +00:00