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

271 Commits

Author SHA1 Message Date
asfernandes
84dfa0e092 Fixed CORE-316 - Can't open database with MBCS/Extended characters in name.
Documentation soon.
2008-12-15 14:59:34 +00:00
hvlad
a0aa119e7e Add one more step for fb_shutdown process : fb_shut_finish 2008-12-11 11:43:06 +00:00
robocop
d39690fbff Style (and let lines grow up to 100 columns). 2008-12-04 09:29:16 +00:00
hvlad
b37e24cf14 Added phase of preliminary confirmation for fb_shutdown process 2008-11-25 10:16:53 +00:00
alexpeshkoff
cdc4458dec Fixed CORE-2158: AV in client/embedded library when unloading it 2008-10-29 17:05:22 +00:00
asfernandes
262380af7b Misc 2008-10-16 02:31:49 +00:00
alexpeshkoff
ef5724cebe Fixed CORE-2121: AV in client library when working with BLOBs 2008-10-12 17:23:03 +00:00
alexpeshkoff
e79f55708d 1. Cleanup - use Firebird::Semaphore instead of local events, removed code
related with local events from isc_sync.cpp.

2. Cleanup - removed unused parameter 'number of events' from ISC_event_wait()
and two unused parameters from ISC_event_init().

3. Added SYSV-semaphore based implementation of IPC to isc_sync.cpp.
This should fix CORE-2102: Firebird 2.5 does not build on MacOS (Darwin).

4. Fixed use of posic CS without (x)inetd (i.e. fb_inet_server -s).

5. Fixed (to be reviewed by Dmitry) recovery after some process death in lock manager.
2008-10-10 15:58:05 +00:00
alexpeshkoff
1c08e4098b Avoid races when closing shutdown thread 2008-10-07 10:07:24 +00:00
alexpeshkoff
0952c7fec0 Avoid running too parallel fb_shutdown() API calls 2008-10-07 08:00:27 +00:00
robocop
b2b7a98648 Misc. 2008-09-24 09:24:35 +00:00
alexpeshkoff
121af76de7 Made XSQLDA parameter const in isc_dsql_fetch and a family of isc_dsql_exec functions as suggested by Dmitry Kovalenko.
Minor related cleanup in utld.
2008-09-10 12:31:54 +00:00
alexpeshkoff
e80d9223a0 Fixed CORE-2071: isc_dsql_prepare crashes with statement_text=NULL 2008-09-09 11:27:10 +00:00
alexpeshkoff
13a15d4bfe 1. Final fix for CORE-1964 - finished vararg cleanup in jrd.
2. Generic cleanup of error reporting functions all around engine.
2008-08-27 12:20:47 +00:00
robocop
8028402a45 Adding one more message for localization. 2008-07-08 07:48:26 +00:00
alexpeshkoff
5ac5869661 CORE-1964 - stop vararg mess when reporting errors. Use special class for it. More (ERR_post cleanup) to come. 2008-07-03 12:02:54 +00:00
alexpeshkoff
a2e416210b Fixed CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid.
Also cleaned up use of gds__log() in a few places.
2008-06-26 09:47:59 +00:00
alexpeshkoff
ff7cfc717e Implemented Adriano's suggestion concerning fb_shutdown_callback() - added new parameter 2008-05-22 08:59:45 +00:00
alexpeshkoff
86cd8cb6b3 1. Added parameter 'shutdown reason' to fb_shutdown() API call. It's passed to shutdown
callback function, and helps to take correct action in it. This fixes CORE-1827: Win32
Embedded Server should pass control to application before calling exit(3).
2. Removed unneeded any more flag in isql and qli, used earlier to distinguish between
kinds of shutdown.
2008-05-16 11:31:57 +00:00
alexpeshkoff
17061d4280 Make fb_cancel_operation() behave better when enable/disable command is used 2008-05-12 13:36:22 +00:00
hvlad
9280a572a0 Avoid long blocking of att_mutex and make sure it is always released when attachment deleted.
Move active requests cancellation at engine shutdown from Y-valve into engine and let them stop execution before deletion of attachments.
Make sweep run in separate thread despite of engine architecture.
2008-05-04 12:49:29 +00:00
alexpeshkoff
0ba2ab7ea7 Make fb_cancel_operation() public API call. Related cleanup. 2008-04-29 09:55:41 +00:00
alexpeshkoff
dceac94a4a Fixed CORE-1868: AV in isc_dsql_free_statement() 2008-04-25 09:30:27 +00:00
alexpeshkoff
d4ffa306bf Fixed CORE-1864: SELECT operator does not work in ISQL 2008-04-24 16:05:39 +00:00
alexpeshkoff
5dc978ae5d Added missing initializer 2008-04-19 11:46:09 +00:00
dimitr
b198d3b09f DSQL now belongs to the engine, so its pools will be released automagically upon disconnect.
There's no need in such crappy anti-memory-leak hacks anymore.
2008-04-18 10:33:35 +00:00
asfernandes
d75951e8e5 Misc 2008-04-18 01:37:44 +00:00
dimitr
c255169fe9 1) Simplified the internal provider API a little.
2) Passed the original filename (possibly an alias) via DPB. This way it can be transmitted through the remote subsystem.

