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

237 Commits

Author SHA1 Message Date
alexpeshkoff
0c2f694ead Postfix for CORE-5100: restored binary compatibility with crypt plugins for RC1 2016-02-04 09:22:03 +00:00
alexpeshkoff
bebf1d5a70 Implemented CORE-5100: Improve control over database crypt keys 2016-02-03 13:20:41 +00:00
alexpeshkoff
081bbb72d8 comment 2016-02-01 16:13:29 +00:00
asfernandes
0e228836a8 Correction. 2016-01-30 23:40:20 +00:00
alexpeshkoff
ffa487a1bc Implemented CORE-5083: Provide method to correcty set offsets in implemented by user IMessageMetadata 2016-01-25 18:34:27 +00:00
asfernandes
c2a0ec08c0 Missing dispose. 2016-01-17 01:14:51 +00:00
alexpeshkoff
474538c7ff Added support for using pascal to access OO API 2015-12-21 17:01:26 +00:00
alexpeshkoff
e3a73a20a6 Fixed crypt application 2015-11-16 16:13:33 +00:00
aafemt
556175ca45 Missing export direcrive 2015-11-06 16:43:49 +00:00
alexpeshkoff
f001ede048 Update samples - use IUtil and IXpbBuilder
Avoid plain isc_ calls
2015-11-05 17:15:10 +00:00
paul_reeves
7224a0ac91 Disconnect from empbuild database on error. 2015-06-26 15:52:56 +00:00
paul_reeves
2daf347b4f Improve error handling and document addlang correctly as a function that updates an array, not a blob. 2015-06-26 13:23:04 +00:00
egorpugin
0e02f91a72 Add cloop to CMake build. 2015-04-07 10:08:58 +00:00
robocop
939feab036 Misc. 2015-03-13 15:26:22 +00:00
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
robocop
1a17862ca2 Clean the examples.
When the build scripts are revised, it will be able to check the changes.
2005-01-27 03:10:30 +00:00
robocop
9c89e129b5 Fixing the indentation a bit 2004-09-23 07:41:35 +00:00
aafemt
678ce54bfc Conform new events API type safety 2004-08-04 10:08:45 +00:00
aafemt
c8eb6d30ed Rollback some Blas' rash cleanup 2004-08-04 10:07:08 +00:00
brodsom
c45f1656e1 c++ comment in c source 2004-05-16 01:46:21 +00:00
brodsom
c2defdb5f7 Replace remaining gds.h 2004-04-25 23:11:11 +00:00
skidder
c64f31b712 Fix some warnings from GCC/Linux build. Some of them were subtle errors 2004-03-12 07:00:52 +00:00
skidder
08eee5ebaa Further AMD64 fixes. Given this fixes you may start playing with databases using isql_static. 2004-01-21 07:18:30 +00:00
robocop
1f4d61e7a5 clean a bit this old example 2003-09-09 11:08:04 +00:00
robocop
64de36a97a Let's hope the cure is not worse than the sickness
Took VARY from ibase.h
2003-08-13 11:06:02 +00:00
brodsom
02685f4729 Remove make_empbuild from user examples, the datbases are included in the examples. 2003-07-16 18:54:50 +00:00
brodsom
d8097dbaf0 Use isql option to set character set from command line, to connect with a command line specified database with non default charset. 2003-07-16 18:49:59 +00:00
brodsom
b4d964154d Corrections 2003-07-14 09:21:01 +00:00
brodsom
db32e179be Correction 2003-07-11 13:34:19 +00:00
brodsom
1b351afee9 Move examples builds to examples directory 2003-07-11 13:31:08 +00:00
brodsom
e2d92197ab Let winevent with api examples 2003-07-11 10:55:24 +00:00
brodsom
e303e5df98 Update. 2003-07-11 10:07:46 +00:00
brodsom
56c67b5571 Correction 2003-07-11 03:25:22 +00:00
brodsom
503235ab00 Remove generated source 2003-07-11 03:10:09 +00:00
brodsom
d4917a3c65 Change DATE to TIMESTAMP 2003-07-11 03:09:06 +00:00
brodsom
781f95f13b Win32 code patches 2003-07-11 03:08:44 +00:00
brodsom
1a2c5693ef Win32 examples build scripts 2003-07-11 03:05:27 +00:00
brodsom
947eefac27 Moving firebird/src/v5_examples to firebird/examples 2003-07-10 23:04:39 +00:00