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

173 Commits

Author SHA1 Message Date
alexpeshkoff
adee7ab4b6 Fixed error handlig in test 2015-02-27 15:59:11 +00:00
alexpeshkoff
88f3e7e266 misc 2015-02-27 15:42:53 +00:00
asfernandes
47f64b0da4 Better constant names: avoid FB, enclosing class (double prefix) or wrong prefixes.
Left some TODOs in FirebirdInterface.idl and utilities/ntrace/TracePluginImpl.cpp related to trace.

(redo with fix for Windows build, and left another TODO comment in FirebirdInterface.idl)
2015-02-18 15:01:17 +00:00
asfernandes
c861f0cd54 Revert my last change after it broke the Windows build. 2015-02-17 23:21:25 +00:00
asfernandes
3c967bbe71 Better constant names: avoid FB, enclosing class (double prefix) or wrong prefixes.
Left some TODOs in FirebirdInterface.idl and utilities/ntrace/TracePluginImpl.cpp related to trace.
2015-02-17 14:56:59 +00:00
asfernandes
9ece682387 Misc. 2015-02-14 18:55:00 +00:00
asfernandes
e02bf841ad Move Helper class from UDR to the main interface header. Use proper (argh) ref. counting in the ExternalContext::get* methods. 2015-02-11 15:12:18 +00:00
alexpeshkoff
9e627f3c64 Bring examples up-to-date, use ThrowStatusWrapper in them 2015-02-10 13:32:03 +00:00
egorpugin
25fd28f604 [build] [cmake] Call custom commands via scripts. 2015-02-06 12:58:17 +00:00
egorpugin
0fbb859f43 [build] [cmake] Bump minimal cmake version. Add missed dependency. 2015-02-05 17:10:41 +00:00
egorpugin
e50c2a4708 [build] [cmake] Do not place boot targets into output directory. 2015-02-05 06:36:23 +00:00
asfernandes
69ccf374b7 Fix Windows (cmake only) build. Linux build currently is not using udr_plugin.vers when linking examples/udr. 2015-02-03 14:56:20 +00:00
egorpugin
23178f0d09 [build] [cmake] Move some projects to Boot folder. Improve generating of build_msg and codes. Fix Windows issue with databases. 2015-02-01 16:43:35 +00:00
egorpugin
acbd633e45 [build] [cmake] Make 'remote' and 'common' targets private for 'yvalve' target. 2015-01-30 20:23:34 +00:00
egorpugin
7fbb9837ae [build] [cmake] Fix crosscompiling for android on linux. 2015-01-26 19:20:48 +00:00
egorpugin
d75a3ec4d6 [build] [cmake] Update build according to the last changes. 2015-01-26 15:23:27 +00:00
asfernandes
157d5c4eb1 Split the UDR examples in multiple files to demonstrate how it should be done. 2015-01-26 14:52:54 +00:00
egorpugin
4ea86e5205 [build] [cmake] Fix build, typos. Move some projects to 'Boot' dir. 2015-01-26 07:56:51 +00:00
asfernandes
e9f74f04d1 Improvements to the UDR plugin. 2015-01-25 20:27:46 +00:00
egorpugin
14163d7e3e [build] [cmake] Initial CMake build system commit. 2015-01-21 11:21:51 +00:00
asfernandes
c697a0268a Fixed problem of local templates being not allowed in pre-C++-11 code. 2015-01-18 14:53:06 +00:00
asfernandes
efa3067233 Remove old hacks. 2015-01-15 01:16:16 +00:00
asfernandes
7f7887e895 Make UDR StatusType customizable. 2015-01-13 14:43:24 +00:00
asfernandes
b99311dd1e Make the API usable with different type of IStatus classes, throwing (what class?) or not throwing. Builtin are CheckStatusWrapper (no throw) and ThrowStatusWrapper (throws FbException). 2015-01-12 00:21:38 +00:00
asfernandes
d8a0ff5f4b Generate interfaces with I-prefix. 2014-12-19 15:24:44 +00:00
alexpeshkoff
88925cd92a Changed struct DtcStart to interface. Make external programs build again with minimum changes. 2014-12-18 16:54:44 +00:00
asfernandes
49d1a73994 Get rid of upgradeInterface API method and some adjustments. To be continued. 2014-11-10 14:45:40 +00:00
alexpeshkoff
f2193f088e Fixed build errors 2014-10-16 10:36:23 +00:00
asfernandes
c642ddca82 Misc. 2014-10-12 02:25:02 +00:00
alexpeshkoff
153de0f271 Language independent API 2014-09-29 11:03:47 +00:00
alexpeshkoff
d513daa574 Divide IStatus information into 3 parts: errors, warnings and completion code.
Errors and warnings are processed in IStatus independently. Completion code
is moved away from IStatus and returned directly by appropriate functions.
Replaced isSuccess() with more generic function getStatus(), which sets
appropriate bits in returned value when errors/warnings are present.

