asfernandes
5ae632cf0b
Feature CORE-1288 - Sub Procedures.
...
They're very simple for now. No access to parent variables nor to call neighbour procedures.
Tests at http://firebird.cvs.sourceforge.net/viewvc/firebird/fbtcs/GTCS/tests/FB_SQL_SUBPROC_1.output .
2011-10-02 22:11:41 +00:00
asfernandes
f14ec26183
Misc.
2011-06-04 02:18:55 +00:00
alexpeshkoff
4c02901734
Fixed segfault in execute statement, reported by Dmitry privately
2011-06-03 15:29:01 +00:00
asfernandes
2fd18f68c9
Lets try to avoid global functions using name with mixed new (functionName) and old SUBSYS_name name style.
2011-05-11 17:42:44 +00:00
hvlad
479a7f600d
Renamed currentProvider to EngineProvider to better reflect its nature and corrected its declaration (with Alex permission ;). Removed unneeded cast.
2011-05-11 14:45:56 +00:00
asfernandes
d0c2265105
Misc.
2011-05-10 01:12:14 +00:00
hvlad
fef1f49c94
Shared page cache implementation
2011-05-09 10:15:19 +00:00
asfernandes
69dc52ba48
Integrate IAttachment and ITransaction in the external engines API.
2011-05-07 19:52:44 +00:00
asfernandes
9754526943
Misc; reinterpret to static casts; correction in YRequest version.
2011-04-26 01:00:33 +00:00
alexpeshkoff
256cb1e853
1. Use reference counted stable in global pool objects instead PublicHandle's validation.
...
2. Avoid massive segfaults when closing heavily loaded server.
3. Restored logic in YValve required for correct shutdown.
4. Do not change externally visible request body when preparing it.
2011-04-25 17:47:56 +00:00
asfernandes
c63493ffba
Added metadata support to IStatement.
2011-04-14 01:03:43 +00:00
alexpeshkoff
437d841cfa
Rolled back my commit using IBlrMessage interface. Replaced with single plain structure FbMessage.
2011-04-13 12:41:40 +00:00
alexpeshkoff
9a4689d3e9
Use interface IBlrMessage instead passing C++ class pointer to API interface's functions
2011-04-08 16:43:05 +00:00
alexpeshkoff
5c88e478f6
Use better names for a number of objects according to Vlad's suggestion
2011-04-07 17:16:00 +00:00
robocop
82403a5621
Misc, style, etc.
2011-04-02 04:45:26 +00:00
asfernandes
166c41c5b1
Move transactRequest, createBlob, openBlob, getSlice, putSlice and ddl from ITransaction to IAttachment.
...
It's better to have one standard than two, and "ddl" was broken from API POV.
So make the IAttachment always the caller, explicit or implicit (via IStatement or IRequest), and pass the ITransaction as parameter.
2011-03-21 21:56:47 +00:00
asfernandes
c863db6e6d
Removed commented out Sqlda support and rename methods removing the word 'messsage'.
2011-03-20 19:15:55 +00:00
asfernandes
34fd6866bc
Remove unused message types.
2011-03-20 19:15:13 +00:00
asfernandes
2ce201f4ae
Use MessageBuffer in executeMessage and fetchMessage.
2011-03-20 19:14:03 +00:00
alexpeshkoff
f6914b8db0
Added timer-related interfaces. Added helper method to wait for plugin to be released on shutdown. Misc stability changes in PluginManager.
2011-03-16 11:04:04 +00:00
alexpeshkoff
f89ac854ef
Getting ready to use 32 (not 31) page and transaction numbers
2011-01-21 17:55:04 +00:00
alexpeshkoff
d6fcde387b
New plugin manager. Use it for all types of plugins.
2011-01-14 17:31:40 +00:00
asfernandes
c9ec26c0c3
Feature CORE-726 - Boolean data type
2010-12-18 02:17:06 +00:00
asfernandes
9c42d4e5af
Finish the statements refactor in the engine. Get rid of jrd_nod.
2010-12-04 22:15:03 +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
asfernandes
594e390d42
Fixed segfault after EXECUTE STATEMENT with invalid SQL
2010-11-28 14:56:35 +00:00
asfernandes
a3064848d6
Make ExprNodes and RecordSourceNodes reference others directly instead of via jrd_nod.
...
Store ValueExprNodes instead of jrd_nod in the metadata cache.
Make RecordSourceNode child of ExprNode as they share most operations.
Get rid of the JRD visitors in favor of direct calls.
Convert assignments statement lists created inside expressions to separate source and targets ValuesExprNodes.
2010-11-21 03:47:29 +00:00
asfernandes
3eb252ec5f
Refactored DSQL nodes: nod_derived_field, nod_map, nod_dbkey and nod_rec_version.
...
Refactored JRD nodes: blr_field (JRD side only), blr_dbkey, blr_record_version and blr_stmt_expr.
2010-11-14 17:25:48 +00:00
dimitr
bc3a797d4a
If we swallow the exception, let's zap it inside the status vector as well. This fixes the assertion in the debug build.
2010-11-08 07:23:32 +00:00
alexpeshkoff
0ab6c4abf7
Avoid throwing C++ exceptions from authentication plugins
2010-10-28 08:02:42 +00:00
alexpeshkoff
e05c1a825f
Moved some more .h-files to common from jrd as Vlad suggested
2010-10-13 10:39:52 +00:00
asfernandes
91384eb587
Misc
2010-10-12 17:40:27 +00:00
alexpeshkoff
83d6a2f88c
Restored a lot of changes, rolled back by me unintentionally
2010-10-12 11:36:51 +00:00
alexpeshkoff
2dc25a44bb
OSRI and new posix build
2010-10-12 08:02:57 +00:00
robocop
98a2c6822d
Warnings.
2010-09-24 09:53:51 +00:00
asfernandes
dadc0f560c
Const correction for EVL, EXE and they subsystems. Adjustments to CMP and OPT.
2010-08-09 15:48:51 +00:00
hvlad
087a7f7cda
Fixed bug CORE-3100 : Wait mode and lock timeout of external transaction of EXECUTE STATEMENT not matched to corresponding parameters of local transaction
2010-08-07 21:18:23 +00:00
asfernandes
361727d549
Misc
2010-08-07 02:38:12 +00:00
hvlad
1ca9c0a020
Fixed bug CORE-3089 : Attempt of execute statement on external datasource failed when datasource is interbase 4.1
2010-08-06 15:16:13 +00:00
hvlad
f4718dfe80
Fixed unregistered bug in EXECUTE STATEMENT : make internal cache of prepared statements work properly.
2010-07-12 08:09:46 +00:00
robocop
9f687c39c4
Misc.
2010-04-29 05:13:03 +00:00
asfernandes
4763533669
Refactor jrd_req into JrdStatement (shared part) and jrd_req (execution of a statement).
...
Fixed some bugs found in the way.
2010-04-18 22:19:11 +00:00
hvlad
fcbd9482f0
Fixed bug CORE-2907 : Exception handling with EXECUTE STATEMENT
2010-03-18 11:51:21 +00:00
hvlad
fd04d5f776
Fixed bug CORE-2920 : Incorrect execution of volatile SQL statements inside EXECUTE STATEMENT
2010-03-12 15:39:06 +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
alexpeshkoff
443f261abf
Introduce isc_dpb_version2 - format is WideTagged.
2009-12-30 15:24:16 +00:00
asfernandes
82ccb81d3b
Unify even more procedure and function handling. While at it, fix a wrong access to req_procedure when validating function.
2009-12-30 01:40:39 +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
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
dimitr
debe65bcfb
Support for PSQL functions (other JRD changes). Still work in progress.
2009-12-21 17:43:01 +00:00
asfernandes
50542e3f00
Make dsql_req::statement constant
2009-12-21 14:56:12 +00:00
asfernandes
74972f5913
Consts
2009-12-20 23:41:48 +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
3f5aded4e3
Misc
2009-11-28 01:44:42 +00:00
robocop
d8a012014b
Comments.
2009-11-27 08:34:34 +00:00
robocop
405d008606
Comments.
2009-11-25 09:34:43 +00:00
asfernandes
f2cd6b7ec2
Misc
2009-11-12 01:38:48 +00:00
robocop
94f1a728d6
Misc.
2009-11-06 05:58:57 +00:00
asfernandes
87e274b76a
Misc
2009-11-06 01:21:14 +00:00
hvlad
bc9ad95c82
Fixed bug CORE-2731 : Recursive EXECUTE STATEMENT works wrong
2009-11-05 22:42:46 +00:00
robocop
55d60892ca
Warnings.
2009-11-05 08:29:33 +00:00
hvlad
e079a00e67
Sorry, it was nedeed
2009-11-04 15:01:34 +00:00
hvlad
c6c7e64ed2
Remove uneeded Jrd::
2009-11-04 14:52:32 +00:00
hvlad
b18ffff50c
Fixed bug CORE-2729 : Current connection may be used by EXECUTE STATEMENT instead of creation of new attachment
2009-11-04 14:49:15 +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
hvlad
9071ff2465
Use volatile for better thread-safety, noted by Adriano
2009-09-10 06:40:52 +00:00
asfernandes
3d4aec86e9
Misc
2009-09-10 01:31:49 +00:00
hvlad
738a3cd5d3
Fixed bug CORE-2600 : Server deadlocks while running a few remote EXECUTE STATEMENTs concurrently
2009-09-08 16:37:38 +00:00
robocop
98a5f2e6a4
Misc.
2009-09-03 11:17:46 +00:00
hvlad
41896eeba1
Fixed bug CORE-2252 : EXECUTE STATEMENT on EXTERNAL SOURCE does not check the status of the transaction
2009-09-02 10:46:43 +00:00
robocop
8ce0cf3e79
Style.
2009-08-16 05:25:30 +00:00
robocop
d19fd95de3
Style.
2009-08-05 06:35:01 +00:00
hvlad
88ba7de4f8
Use UCHAR instead of char for EDS::Blob, as Claudio suggest
2009-06-08 14:57:58 +00:00
asfernandes
8595742987
Misc
2009-05-20 00:45:45 +00:00
robocop
4d468895ea
Misc & style.
2009-05-17 11:20:43 +00:00
asfernandes
c991e7d5cf
Misc
2009-05-15 00:51:21 +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
robocop
66b1227b22
Unused params, some formatting, cleanup.
2009-05-01 17:21:36 +00:00
asfernandes
e707efaa1d
Misc
2009-04-16 01:09:12 +00:00
hvlad
2821d805da
More correct fix for bug CORE-2420 : Parsing error in EXECUTE STATEMENT with named parameters.
2009-04-13 07:48:56 +00:00
hvlad
3d79776aed
Fixed bug CORE-2420 : Parsing error in EXECUTE STATEMENT with named parameters
2009-04-12 19:52:41 +00:00
asfernandes
f6f364da49
Trim trailling spaces
2009-04-04 16:39:31 +00:00
robocop
a730fbf074
Get rid of more typedefs.
2009-04-03 10:07:55 +00:00
robocop
4480c7c405
Misc.
2009-04-01 10:49:54 +00:00
asfernandes
ed2536461d
Misc
2009-03-14 19:17:34 +00:00
hvlad
4e0807690f
Better fix for CORE-2183 : Error in ExtDS when server shutdown started with opened Execute Statement.
...
Make EDS handle broken connection properly
2009-03-13 13:17:20 +00:00
hvlad
a86decefb1
Remove wrong assertion. Correct error message
2009-03-01 10:22:49 +00:00
asfernandes
ad26f7a1e5
Misc
2009-02-11 15:24:03 +00:00
asfernandes
7ba3e7d0e5
Misc
2009-02-11 01:32:09 +00:00
hvlad
d8e8a4cece
Misc
2009-02-10 16:16:03 +00:00
hvlad
009f9d2fd9
Take into account req_null as Adriano suggests
2009-02-10 16:11:56 +00:00
asfernandes
7082a9af23
Fix SQL_NULL problems with EXEC. STMT.
2009-02-10 14:33:50 +00:00
asfernandes
1105286dee
Misc
2009-02-07 15:20:34 +00:00
hvlad
57d349f3d1
Fixed few minor issues noted by Dmitry
2009-02-06 12:01:34 +00:00
asfernandes
590a2fdb1c
Fixed a few signed vs unsigned warnings
2009-01-22 16:53:10 +00:00
robocop
ce678f21f9
Misc.
2009-01-17 10:58:24 +00:00
robocop
77bd687168
Style.
2009-01-14 08:22:32 +00:00
robocop
e9be920cc0
Shut up some compiler warnings (some warnings should be enabled again in autoconfig_msvc.h IMHO because hiding our possible mistakes won't help us).
2008-12-30 10:52:52 +00:00
robocop
2fadc0e456
Style.
2008-12-22 09:00:05 +00:00