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

372 Commits

Author SHA1 Message Date
hvlad
53dcf15d75 Change type as Adriano suggests 2015-10-08 12:07:16 +00:00
hvlad
aa8d717a7d Detect case when DLL unloaded after ExitProcess was called.
In such case all threads are killed by OS thus any synchronization is potentially dangerous and could lead to hung-up.
When this condition is detected all kind of cleanup (including engine shutdown) is skipped.
It fixed CORE-4938 and similar issues.
2015-10-08 07:41:16 +00:00
robocop
1cef962a34 Misc. 2015-09-03 17:42:23 +00:00
asfernandes
bdb050aa0e Fixed blr print for blr_pid2. 2015-08-28 15:59:41 +00:00
alexpeshkoff
b65849748f Fixed CORE-4911: Providers enumeration should not be continued on most of errors taking place in the provider 2015-08-18 14:57:50 +00:00
asfernandes
abde3b2cad Misc. 2015-08-02 15:51:01 +00:00
asfernandes
67e92f8872 Fixed CORE-4881 - Increase maximum string literal length to 64K (bytes) while setting a lower limit (of characters) for multibyte charsets based on their max char. length (UTF-8 literals will be limited to 16383 characters). 2015-07-27 01:06:51 +00:00
alexpeshkoff
6249046af0 Added getClientVersion() method to Util interface and XpbBuilder interface to work with DPB/SPB/etc formats 2015-07-26 18:25:15 +00:00
asfernandes
c2cc9ed9fc On behalf of mapopa after sourceforge crash - MET_exact_name , DYN_terminate are no more 2015-07-26 15:37:00 +00:00
alexpeshkoff
281192be55 Totally misc 2015-07-02 15:34:06 +00:00
alexpeshkoff
96d6f14bca Fixed races in events delivery caused by my recent related commit 2015-06-18 17:31:57 +00:00
alexpeshkoff
8d645cd760 Fixed regression, caused by fix for CORE-4811 - error parsing pagesize=N without spaces 2015-06-10 12:27:20 +00:00
alexpeshkoff
1b6632ac8b Fixed CORE-4811: Make user names behave according to SQL identifiers rules 2015-06-03 13:57:18 +00:00
asfernandes
d58f343b2f Misc. 2015-05-31 23:38:17 +00:00
alexpeshkoff
9bf96ddf67 Fixed CORE-4795: fbclient executes callback function twice 2015-05-18 16:46:20 +00:00
alexpeshkoff
867ef82872 Fixed CORE-4794: isc_cancel_events returns error invalid events id (handle) (code: 335545021) if event is (no longer) queued 2015-05-18 16:01:52 +00:00
alexpeshkoff
488101c26d Fixed CORE-4756: Firebird 3 events broken 2015-05-15 16:11:34 +00:00
asfernandes
336456d140 Misc. 2015-03-28 00:36:04 +00:00
alexpeshkoff
16768b177d Be more consistent putting IStatus into fast inline wrapper. Also some syntax sugar as suggested by Dmitry 2015-03-27 17:51:19 +00:00
alexpeshkoff
e7663b6bc0 Use status interface instead plain status vector when working with exceptions.
Avoid use of circullar allocation for strings in status vector (except when unavoidable for ISC API backward compatibility).
Use TLS for circullar allocation buffer instead manually working with threads' list.
2015-03-27 14:36:30 +00:00
asfernandes
4554ee24f5 Feature CORE-4722 - Aggregate linear regression functions. 2015-03-25 17:51:54 +00:00
asfernandes
64d146a06f Feature CORE-4717 - Aggregate statistical functions COVAR_SAMP, COVAR_POP and CORR - contributed by Hajime Nakagami. 2015-03-23 02:55:42 +00:00
alexpeshkoff
c4c9daf132 Avoid limits on size of status vector in engine. Ensure that status is always clean on entry to interface methods. 2015-03-20 18:02:30 +00:00
egorpugin
11cbc139d8 [build] [cmake] Add some iOS ifdefs. Hide wrong include dir during crosscompiling. 2015-03-19 11:34:04 +00:00
asfernandes
2bd863a353 Feature CORE-4714 - Aggregate statistical functions stddev_pop, stddev_samp, var_pop and var_samp - contributed by Hajime Nakagami. 2015-03-18 21:38:52 +00:00
asfernandes
2e9a581776 Added IUtil::formatStatus. 2015-03-18 02:03:25 +00:00
asfernandes
bd1094a671 Misc. 2015-03-17 21:44:55 +00:00
robocop
939feab036 Misc. 2015-03-13 15:26:22 +00:00
dimitr
bd28e024d3 Improved BLR printer for scrollable cursors. It also fixes ISQL crash for core-0883.fbt. 2015-03-12 21:52:47 +00:00
hvlad
a0bb357515 Fixed rare deadlock (take cleanupMutex before StringsBuffer::mutex) 2015-03-04 10:49:43 +00:00
alexpeshkoff
6bbf5b07b5 Fixed memory leaks in events API 2015-02-25 14:24:13 +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
alexpeshkoff
405c494147 Restore useful assert 2015-02-18 14:22:00 +00:00
alexpeshkoff
c585ef929b Quick fix for posix build after Vlad's changes 2015-02-18 13:39:47 +00:00
hvlad
24112e118e Attempt to implement thread cleanup for Windows (using DLL entry point).
It is used in dispatcher (fbclient.dll) only for now.
Fixed potential memory leak in StringsBuffer (it was possible to allocate few ThreadBuffer's for the same thread), see CORE-4683.
2015-02-18 12:44:32 +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
95dbb7395e Misc. 2015-02-09 14:39:36 +00:00
asfernandes
f1d6ed56a4 Fixed fb_get_database_handle and fb_get_transaction_handle. 2015-02-09 14:24:37 +00:00
alexpeshkoff
9a7c7a6c31 Fixed CORE-4685: Accessing DB in invalid manner when links (hard or symbolic) are used for it 2015-02-09 14:08:31 +00:00
dimitr
cc8cc680a3 Core (engine-level) support for scrollable DSQL cursors. Fixed the IResultSet API to match the JDBC spec. Renamed FB_EOF to FB_NO_DATA. Refactored some DSQL internals. 2015-01-27 10:29:30 +00:00
alexpeshkoff
c9a6728d41 Avoid use of plain structures, missing in previous FB versions, in public API 2015-01-16 17:53:38 +00:00
asfernandes
4647d5b78f Added encode/decode date/time methods to IUtil interface. 2015-01-15 14:55:27 +00:00
asfernandes
2a857cb415 Misc. 2015-01-15 01:17:27 +00:00
asfernandes
2e35ca0bd4 Misc. 2015-01-14 14:38:26 +00:00
asfernandes
f16c8c3179 Renamed "Utl" API to "Util". 2015-01-14 14:21:22 +00:00
asfernandes
346992fcec Remove IMaster::same from the API. 2015-01-12 14:56:55 +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
alexpeshkoff
ef1742b0c3 Fixed my severe bug in one of previous commits 2014-12-29 18:04:36 +00:00
starodubov
13c911f47e Revert fix for CORE-4654, because it depends on unsupported compiler 2014-12-29 12:00:05 +00:00
starodubov
a8c8f22de0 Fixed POSIX build (CORE-4654) 2014-12-29 10:56:35 +00:00
alexpeshkoff
b7621d6f9d Fixed CORE-4651: CREATE DATABASE fails for the user having RDB$ADMIN rights in security database 2014-12-26 14:10:39 +00:00
alexpeshkoff
df0ecdac9a Implemented CORE-4607: Add support for having >1 UserManager in firebird.conf and use them from SQL 2014-12-24 14:50:03 +00:00
asfernandes
4c4e574fe2 Warnings. 2014-12-19 15:28:32 +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
alexpeshkoff
931742a87a Patch from Alexey - marked unused function as NOT_USED_OR_REPLACED 2014-12-18 10:20:39 +00:00
alexpeshkoff
c14a1210b0 Work in progress on CORE-3632: make all file descriptors, opened by firebird, close on exec() 2014-12-17 14:31:02 +00:00
mrotteveel
155508d05e CORE-4526 Support for SQL:2008 OFFSET and FETCH clauses 2014-11-29 15:39:59 +00:00
hvlad
d5c08a9fd0 Move ConfigRoot from common to the yvalve. Add its methods to the public interface ConfigManager.
Now all plug-ins have the same root\install folders.
It should fix CORE-4581 and related issues.
MSVC10 and MSVC12 builds are updated, Posix and Darwin builds will follow.
2014-11-26 09:45:42 +00:00
asfernandes
49d1a73994 Get rid of upgradeInterface API method and some adjustments. To be continued. 2014-11-10 14:45:40 +00:00
asfernandes
0463754347 Misc. 2014-10-25 18:39:45 +00:00
dimitr
309b494102 Improvement CORE-3526: Support for WHEN SQLSTATE. 2014-10-16 16:35:18 +00:00
alexpeshkoff
05b7c6ce81 Use thread destructor function to free string buffer after thread completion 2014-10-15 11:52:38 +00:00
alexpeshkoff
482377d43b One more segfault in old API emulation 2014-10-14 10:21:35 +00:00
alexpeshkoff
ab241b6b1b Fixed search for free circullar buffer when using LWP number as thread id 2014-10-13 09:30:03 +00:00
alexpeshkoff
018355246d Fixed AV caused by one of my recent commits - thanks to Vlad 2014-10-10 12:05:08 +00:00
alexpeshkoff
4511082015 Fixed segfaults in DTC - thanks to Adriano 2014-10-02 14:46:22 +00:00
alexpeshkoff
5ac759124e Fixed 2 segfaults when using UDRs 2014-10-01 12:47:04 +00:00
alexpeshkoff
ba62ee9947 Make it build on windows, work in progress - boot build is working 2014-09-29 17:24:30 +00:00
alexpeshkoff
153de0f271 Language independent API 2014-09-29 11:03:47 +00:00
asfernandes
6a864ad949 Misc. 2014-09-07 19:37:00 +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
robocop
180203f8e3 I assume this is a bug. 2014-08-17 03:52:36 +00:00
alexpeshkoff
f0a67cf971 Clear handle in JBlob when blob is destroyed 2014-08-15 15:37:13 +00:00
dimitr
0fa3945f6a Corrections for the prior commit:Explicitly distinguish between thread handle and thread id. Return LWP as thread id on Linux. 2014-08-15 14:59:38 +00:00
dimitr
36af3d8cb2 Cleanup and small refactoring to avoid redundancy. 2014-08-15 14:19:02 +00:00
alexpeshkoff
2b0242048a Cleanup 2014-08-15 13:14:42 +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
dimitr
a7afd21348 Commented out the annoying (thus supposedly wrong?) assertion. 2014-07-31 09:08:27 +00:00
alexpeshkoff
532181a7f9 Renamed as suggested by Nickolay and Dmitry 2014-07-28 13:01:10 +00:00
alexpeshkoff
4bdc2a3e19 Replaced macro FB_ALIGN with function fbAlign, minor related cleanup 2014-07-24 06:41:38 +00:00
skidder
7c743fc291 Fix build warnings 2014-07-17 18:48:46 +00:00
asfernandes
c35228c0ee Misc. 2014-07-05 18:36:54 +00:00
alexpeshkoff
2b066db7ab Fixed CORE-4478: Failure to load provider/plugin not reported 2014-07-04 08:25:49 +00:00
alexpeshkoff
1213828e37 Added missing check for provider status before creating yvalve objects 2014-07-03 09:37:59 +00:00
alexpeshkoff
a9721f18e0 Added first parameter IStatus* to a lot of functions in API interfaces 2014-07-02 12:57:12 +00:00
alexpeshkoff
f1e3ba674b Fixed CORE-4475: attempt to create lock files directory fails during cleanup 2014-06-30 11:45:53 +00:00
asfernandes
08f3a00cb0 Misc. 2014-06-20 02:28:22 +00:00
alexpeshkoff
86e729e30e Fixed CORE-4440: isql crash without connect when execute command "show version" 2014-06-17 12:45:14 +00:00
alexpeshkoff
dcb2f81695 Fixed transactions leak caused by my recent commit 2014-06-10 15:04:01 +00:00
alexpeshkoff
6a2016235a Fixed CORE-4435: After calling release() for attachment to database (instead detach) in embedded mode attachment remains active forever (and some cleanup re. reference counters) 2014-06-10 07:13:34 +00:00
alexpeshkoff
467ff965f9 Corrected patch from Dmitry Sibiryakov 2014-05-05 10:07:48 +00:00
alexpeshkoff
9bd0939f09 Implemented CORE-1377: Add an ability to change role without reconnecting to database 2014-04-30 15:12:12 +00:00
alexpeshkoff
3d943864f9 Fixed CORE-4395: execute statement on external doesn't find Firebird 2.5 database 2014-04-28 12:51:34 +00:00
asfernandes
44798fb0d0 Fixed CORE-4396 - Incorrect result query if it is execute through "execute statement". 2014-04-21 01:01:18 +00:00
asfernandes
913c435667 Misc. 2014-04-19 21:36:55 +00:00
alexpeshkoff
58ec2954c1 Fixed CORE-4394: Cursor not found error when using legacy API 2014-04-18 12:08:17 +00:00
asfernandes
cabf79d843 Correction. 2014-04-13 01:46:10 +00:00