Also use same style when returning bytes' array and it's length in different
interfaces.
2014-08-27 09:24:30 +00:00
alexpeshkoff
94f9a7e6e2 Make a dbCrypt sample a little more interesting 2014-08-25 14:04:50 +00:00
alexpeshkoff
900fb824fe Fixed CORE-4505: Use of named cursor fails if statement was not executed. Should also fix CORE-4489, but I cannot check. 2014-07-31 11:43:38 +00:00
asfernandes
fa0c3dd11c Misc. 2014-07-10 02:21:18 +00:00
alexpeshkoff
a9721f18e0 Added first parameter IStatus* to a lot of functions in API interfaces 2014-07-02 12:57:12 +00:00
mapopa
2adce12d57 FB_ALIGN is always defined in src/include/types_pub.h ((n+b-1)&~(b-1)) 2014-05-07 15:14:41 +00:00
mapopa
654c3562a3 cleanup VMS FB_ALIGN define 2014-05-07 14:51:49 +00:00
robocop
2810026363 Misc and warnings. 2013-12-29 00:35:50 +00:00
alexpeshkoff
9efc7cb4d2 It's better to always check isql return code 2013-11-20 12:03:22 +00:00
alexpeshkoff
b15fd23511 Very strange that it compiled and worked as expected with 2 unused and unneded lines of code 2013-10-17 13:22:32 +00:00
alexpeshkoff
0bee401fc9 fixed interface usage 2013-09-09 09:14:38 +00:00
asfernandes
21b23ef28d Misc. 2013-06-28 02:03:10 +00:00
alexpeshkoff
d272748f29 no more need in plan here 2013-06-26 07:17:20 +00:00
alexpeshkoff
d0136fb54e Examples reworked, added, commented better 2013-06-25 13:37:03 +00:00
alexpeshkoff
a0c505eb05 A sample of running prepared update statement multiple times. Based on old sample api3 with appropriate license. 2013-06-24 13:40:04 +00:00
alexpeshkoff
d7b6b83dfa Make sample buildable after API changes. Make it look a bit like old sample api3. 2013-06-24 12:36:14 +00:00
alexpeshkoff
3ab9a6bacc Example on how to create database and table 2013-06-24 12:26:02 +00:00
asfernandes
768b79c361 Improvements and corrections to message builder and UDR. 2013-06-18 15:50:48 +00:00
asfernandes
fc9b47b63d UDR C++ interface and examples improvements. 2013-06-06 16:05:02 +00:00
asfernandes
4caf8d0d5b RAII improvements and better usage of initializer in UDR examples. 2013-06-03 15:24:44 +00:00
asfernandes
6aa9a5bf6c RAII usage in UdrCpp example. 2013-05-27 15:51:21 +00:00
asfernandes
cf42eaf4d5 Make the master interface available in UDR. 2013-05-23 15:53:06 +00:00
asfernandes
bdbd54b81e Improve external triggers messages to work by field name (instead of field order). 2013-05-22 15:44:05 +00:00
asfernandes
6e4fbfdba7 Changed package routines syntax to not need (nor accept) a semi-colon after "END". 2013-05-13 01:49:34 +00:00
asfernandes
1e373aa1a7 Corrections. 2013-04-12 15:20:31 +00:00
asfernandes
e0567463bf Revert external routines to request-based (*) code, but now using a totally different internal approach.
* This is not ideal IMO, but much more easier to currently support stack traces, and domain's defaults and validations.
2013-04-11 15:44:17 +00:00
asfernandes
b9bc308a72 Work in progress fixing external triggers. 2013-03-23 21:12:27 +00:00
alexpeshkoff
c18bbe99a2 fixed sample 2013-03-12 12:37:17 +00:00
asfernandes
48fd751c6e Fixing FB_MESSAGE macro and external functions and procedures.
Isolate external routines them from request-based ones.
2013-03-04 01:42:58 +00:00
alexpeshkoff
33b4336028 Enhancements of IMetadataBuilder 2013-02-21 14:59:24 +00:00
alexpeshkoff
0099e61d67 misc 2013-02-18 11:42:45 +00:00
alexpeshkoff
cc4b4195bb A sample of using OO API 2013-02-18 11:07:38 +00:00
asfernandes
491fdd82b2 Unifying the external engines API with the new ones. 2013-02-15 02:48:54 +00:00
alexpeshkoff
5aa85c8bba Fixed employee build - avoid CHECK constraint errors 2013-02-07 12:51:56 +00:00
asfernandes
dc8e42e9bb Migrate external triggers to the new message-based style. 2013-01-29 01:21:32 +00:00
mapopa
8f918288a8 Update salaries and the currency in the intl version for employee db 2012-11-09 14:56:42 +00:00
mapopa
0f1d1f2e80 use dialect 3 2012-11-09 14:37:38 +00:00
mapopa
69fe81bdca update currency cross rates to current ones 2012-11-09 14:28:33 +00:00
alexpeshkoff
f9297d19f1 Make example runnable with dialect-3 employee database 2012-11-09 13:35:53 +00:00
mapopa
6798bd4d5f adjust salaries to the Euro 2012-11-08 23:07:09 +00:00
mapopa
b77aee90d7 Update the countries with current currencies in example database 2012-11-08 20:35:08 +00:00
alexpeshkoff
052ec47f04 make example posix 2008 compatible - thanks to marius 2012-11-08 06:09:58 +00:00
mapopa
5b42a1b301 Replace Windows 3.1 with just Windows reference in comments and readme 2012-11-03 14:11:26 +00:00
mapopa
8568d6ffdc Remove old examples makefiles from interbase era 2012-11-03 13:45:25 +00:00
mapopa
aa332679c7 Remove Windows 3.1 clients reference from the readme 2012-11-02 10:58:40 +00:00
alexpeshkoff
57e187ad1d misc 2012-10-12 08:26:11 +00:00
robocop
f601bbdb8b Misc. 2012-08-08 02:20:30 +00:00
asfernandes
87ea81df34 Improvements to the UDR engines. 2012-06-05 15:31:32 +00:00
asfernandes
1dcad0fe90 Misc. 2012-06-03 03:00:24 +00:00
alexpeshkoff
2a01e4bcf9 Implemented CORE-3861: Make it possible to encrypt database
Also some cleanups, the most important are:                                                                                                                   
- meaningful ctor on Jrd::Lock, helping to avoid code dup                                                                                                     
- avoid unneeded h-file dependencies, making boot build engine dependent
2012-05-31 16:53:42 +00:00
asfernandes
4a431dd696 1) Change UdrCpp triggers macros to match procedures and functions - first phase.
2) Adjustments to procedures and functions.
2012-05-29 16:02:39 +00:00
asfernandes
7545b8d172 Make Linux build faster.
It seems the usage of databases with FW=ON in ext4 filesystems mounted with barriers=1 (default) is very slow.

