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

1641 Commits

Author SHA1 Message Date
hvlad
91c1108608 Fixed Windows build 2015-03-22 22:43:12 +00:00
mkubecek
1aba1dd1d5 class SockAddr code cleanup 2015-03-22 14:26:24 +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
asfernandes
bd1094a671 Misc. 2015-03-17 21:44:55 +00:00
robocop
939feab036 Misc. 2015-03-13 15:26:22 +00:00
alexpeshkoff
4b08cccbf0 Dynamic buffer for status vector and dynamic strings in IStatus 2015-02-25 17:03:39 +00:00
alexpeshkoff
6bbf5b07b5 Fixed memory leaks in events API 2015-02-25 14:24:13 +00:00
alexpeshkoff
7b7d439cef Lost exception when initializing port with compression - thanks to Claudio 2015-02-24 12:58:27 +00:00
asfernandes
14bc11c27b Fixed segfault with events and the remote protocol. 2015-02-20 14:27:22 +00:00
hvlad
660f5b0cc5 More memory leaks (CORE-4683) 2015-02-20 09:38:40 +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
alexpeshkoff
6d7af88734 WIP on CORE-3885: Firebird for Android, AI_V4MAPPED flag not supported, now server startup succeeds 2015-02-03 14:24:54 +00:00
egorpugin
acbd633e45 [build] [cmake] Make 'remote' and 'common' targets private for 'yvalve' target. 2015-01-30 20:23:34 +00:00
alexpeshkoff
69cdd58f19 Work in progress on CORE-3885: Firebird for Android, build is complete 2015-01-27 10:46:48 +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
dimitr
f07f8a68c8 Attempted to fix the incorrect events wrapping, causing hangs/crashes and memory leaks. 2015-01-26 21:33:56 +00:00
egorpugin
14163d7e3e [build] [cmake] Initial CMake build system commit. 2015-01-21 11:21:51 +00:00
egorpugin
d397e68a48 [build] [cmake] Prepare sources for CMake building. Add clang preprocessor defs, ARM architecture defs, some Android-related defs. Add 'qsort_r' function search to configure.ac. 2015-01-21 11:11:04 +00:00
dimitr
4e7d2da77c 1) Make xnet://db connection strings useful with forward slashes
2) Unified port numbers / protocol names syntax (thus allowing custom ports in inet://host/db connection strings)
2015-01-20 18:59:18 +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
2a857cb415 Misc. 2015-01-15 01:17:27 +00:00
asfernandes
509c832bac Warning. 2015-01-15 01:16:56 +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
c4228eb623 Misc. 2015-01-12 00:04:14 +00:00
dimitr
5d3fd3dbe0 Slightly refactored the BLR parser routines to avoid crazy error reporting and protect against NULL pointer dereference. The error handling still sucks, but it was the case before me ;-) 2015-01-05 16:08:21 +00:00
alexpeshkoff
fdc8953b30 Cleanup - remove debris of pre-firebird authentication 2014-12-29 16:15:49 +00:00
dimitr
8c8473c75e Cleanup. 2014-12-29 15:48:26 +00:00
dimitr
9050d90a8e Cleaned up the API from the legacy crap (fortunately, not needed these days). 2014-12-29 15:45:49 +00:00
dimitr
5f22981210 Patches by Alexey Pavlov. 2014-12-22 08:51:56 +00:00
asfernandes
dc0d56ed6d Misc. 2014-12-21 01:54:28 +00:00
asfernandes
d8a0ff5f4b Generate interfaces with I-prefix. 2014-12-19 15:24:44 +00:00
hvlad
581b757b4b Fix Windows build 2014-12-18 07:24:09 +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
dimitr
729ff618b9 This should fix CORE-4639: Linux server may reject connections with a transliteration error. 2014-12-16 10:30:31 +00:00
dimitr
8e968e4e7c Fixed missing initialization of the output variable in the case of FB_EOF. 2014-12-04 18:24:13 +00:00
alexpeshkoff
7006c82fc3 Fixed CORE-4471: Legacy_Auth plugin does not connect from FB3 to FB2.5 server when tried after Win_Sspi 2014-12-03 14:27:11 +00:00
hvlad
5d6723c25b Support for zlib on Windows 2014-12-01 09:04:39 +00:00
asfernandes
cebc7c36b3 Misc. 2014-11-30 21:09:39 +00:00
alexpeshkoff
f1fcb0ced1 Establish uncompressed connection in case of missing zlib 2014-11-28 13:46:29 +00:00
alexpeshkoff
f58b1433fb Misc encryption enhancements 2014-11-28 11:58:08 +00:00
alexpeshkoff
11c452251d Make zlib allocate memory from our pool
Add Z flag in protocol version for compressed connections
Documentation
2014-11-27 13:51:59 +00:00
hvlad
e487537ad2 Fix build errors when WIRE_COMPRESS_SUPPORT not defined 2014-11-27 08:15:16 +00:00
alexpeshkoff
6cb0fdb082 Load zlib dynamically to make it possible for the client to run without it
Added configure switch to turn off build with compression
Cleanup zlib streams to avoid memory leak
Use SHRLIB_EXT instead explicit "so"
2014-11-26 17:43:45 +00:00
alexpeshkoff
647971f162 Remove unneeded any more assert, causing problems for a build w/o compression 2014-11-26 10:20:45 +00:00
alexpeshkoff
e65a5e3b3b Implemented CORE-733: Compress Data over the Network 2014-11-25 13:24:10 +00:00
hvlad
c057dd971f Add check if IPv6 is supported by OS.
Windows implementation is complete, while POSIX implementation should be reviewed and fixed if necessary.
2014-11-22 10:42:54 +00:00
mkubecek
7d2568566f Fix MSVC build (it does not define EAI_ADDRFAMILY) 2014-11-20 21:16:15 +00:00
mkubecek
81f68710d1 Fix server address resolution on systems with IPv6 support missing or disabled 2014-11-20 09:41:44 +00:00
alexpeshkoff
ca4ac0718a Avoid segfault in a case when port_context is reset for broken port 2014-11-16 17:33:09 +00:00
asfernandes
0973e76135 Misc. 2014-11-16 02:41:47 +00:00
hvlad
c1ec7896b6 Fixed compilation errors on Windows after IPv6 patches 2014-11-14 14:54:09 +00:00
mkubecek
ae4f286c1a Improvement CORE-3226: IPv6 support (8/9) add config directive for IPV6_V6ONLY socket option 2014-11-12 17:31:01 +00:00
mkubecek
983627a2d7 Improvement CORE-3226: IPv6 support (7/9) remove unused functions 2014-11-12 17:30:07 +00:00
mkubecek
6988b9901b Improvement CORE-3226: IPv6 support (6/9) implement IPv6 support for aux connection 2014-11-12 17:29:15 +00:00
mkubecek
263f12a1f4 Improvement CORE-3226: IPv6 support (5/9) implement IPv6 support for main connection 2014-11-12 17:28:37 +00:00
mkubecek
2caf1a6b49 Improvement CORE-3226: IPv6 support (4/9) handle IPv6 addresses in utility functions 2014-11-12 17:27:46 +00:00
mkubecek
d3c1d72515 Improvement CORE-3226: IPv6 support (3/9) socket address abstraction class 2014-11-12 17:27:02 +00:00
mkubecek
5efd039202 Improvement CORE-3226: IPv6 support (2/9) do not pass pointer to peer address to accept() 2014-11-12 17:24:44 +00:00
mkubecek
39b8553530 Improvement CORE-3226: IPv6 support (1/9) allow square brackets around host in connection string 2014-11-12 17:24:09 +00:00
mapopa
c824ee7c2f Apollo computers are long gone 2014-11-07 15:30:24 +00:00
mapopa
bca66ed3b1 Fix comment non-VMS to non-Windows 2014-11-07 15:22:08 +00:00
mkubecek
e7308c1c63 Fixed CORE-4586: connections to FB3 in "standaloneClassic" mode (firebird -s) hang up 2014-10-29 17:43:22 +00:00
alexpeshkoff
e2c5296097 Fixed a bug in unofficial release of beta1 reported by Martijn in devel - missing security context error when using separate SecurityDatabase 2014-10-28 13:41:40 +00:00
asfernandes
0463754347 Misc. 2014-10-25 18:39:45 +00:00
dimitr
0836bbbfa3 Improved the batching (prefetch) logic. This is the second part of CORE-2530. 2014-10-11 09:02:09 +00:00
dimitr
5baa5ac4ec Restore zero-initialization of message items flagged as NULLs. 2014-10-03 16:15:36 +00:00
alexpeshkoff
f5645faaa0 Fixed windows build 2014-09-30 14:21:44 +00:00
alexpeshkoff
153de0f271 Language independent API 2014-09-29 11:03:47 +00:00
alexpeshkoff
fec7a2b7b1 Fixed access to freed memory in remote redirector. This should fix CORE-4557. 2014-09-29 10:51:40 +00:00
dimitr
4b5b82615b Resolved CORE-2897: Don't send full length of field over the wire when field is null. 2014-09-10 11:55:43 +00:00
alexpeshkoff
9f5be859ad Fixed VC10 build 2014-09-03 13:51:48 +00:00
alexpeshkoff
7c5eae4752 Minor debug enhancement 2014-08-28 09:30:17 +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
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
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
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
asfernandes
719b150da0 Misc. 2014-07-20 15:44:47 +00:00
skidder
e2e901939c Fix GCC warnings 2014-07-17 21:17:15 +00:00
skidder
7c743fc291 Fix build warnings 2014-07-17 18:48:46 +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
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
ec75ae684d Avoid shutdown delay when all logins appear wrong due to closed security database 2014-06-10 07:06:56 +00:00
mapopa
c481e73765 Cleanup convert function NOT_USED_OR_REPLACED 2014-05-16 13:21:16 +00:00
mapopa
1fd0a9202d Cleanup 2014-05-16 13:06:13 +00:00
mapopa
19e4918bbb Cleanup dead platforms 2014-05-09 09:01:51 +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
alexpeshkoff
8b28dd1da9 Implemented improvement CORE-4387: IStatement::execute() and IAttachment::execute() functions should return on error pointer to old transaction interface 2014-04-08 13:45:21 +00:00
alexpeshkoff
20e846369e Implemented CORE-3370: Resolve additional aspects of multiple security databases from services and cross-database requests POV (mapping names) 2014-04-04 15:57:18 +00:00
asfernandes
30b0b5227b Misc. 2014-03-31 02:04:26 +00:00
robocop
daae978a9c Misc. 2014-03-26 19:10:08 +00:00
dimitr
8623583aab More correct textual description. 2014-03-22 16:54:45 +00:00
robocop
e53ce46c1d Windows only: I prefer to know from the properties dialog when the Server is using the -m startup option. 2014-03-21 23:05:56 +00:00
alexpeshkoff
26b090c93b Added access to configuration interfaces from IMaster and support for getting configured directories 2014-02-12 11:20:55 +00:00
paulbeach
cd2506896d Users on Windows are hitting the 1024 FD_SETSIZE socket limit 2014-02-03 08:47:20 +00:00
asfernandes
48ea42f1c0 Misc. 2014-01-19 20:38:16 +00:00
asfernandes
8e932b1809 Misc. and fixes. 2014-01-17 15:05:19 +00:00
alexpeshkoff
f2f4fb9e8e misc 2014-01-17 13:14:01 +00:00
alexpeshkoff
411c3718ca Fixed CORE-4286: "Statement already has a cursor assigned" error when trying to execute another SQL statement using different cursor name. Moved method setCursorName() from IStatement to IResultSet - it was my fault when splitting cursor from statement. 2014-01-17 12:33:23 +00:00
alexpeshkoff
949defe5e6 Implemented CORE-4317: Make ISQL use new object API with 32-bit length for object sizes (messages, SQL statements, etc.)
Implementation also includes changes in GPRE, but this utility is not complete - only commands, used in ISQL,
are working in code generator for new API.
New interface IUtl is added - it performs tasks, related with database objects (attachment, transaction, etc.),
but not requiring routing in YValve, i.e. client only tasks.
2014-01-15 13:02:08 +00:00
dimitr
13965d5749 Correction. 2014-01-14 10:41:25 +00:00
dimitr
d1f2e501b3 Fixed the server crash during disconnection forced by the network layer. 2014-01-14 09:00:40 +00:00
dimitr
f3b8f38c22 Restored the error reporting for the already closed cursor. 2014-01-06 08:03:14 +00:00
dimitr
adef7226a0 Fixed CORE-4313: Error "Attempt to reopen an open cursor" may be raised if the query handle is reused in a different transaction. 2014-01-05 16:25:12 +00:00
alexpeshkoff
db7baf02e6 Removed wrong assert 2013-12-23 10:55:08 +00:00
dimitr
b2375e34d7 I prefer to explicitly initialize suspicious pointers. Related to CORE-4300 (although there's no crash here). 2013-12-19 11:41:11 +00:00
alexpeshkoff
3d3a143bf3 Fixed issues noticed by Claudio 2013-12-09 08:19:49 +00:00
alexpeshkoff
3ed06e3339 Fixed post-Alpha1 security regression, reported privately by Pavel 2013-12-02 14:28:40 +00:00
alexpeshkoff
b877a815a8 Fixed CORE-4283: Resource temporarily unavailable errors while simultaneously registering events 2013-11-27 12:46:04 +00:00
asfernandes
de4c3b76c3 Fixed clang build, broken since r58800 with linker undefined references. 2013-11-24 23:44:51 +00:00
asfernandes
9c9dd72977 Misc. 2013-11-24 03:21:11 +00:00
alexpeshkoff
4a8fe5a0de Implemented CORE-4273: Per-database control on access to database from remote stations 2013-11-22 15:21:11 +00:00
alexpeshkoff
1b38b028b8 Scale of variable is signed value 2013-11-22 07:44:22 +00:00
alexpeshkoff
e18d98c60b misc 2013-11-22 06:39:20 +00:00
asfernandes
d543daf51a Misc. 2013-11-21 01:17:08 +00:00
alexpeshkoff
83db69c849 Fixed new gcc 4.7 warning "deleting object of polymorphic class" in many places. Adjusted use of interface types (reference counted vs just vesrioned). Avoided some hacks caused by badly chosen interface type. 2013-11-18 12:20:23 +00:00
dimitr
efa979b1c1 Prevent races by allowing the worker thread to process op_exit / op_disconnect packets only after the listener had synchronously called cancel_operation(). This fixes CORE-4268: Server may crash while disconnecting from a database. 2013-11-15 09:52:55 +00:00
alexpeshkoff
b760d0ef0d Fixed bug, reported privately by Dmitry 2013-11-15 08:30:29 +00:00
alexpeshkoff
120b10a78a Implemented CORE-4263: Database linger 2013-11-14 16:16:24 +00:00
alexpeshkoff
cbdf8513a9 misc.debug 2013-11-14 13:52:47 +00:00
alexpeshkoff
9dbdab9d28 Enhanced diags for unprepared statement 2013-11-05 11:54:06 +00:00
alexpeshkoff
3947227e43 Do not encrypt xnet connections 2013-11-05 08:53:49 +00:00
alexpeshkoff
09eef8b980 Fixed "Enabled" state of wire encyption 2013-11-05 06:52:50 +00:00
hvlad
15e24b0dd7 Convert legacy auth server to non-builtin plugin on windows (MSVC10 build). 2013-10-29 08:46:32 +00:00
alexpeshkoff
35093b1a92 Rollback some of my wrong changes 2013-10-28 11:51:54 +00:00
alexpeshkoff
de258c2844 Convert legacy auth server to non-builtin plugin on posix 2013-10-28 10:27:40 +00:00
alexpeshkoff
5a054cca16 Fix found by Jim Starkey man-in-themiddle attack on ATTACH packet.
That packet may contain database name, command line for service and/or some other important and critical information.
To avoid such attack wire encryption is started before attaching database or service manager, right after connect.
Also should fix a number of issues found in Alpha1 regarding services attach.
2013-10-16 12:53:04 +00:00
alexpeshkoff
18d66a33b4 Cleanup - avoid unneeded generate's argument in SortedArray and Hash 2013-09-24 08:46:10 +00:00
alexpeshkoff
9f3a3be189 Fixed segfault when releasing IMessageMetadata, reported by Dmitry privately. It was bad idea to return to the user interface created by plugin. 2013-07-19 13:51:54 +00:00
dimitr
ff8d492043 Fixed server crash in both remote server and remote client. 2013-07-10 10:06:42 +00:00
dimitr
8524f63d14 Fixed CORE-4132: gbak requires exclusive access. 2013-06-30 19:05:34 +00:00
asfernandes
21b23ef28d Misc. 2013-06-28 02:03:10 +00:00
alexpeshkoff
1de6b3de52 Authentication handshake improvements and fixes. Make debug output better readable. 2013-06-24 08:39:29 +00:00
asfernandes
768b79c361 Improvements and corrections to message builder and UDR. 2013-06-18 15:50:48 +00:00
hvlad
2161546e64 Path by Alex: wire encryption for WNET 2013-05-22 12:18:32 +00:00
alexpeshkoff
a1335224f4 comment 2013-05-22 10:52:56 +00:00
alexpeshkoff
c3e6fe4632 Fixed some authentication errors 2013-05-22 07:31:34 +00:00
robocop
0ad2e4b52b Misc. 2013-05-21 21:49:26 +00:00
alexpeshkoff
b9a96911ca Avoid extra atomic operations when assigning pointer to the object with pre-incremented counter (like returned from the function) to reference-counted pointer holder 2013-04-17 11:16:06 +00:00
alexpeshkoff
a4fa821ec4 Fixed assertion in services when talking to pre-FB3 server 2013-04-16 08:54:48 +00:00
alexpeshkoff
f7f798f4e7 Fixed a bug in one of my recent commits - thanks to Claudio 2013-04-15 15:58:52 +00:00
dimitr
551e2416c6 Add interface support for scrollable DSQL cursors. Implementation will follow later. 2013-04-13 07:11:58 +00:00
alexpeshkoff
d82ebf8cf2 Fixed regression in protocol < 13 introduced when adding statement flags 2013-04-11 14:28:01 +00:00
alexpeshkoff
abf4beb433 Fixed security issue - plain password remained in DPB 2013-04-11 13:35:37 +00:00
dimitr
f2a72c8285 Finished the 16-bit -> 32-bit conversion for SQL/BLR/buffer/message sizes, this time in the remote provider. The server has been proven to be able to create a procedure longer than 64KB in length and execute it, but more testing is required.
A major battle against 64-bit build warnings were performed.
Additionally, fixed CORE-3943. It does affect compatibility with older servers, but at the minor level.
2013-04-11 10:07:38 +00:00
asfernandes
68ca82d894 Misc. 2013-04-07 23:48:14 +00:00
mapopa
65a4d15027 Remove unused and broken code defined with PIGGYBACK 2013-04-06 17:58:35 +00:00
mapopa
4e5a7a9898 Cleanup comments and unused code 2013-04-06 17:46:27 +00:00
hvlad
57ac684f67 Fixed Windows build 2013-04-05 07:48:05 +00:00
alexpeshkoff
8780552b94 Added support for changing configuration (client and embedded) from API 2013-04-04 13:17:57 +00:00
mapopa
f6f7b62f64 SIGURG is not used , cleanup commented code 2013-04-01 21:40:55 +00:00
asfernandes
26ab241631 Misc. 2013-03-30 02:31:03 +00:00
alexpeshkoff
e4356e4b46 Added operator include to config files 2013-03-27 11:45:02 +00:00
dimitr
2001352060 Misc. 2013-03-24 06:38:32 +00:00
alexpeshkoff
445bd69d9f Fixed CORE-3269: When server gets unavailbale, client does not perform detach correctly 2013-03-22 14:29:51 +00:00
hvlad
2df60f21ea Fixed AV in remote server code reported by Dmitry Kovalenko in fb-devel 2013-03-20 13:13:33 +00:00
asfernandes
0d299d455a Remove FbMessage struct from the API.
This struct lost its main value (group various blr-related properties in a single parameter).
And since openCursor/fetch already split the message/buffer, it does not make sense anymore to have it.
2013-02-26 03:42:19 +00:00
asfernandes
53d4d58113 Change message buffers type to void*. It adds some casts, but avoid them in users' code. 2013-02-23 03:09:17 +00:00
alexpeshkoff
5ecced8462 Better names for statement's flags 2013-02-22 07:24:46 +00:00
asfernandes
5c436f8d91 Misc. 2013-02-21 23:25:10 +00:00
alexpeshkoff
f1779a7398 Do not prefetch unneeded information in IAttachment::openCursor() 2013-02-19 12:03:07 +00:00
alexpeshkoff
ba9413b26a Add IStatement::getFlags() to help user make a solution what to do with SQL statement 2013-02-19 11:20:49 +00:00
asfernandes
ba09d5262f Misc. 2013-02-18 15:28:50 +00:00
alexpeshkoff
37d353d392 Make openCursor() use default output format when none is given explicitly 2013-02-18 13:53:46 +00:00
asfernandes
d3f8597c53 Misc. 2013-02-18 02:14:43 +00:00
alexpeshkoff
fc12495d0e Modified IStatement interface in our API:
1. Never allocate empty statement - always use att->prepare() to create statement interface
2. Separated IStatement into 2 parts - statement itself and resultset.
3. Added stmt->openCursor() (and att->openCursor() for unprepared statements) to create IResultSet.
4. Always use IMessageMetadata (former IParametersMetadata) to pass message fromat info from client,
   therefore avoiding need in BLR generation in client applications.
2013-02-17 12:08:53 +00:00
dimitr
149648f43a The remaining fixes for Windows. 2012-12-15 08:12:38 +00:00
alexpeshkoff
c7454a49a5 Work in progress (committed due to SF upgrade). Checked only on SS.
1. Frontported fix for CORE-3935 and CORE-3993.
2. Added debugging support for mutexes and rwlocks in Vulcan style.
Unfortunately after last 'svn up' build asserts in JrdStatement:71.
2012-12-14 17:59:02 +00:00
alexpeshkoff
3e07dd131f Begin wire crypt only after successfull authentication - this helps avoid meaningless message when password is wrong, thanks to Vlad 2012-11-01 14:38:14 +00:00
alexpeshkoff
4ca6e669fe 1. Fixed CORE-3786: Firebird 2.5.1 Hangs on MacOSX 10.7 (Lion) on DB create after reboot.
2. Cleanup: avoid functional style in stuff exception.
2012-11-01 11:40:18 +00:00
robocop
a4c260dbdc Misc. 2012-09-30 01:50:41 +00:00
dimitr
9f2a992078 Implemented:
CORE-2780: Include client library version and protocol version in mon$attachments
CORE-2187: Return the Hostname in mon$attachments
CORE-3779: Report OS user name in MON$ATTACHMENTS
+ some cleanup.
2012-09-12 07:45:51 +00:00
alexpeshkoff
8e147a5bf6 Fixed CORE-3912: segfault in superclassic 2012-08-31 10:26:37 +00:00
asfernandes
4d0506057c Fixed CORE-3596 - Client library cannot connect to the non-ASCII host name. 2012-08-14 15:49:20 +00:00
robocop
f601bbdb8b Misc. 2012-08-08 02:20:30 +00:00
alexpeshkoff
0fc893a4e1 Better names for API functions 2012-06-26 13:43:26 +00:00
asfernandes
cf6e699698 Misc. 2012-06-03 15:43:59 +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
ca53e78787 Misc. 2012-05-06 22:27:03 +00:00
alexpeshkoff
7242fbcd7c Fix java client login 2012-04-23 08:20:40 +00:00
alexpeshkoff
b11ac98c96 fixed posix build 2012-04-19 05:14:01 +00:00
hvlad
f432739e3e Fixed bug CORE-3819 : Wrong service name to port address resolution in database connection string 2012-04-16 15:17:37 +00:00
robocop
b7d62c2d26 Misc. 2012-04-10 01:46:14 +00:00
asfernandes
fa861b6e95 Misc. 2012-04-05 18:28:44 +00:00
alexpeshkoff
f3c9e45474 Fixed CORE-3759: Problem with fetch on DDL statement in the remote protocol 2012-03-29 15:55:49 +00:00
asfernandes
f3ee441533 Misc. 2012-03-17 15:35:53 +00:00
alexpeshkoff
e92f494e72 Finished with conversions of all strings in both kinds of SPBs (attach/start) to UTF8 2012-03-16 17:10:31 +00:00
alexpeshkoff
016d95d133 Fixed assertion at client side in service logon 2012-03-15 14:39:38 +00:00
dimitr
d7deadbd5a Totally misc. 2012-03-14 17:39:01 +00:00
alexpeshkoff
2f7c526728 Implemented CORE-3788: Make all utilities follow same rules when expanding database name 2012-03-14 08:46:27 +00:00
asfernandes
1758b1fdbe Misc. 2012-03-10 15:37:52 +00:00
alexpeshkoff
1d18be26d5 Changed order of args as requested by Claudio 2012-03-10 12:07:47 +00:00
hvlad
52f3ed895e Fixed Windows build 2012-03-01 18:18:46 +00:00
alexpeshkoff
4e795f4047 Include platform definitions file common.h in firebird.h. Use OS-specific ThreadId instead artificial FB_THREAD_ID, avoiding unneeded casts in the code. This should fix BSD and MAC ports. 2012-03-01 08:55:43 +00:00
alexpeshkoff
4201b434a1 cleanup 2012-02-27 16:07:51 +00:00
asfernandes
435666cea5 Misc. 2012-02-26 14:27:27 +00:00
alexpeshkoff
2a5e7e7f32 Implemented CORE-672: "Over the wire" connection encryption 2012-02-24 12:39:27 +00:00
robocop
5d2a0118c0 I don't see the point in creating temporary strings in these cases. 2012-02-15 03:43:06 +00:00
asfernandes
27bb1f8bc1 1) Removed READ/WRITE BLOB sql commands. 2) Refactored request operations to fix server crashes. 2012-02-03 19:01:36 +00:00
asfernandes
e51ddc7a38 Misc. 2012-01-29 02:53:44 +00:00
robocop
32712c2c40 Misc and cleanup 2012-01-27 09:10:12 +00:00
dimitr
e265d5e6a3 Simplification. 2012-01-25 07:32:35 +00:00
dimitr
88336dfde3 Cleaned up and slightly refactored the XDR logic. 2012-01-25 07:13:53 +00:00
dimitr
9c035feea4 Front ported CORE-3730: isc_dsql_exec_immed2() loses input parameter value with RETURNING clause. 2012-01-24 10:02:46 +00:00
robocop
21cd78a0fd Cleanup: unused functions, parameters & variables. 2012-01-24 03:37:43 +00:00
asfernandes
ed3d7ed720 Misc. 2012-01-20 01:42:03 +00:00
robocop
670b1a5d56 Cleanup. 2012-01-19 06:26:12 +00:00
robocop
e2914070b9 Misc. 2012-01-19 04:54:39 +00:00
asfernandes
d66783ae3c Misc. 2012-01-16 20:33:52 +00:00
alexpeshkoff
0c7d2c29d8 Fixed CORE-3718: Client Library Hangs after unsuccessful connection to remote auxiliary (events) port 2012-01-16 15:01:17 +00:00
alexpeshkoff
47f8bca945 Fixed multifactor auth-plugin use on server - thanks to Claudio 2012-01-12 13:53:11 +00:00
alexpeshkoff
c2e8b26b74 Cleanup - use flags parameter of alloc_port() function for async ports 2012-01-11 13:24:13 +00:00
alexpeshkoff
b55dc77d0d Misc 2012-01-11 12:05:27 +00:00
dimitr
cf9427d88b Removed support for the remote protocol versions prior to v10. 2012-01-06 11:24:37 +00:00
asfernandes
9394fea3ab Misc. 2012-01-05 01:07:06 +00:00
dimitr
abf5c027f4 Totally misc. 2012-01-03 18:26:51 +00:00
dimitr
704694f5c7 Removed the outdated RPC support + some misc cleanup. 2012-01-03 18:06:42 +00:00
dimitr
db982b80fe Misc. 2011-12-28 18:16:11 +00:00
asfernandes
c75f170530 Misc. 2011-12-28 01:07:49 +00:00
alexpeshkoff
c31aea58ed Diagnostics 2011-12-26 16:06:00 +00:00
hvlad
a3ebd462fd Built SRP server into firebird.exe 2011-12-26 14:46:28 +00:00
dimitr
b5919087f0 A patch resolving client-side crashes with a new fbclient. Thanks to Alex. 2011-12-26 13:51:45 +00:00
dimitr
0b00d98167 Fixed the asserts in the debug build. 2011-12-26 13:17:58 +00:00
dimitr
1129013cf8 Fixed a connection error (FB3 client - FB3 server), only LegacyAuth was affected. 2011-12-26 12:57:30 +00:00
dimitr
1888b962cd Fixed some compilation errors. 2011-12-23 18:33:23 +00:00
dimitr
1a0b1cc358 Correction. 2011-12-23 17:59:45 +00:00
alexpeshkoff
7fb8ebd3a9 Fixed CORE-1898: Increase the password length from 8 characters, CORE-3372: Simplify process of non-default security database creation 2011-12-23 12:43:58 +00:00
dimitr
e7c9ebba12 Re-implemented the disabled code in the remote server. Cleaned up the legacy logic that doesn't look actual these days.
Some code refactoring.
2011-12-22 15:32:06 +00:00
asfernandes
906ea4729e Misc. 2011-10-27 01:04:14 +00:00
alexpeshkoff
3513087d98 Fixed services to make them work with trusted auth emulator and old client 2011-10-20 12:20:33 +00:00
asfernandes
5635607c9d Avoid exception in successfull attachments. 2011-10-12 23:17:45 +00:00
alexpeshkoff
343c7862bf Fixed CORE-3607: Solaris does not define the RLIMIT_NPROC limit 2011-10-11 11:59:47 +00:00
asfernandes
eb5689ef0e Misc. 2011-10-07 02:33:02 +00:00
alexpeshkoff
4b87ef2341 Front-ported fix for unregistered bug - check return value of poll() before using it's output structures 2011-10-04 13:43:38 +00:00
alexpeshkoff
70ddf7a875 Make services work correctly with multiple security databases 2011-10-04 12:51:57 +00:00
alexpeshkoff
c6b3a162b8 misc 2011-09-27 11:51:24 +00:00
dimitr
b528faa162 Corrections. 2011-09-22 15:14:36 +00:00
alexpeshkoff
b76a2d8c47 Getting ready for support of multiple security databases in services 2011-08-09 12:11:17 +00:00
alexpeshkoff
9123dcaf78 Fixed a hang in client when trying to attach to non-existent database with old-version firebird server running on same box 2011-07-27 09:06:41 +00:00
alexpeshkoff
7e22abb2b7 Simplified code - thanks to Claudio 2011-07-18 11:50:51 +00:00
dimitr
ac96c3ae97 Front ported CORE-3554: Server crashes during prepare or throws incorrect parsing error if the remotely passed SQL query is empty. 2011-07-15 09:05:36 +00:00
robocop
e3f52f2520 Misc. 2011-07-07 07:58:02 +00:00
asfernandes
577e9e4b7e Misc. 2011-07-02 22:10:07 +00:00
alexpeshkoff
13e0341fea Use interface-based API in remote server. Use stable "next" pointers in yvalve. 2011-06-29 09:41:47 +00:00
robocop
5ad96271e6 Misc. 2011-06-24 06:34:16 +00:00
alexpeshkoff
40348295e1 Used upgradeInterface() in a number of places.
Fixed memory leak when unloading module, related with upgraded interfaces.
Fixed timer on posix to be high resolution.
Better diagnostic in services.
2011-06-10 12:53:51 +00:00
asfernandes
add3d8ddef Misc. 2011-06-08 01:55:13 +00:00
hvlad
e6329b0663 Make TA work with 2.1 clients and not crash. Thanks to Alex. 2011-06-07 12:59:52 +00:00
hvlad
443f298067 Windows trusted auth didn't worked 2011-06-05 22:50:59 +00:00
asfernandes
5ffa6c77c8 Move v3 public include files to src/include/firebird. 2011-06-02 15:57:08 +00:00
alexpeshkoff
32ffebb3bf Fixed CORE-3250: Cannot start firebird server under any username other than "root", "firebird" , "interbas"or "interbase" 2011-06-01 10:52:28 +00:00
dimitr
070718bea2 Fixed CORE-3387: Client library could hang infinitely waiting for a reply packet on a forcibly disconnected server socket. 2011-05-30 09:59:11 +00:00
asfernandes
717ef9c486 Misc. 2011-05-21 19:11:03 +00:00
asfernandes
19cbed237b Misc. 2011-05-21 18:56:02 +00:00
alexpeshkoff
4641d2de68 Better interfaces hierarchy: all of them are derived from IVersioned 2011-05-19 16:24:46 +00:00
alexpeshkoff
85b3b5cf95 Interface for 2PC (distributed transactions coordinator) 2011-05-19 11:38:38 +00:00
hvlad
d0108e2918 Show long version string in "Firebird Server Properties" dialog properly 2011-05-11 09:56:53 +00:00
asfernandes
1c5770da81 Warning / error. 2011-05-11 02:43:39 +00:00
asfernandes
3ce54d2eda Misc. 2011-05-11 01:18:28 +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
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
b781d62d4a Make the new BLOB API use void* buffers, so applications can read/write char* strings or any other type without casts. 2011-04-15 18:54:02 +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
asfernandes
04bb4ba305 Remove unused parameter and rename a constant. 2011-04-09 20:00:00 +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
4c3f87d6bd Continued renaming interfaces. Added comments 2011-04-08 15:18:50 +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
asfernandes
03ce334e2b Misc 2011-04-04 13:37:47 +00:00
asfernandes
20bfe736bb New YValve implementation. 2011-04-02 19:38:50 +00:00
robocop
b5ef5c4771 Misc, style, etc. 2011-04-02 04:53:35 +00:00
alexpeshkoff
9ef53b65e0 Remove reference counting where not appropriate 2011-03-31 13:44:22 +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
asfernandes
e4658d76c3 Misc 2011-03-20 16:24:46 +00:00
hvlad
fc11a24376 XNET was broken. Abnormal client disconnection was not released port and resources. Whole XPM map was corrupted and new connections was not possible.
Renamed back peer_shutdown -> server_shutdown, XPMF_PEER_SHUTDOWN -> XPMF_SERVER_SHUTDOWN and XCCF_PEER_SHUTDOWN -> XCCF_SERVER_SHUTDOWN because this is pure client things and should not be used by server side.
2011-03-19 11:39:03 +00:00
asfernandes
d67b091ee5 Misc 2011-03-11 00:58:55 +00:00
hvlad
d1f9eb91b5 Front ported fix for bug CORE-3328 : Client writes error messages into firebird.log when database is shutted down 2011-03-07 15:48:39 +00:00
hvlad
0bd7d05e71 Follow Alex changes 2011-03-02 23:42:58 +00:00
alexpeshkoff
0a7c3fc69d Fixed CORE-3369: first step to make it possible to specify non-default security database for specific database 2011-03-02 13:42:56 +00:00
asfernandes
260fdaa03f Misc 2011-02-26 16:02:37 +00:00
hvlad
d756a02f89 Fixed bug CORE-3351 : Windows client could put 10054 error messages into firebird.log at connection time 2011-02-15 10:10:57 +00:00
asfernandes
7800060e22 Misc 2011-02-04 23:58:10 +00:00
hvlad
1fc0b1874a Fixed bug CORE-3327 : Thread pool in network server could create more threads than necessary 2011-02-02 14:58:16 +00:00
asfernandes
ccaaca7c72 Misc 2011-01-29 17:24:29 +00:00
alexpeshkoff
20b15687c9 Frontported fix for CORE-3194: Number of connections to linux superclassic has limit equal 508 2011-01-28 17:56:50 +00:00
asfernandes
248ddfa04a Misc 2011-01-28 00:58:32 +00:00
dimitr
05047588c3 Fixed authentication in Windows builds. 2011-01-27 05:13:59 +00:00
alexpeshkoff
54fe27e4c3 Do not throw success status vector - if we got no user error, but bad op in packet, this is network error 2011-01-26 16:34:02 +00:00
alexpeshkoff
eb11598570 Implement Thread::kill for posex threads. Do not support separate Thread::closeHandle - move it inside kill and waitForCompletion 2011-01-24 16:36:29 +00:00
hvlad
1e6135ec40 Fixed main reason of AV at engine DLL unload time. More fixes will follow soon. 2011-01-24 13:20:25 +00:00
hvlad
dca44e309d Make it compiles on Windows after Alex's changes. MSVC10 build will follow later. 2011-01-24 12:51:32 +00:00