Hopefully, this should fix CORE-1105, CORE-1390 and CORE-1566 at once.
Although a better hope would be that it won't break anything else :-)
2008-04-17 14:05:44 +00:00
alexpeshkoff
eb681802cf Make sure cancel operation is not disabled when shutting down firebird 2008-04-07 16:34:25 +00:00
hvlad
16a3bbe088 Fixed inregistered bug - wrong handle passed in PROC_ROLLBACK in case of failure in GDS_START_MULTIPLE. In HEAD it leads to AV in engine. 2008-04-05 22:30:16 +00:00
alexpeshkoff
97b10fd3ca Fixed forgotten terminator - thanks to Dmitry and Adriano 2008-04-04 14:47:05 +00:00
alexpeshkoff
abcbabf448 Added message for shutdown timeout failure 2008-04-04 14:20:20 +00:00
robocop
1c52bbf025 It seems that finally the interfaces are synchronized.
The compiler produces a lot of errors when linking why.cpp against inter_proto.h (that has the real function signatures) instead of entry.h, but it's the only way to verify that the parameters are coherent.
2008-04-04 13:43:44 +00:00
robocop
ee46acd6bc Misc. 2008-04-03 13:17:32 +00:00
asfernandes
f0299cfb29 Misc 2008-04-03 01:11:26 +00:00
alexpeshkoff
aafed20fe1 Fixed problems with shutting down actively running engine - related with CORE-1805. 2008-04-02 14:26:17 +00:00
robocop
3de79a20c9 Fixing the damn interface. 2008-03-30 09:42:24 +00:00
alexpeshkoff
ac128d3ada Debugging enhancement 2008-03-30 09:16:53 +00:00
dimitr
3ebade7d58 Fixes by Dmitry Kovalenko. 2008-03-26 06:18:15 +00:00
asfernandes
3aca6f92b1 Misc 2008-03-21 02:42:24 +00:00
robocop
3e724a9286 Misc. 2008-03-18 13:02:21 +00:00
dimitr
da12d22250 Fixed the build. 2008-03-18 08:17:32 +00:00
alexpeshkoff
ed25245303 Applied shutdown changes, discussed in fb-devel a week ago. 2008-03-17 16:49:47 +00:00
robocop
55e17e46d7 - Made some constructor explicit and discovered that for adding one byte to a string, a temporary string was being created on the fly. Unacceptable in loops.
- Disabled constructor from hell for now. I wasn't the only one confused about the nature of the only argument: only looking at the signature one realizes it's a byte's value, not the initial length.
2008-03-13 10:38:39 +00:00
dimitr
afb970dba1 1) Cleanup.
2) Catch exceptions in AST routines.
2008-03-12 16:53:57 +00:00
dimitr
30447bc4f1 Fixed yet another AV reported by Dmitry Kovalenko. 2008-03-12 10:04:20 +00:00
dimitr
bd6f9a72bf Fixed the AV reported by Dmitry Kovalenko in fb-devel. 2008-03-12 08:08:33 +00:00
asfernandes
7023d034ff Fixed the problem noticed by Dmitry Kovalenko 2008-03-12 00:37:34 +00:00
asfernandes
0b6ecafe1b 1) Remove REPLAY_OSRI_API_CALLS_SUBSYSTEM code
2) Remove internal y-valve function INTERNAL_COMPILE_REQUEST
3) Go direct to engine internals from DSQL, without need to exit/enter the attachment lock and check exceptions in status vector
2008-03-07 15:23:21 +00:00
robocop
6f8b48c99c Misc. 2008-03-06 09:36:45 +00:00
alexpeshkoff
cdfde3edcb Remove db_prepare_buffer and related mutex from attachment handle. Use local buffer instead. 2008-03-05 13:25:09 +00:00
alexpeshkoff
313a9d8328 1. Fixed transaction flags after reconnect - must be in limbo.
2. Added check for limbo state to fb_disconnect_transaction() - needed for public entrypoint.
2008-03-05 12:29:18 +00:00
robocop
2c451798c9 Unused var. The compiler didn't notice it. 2008-03-05 08:41:31 +00:00
asfernandes
6f91a0f18d Misc 2008-03-05 02:51:42 +00:00
dimitr
d597154a4b 1) Added timeout value to the shutdown API call.
2) Fixed the slow fbembed detach noticed by Claudio and Vlad.
3) Cleanup.
2008-03-04 13:27:02 +00:00
alexpeshkoff
7dacbbbd74 Make fb_disconnect_transaction, fb_shutdown and fb_shutdown_callback public API calls.
Related cleanup.
2008-03-03 17:47:09 +00:00
alexpeshkoff
58f8675e57 1. Make use of gds__log_status() more consustent (no Database: line in log when database is not specified).
2. A bit better logic when error happens during provider shutdown.
2008-03-03 13:59:09 +00:00
robocop
e39885c7fb Misc. 2008-03-02 08:45:41 +00:00
asfernandes
35688cd5d9 Cleanup: remove y-valve functions DSQL_CACHE and INTL_FUNCTION 2008-03-01 19:14:46 +00:00
asfernandes
5d2ca89242 Misc 2008-03-01 18:24:06 +00:00
alexpeshkoff
48e9858b57 fixed CORE-1756: AV in isc_start_transaction (isc_start_multiple) 2008-02-29 16:44:17 +00:00
alexpeshkoff
1c279bc94b No need in separate yValve handle include file any more.
Removed last trace of my old EXECUTE STATEMENT hack.
2008-02-29 13:59:37 +00:00
dimitr
5ca270c096 1) Cleanup SERVER_SHUTDOWN.
2) Make the engine shutdown asynchronous.
2008-02-29 12:47:20 +00:00
alexpeshkoff
98eb7be912 Applied fix, suggested by Dmitry Kovalenko 2008-02-29 09:54:23 +00:00
dimitr
331a464574 Misc. 2008-02-29 08:45:02 +00:00
alexpeshkoff
00c63c1f8d 1. Make signals handling in yValve MT safe.
2. Introduce new private API calls, fb__shutdown() and fb__shutdown_callback().
3. Introduce fb_smp_server - binary to run superclassic on posix.
4. Various cleanups.
2008-02-28 18:42:30 +00:00
dimitr
99caa91b85 DSQL integration into the engine. 2008-02-28 13:48:16 +00:00
dimitr
c1f75dcdf8 Ported SQLSTATE from Vulcan.
Part II: handling of isc_arg_sql_state.
2008-02-24 15:02:04 +00:00
robocop
f8007f4071 Misc. 2008-02-24 03:23:40 +00:00
robocop
4cbc8d6a2f Misc. 2008-02-21 13:11:32 +00:00
dimitr
3f334ae20d More cleanup. 2008-02-20 20:49:16 +00:00
dimitr
bec1f1408b Let's be honest with the user. If we ignore the enable/disable calls, we should rather return FALSE. 2008-02-20 17:57:55 +00:00
dimitr
b90dd5bf0f Major cleanup of the unused code inside the Y-valve. 2008-02-20 17:41:39 +00:00
dimitr
7ae3eb5977 1) Make enumeration and shutdown routines SuperClassic friendly.
2) Cleanup and minor refactoring of the Classic shutdown routines.
2008-02-19 16:23:53 +00:00
alexpeshkoff
75409d7bca added missing header 2008-02-14 11:51:58 +00:00
dimitr
61b19f7c07 Misc. 2008-02-13 16:52:29 +00:00
alexpeshkoff
ee6c433597 Mutexes cleanup:
1. Make all firebird mutexes recursive.
2. Enable exceptions to be thrown by mutexes and process them in code where needed.
3. Catch and ignore exceptions in various MutexGuard dtors.
2008-02-05 08:21:18 +00:00
alexpeshkoff
7853bb0496 Avoid code dup and fix unprotected by mutex access to attachment - thanks to Claudio 2008-02-04 14:10:08 +00:00
asfernandes
b39ac40c9d Misc 2008-02-03 02:32:39 +00:00
alexpeshkoff
6ff29770f0 Lock mutex in detach - thanks to Claudio 2008-02-02 18:20:24 +00:00
asfernandes
6e88cb9598 Misc 2008-02-01 17:33:14 +00:00
alexpeshkoff
508a499b34 MT-safety changes in yValve 2008-01-31 12:02:41 +00:00
dimitr
43594ed53a Major synchronization changes. Description of the commit will be posted to fb-devel. 2008-01-26 13:17:19 +00:00
asfernandes
aea2bcb354 Misc 2008-01-23 19:03:16 +00:00
alexpeshkoff
39896cb955 Fixed CORE-1671: atexit() calls in client libraries cause segfaults
and CORE-1079: Every attach of fbclient/fbembed library leaks 64KB of memory