This change decreased build time in my machine from 2m41s to 1m21s.
2011-08-21 04:11:41 +00:00
asfernandes
cd7c8dee95 Use the BLR message definition of external procedures and functions. 2011-07-10 01:23:53 +00:00
asfernandes
4f5dd005ac Work in progress on message-based external functions and procedures. 2011-06-26 15:57:55 +00:00
robocop
5ad96271e6 Misc. 2011-06-24 06:34:16 +00:00
asfernandes
5ffa6c77c8 Move v3 public include files to src/include/firebird. 2011-06-02 15:57:08 +00:00
asfernandes
7ad98cd292 Work in progress on the external engines API changes. 2011-06-01 01:44:54 +00:00
alexpeshkoff
4641d2de68 Better interfaces hierarchy: all of them are derived from IVersioned 2011-05-19 16:24:46 +00:00
asfernandes
983686d71c Added IRoutineMetadata to external engines.
Not well tested:
1) EE is broken after shared page cache.
2) Semantics of addRef/release still keeps changing in developers minds.
2011-05-15 15:37:11 +00:00
asfernandes
69dc52ba48 Integrate IAttachment and ITransaction in the external engines API. 2011-05-07 19:52:44 +00:00
asfernandes
c9b8938854 Package example 2009-11-14 20:17:30 +00:00
asfernandes
d6fb4233c1 Fix memory leak found by Claudio 2009-11-02 14:47:09 +00:00
robocop
98d9ab7534 Correction. 2009-11-02 09:31:15 +00:00
aafemt
d1ea23b97e Use right allocation method 2009-11-01 16:40:08 +00:00
asfernandes
80a1b659b1 New example/test function 2009-11-01 05:39:56 +00:00
asfernandes
0145996fb6 - 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:50:07 +00:00
makowski
e549d13fd3 fixed destbufferoverflow in empbuild.e 2009-08-25 15:27:17 +00:00
dimitr
090ca7adc3 Fixed compilation of empbuild. 2005-12-09 10:17:25 +00:00
paul_reeves
df145c9168 Bring the instructions up to date 2005-03-01 14:42:27 +00:00
paul_reeves
7de72dd72a Bring employee database up to dialect 3 2005-02-08 14:55:23 +00:00