To do it:
- created new template GlobalPtr, controlling access to destructors of global objects.
- applied it to global objects.

Also some related cleanup.
2008-01-23 15:52:40 +00:00
dimitr
ae692fc319 The merge continued. 2008-01-16 10:17:51 +00:00
hvlad
2b47bbe55b Revert files back after wrong commit 2007-11-19 00:21:18 +00:00
hvlad
86f1141328 Execute statement with support of external data source 2007-11-18 22:59:20 +00:00
dimitr
2c3e6417ef Fixed CORE-1467. 2007-09-17 15:48:31 +00:00
hvlad
0e50c9f41e Fixed CORE-1196 : Long SQL statements break TCP/IP connection 2007-07-10 10:11:00 +00:00
asfernandes
e705b335f8 Fix non-ASCII object names in:
1) aliases in PLANs
2) EXECUTE PROCEDURE
3) SELECTs inside procedures/triggers
2007-05-26 22:08:13 +00:00
alexpeshkoff
3279aacc05 fixed bug, noticed by Dmitry 2007-04-28 06:17:44 +00:00
hvlad
dd6aa67920 Fixed bug CORE-1218 : isc_dsql_info (isc_info_sql_stmt_type) not set isc_info_end at the end of the passed user's buffer 2007-04-20 11:18:51 +00:00
alexpeshkoff
6e735f7c53 Misc + gcc warning hunting 2007-04-09 16:15:29 +00:00
robocop
409ff041dd Misc and replaced "IB" by "FB" where it made sense to me. 2007-02-11 09:04:54 +00:00
asfernandes
90337587ff Misc 2007-02-08 00:03:36 +00:00
alexpeshkoff
84f12b7150 Style changes, suggested by Claudio 2007-02-06 09:48:50 +00:00
alexpeshkoff
f0dc6c2931 Fixed gcc compilation 2007-02-02 12:48:53 +00:00
robocop
3442fef412 I had to be explicit to overcome the dreaded "internal compiler error". Greetings to William Gates III. 2007-02-02 10:51:31 +00:00
alexpeshkoff
8b5a602040 Restored compilability of why.cpp with SCROLLABLE_CURSORS defined
(according to Claudio request)
2007-01-31 12:51:35 +00:00