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

317 Commits

Author SHA1 Message Date
alexpeshkoff
2200a681f8 fixed some gcc warning 2008-11-28 18:49:07 +00:00
hvlad
b37e24cf14 Added phase of preliminary confirmation for fb_shutdown process 2008-11-25 10:16:53 +00:00
alexpeshkoff
d8ea120ded AIX port - use FB_ prefix for alignment constants 2008-11-05 11:26:23 +00:00
robocop
3501396254 Get rid of longjmp and setjmp in qli. Due to uninitialized vars, I doubt they were working as expected, anyway. 2008-09-05 10:26:52 +00:00
alexpeshkoff
ff7cfc717e Implemented Adriano's suggestion concerning fb_shutdown_callback() - added new parameter 2008-05-22 08:59:45 +00:00
asfernandes
3d8ad6c414 Correction 2008-05-19 12:10:43 +00:00
asfernandes
a5b53f36ed Correction 2008-05-18 01:59:29 +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
0ba2ab7ea7 Make fb_cancel_operation() public API call. Related cleanup. 2008-04-29 09:55:41 +00:00
robocop
90394ca9c5 Misc. 2008-04-22 11:32:44 +00:00
dimitr
e50478c6b6 Misc. 2008-03-26 10:03:48 +00:00
alexpeshkoff
ed25245303 Applied shutdown changes, discussed in fb-devel a week ago. 2008-03-17 16:49:47 +00:00
alexpeshkoff
d8d8f6c60a Fixed AV when QLI started. I wonder how could it ever work at all? 2008-03-12 12:33:21 +00:00
robocop
82b4aeb939 Cleanup, minimize casts and a bit better error reporting. 2008-03-10 09:08:12 +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
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
robocop
d5a3ea4a2c Style 2008-02-02 17:07:19 +00:00
dimitr
871967363c Started the merge. More tomorrow. 2008-01-15 20:15:58 +00:00
robocop
c2d32e4825 Cleanup from Bill Oliver. 2007-10-27 06:09:00 +00:00
alexpeshkoff
8274d3213d Fixed CORE-867 - all utilities now hide password from "ps" as soon as possible 2007-04-25 14:10:47 +00:00
asfernandes
58c7f356d4 Misc 2007-04-12 02:20:36 +00:00
alexpeshkoff
d63491e3c5 Finished gcc-warnings cleanup 2007-04-11 16:05:40 +00:00
robocop
22decb76f7 Misc. 2007-04-10 10:04:00 +00:00
asfernandes
03f0a55b10 Misc 2007-04-06 18:02:17 +00:00
robocop
345b422633 Inject UserBlob into QLI (not in all places). 2007-04-06 10:10:10 +00:00
robocop
6b4ec2b1d4 Corrections from Adriano. 2007-04-01 13:02:46 +00:00
asfernandes
33c3fd3799 Misc 2007-04-01 00:35:59 +00:00
robocop
e71a03261c This is the full SafeArg implementation for getting rid of the fixed parameter types in the messages db. Alas, the legacy messages (before FB2.1) can't be changed in number of arguments neither the types of arguments sent by callers of the MsgPrint family or the fb_msg_format functions can be changed because old clients know these legacy messages and would crash. 2007-03-28 04:20:36 +00:00
robocop
63a80b0db6 Misc. 2007-02-23 05:55:37 +00:00
robocop
1053a35548 Some code changes (no functional change expected). 2007-02-22 09:58:56 +00:00
paulbeach
65279c6b97 Fix crash in QLI using the following SQL command. insert into relationx select * from relationy 2007-02-21 10:51:14 +00:00
robocop
409ff041dd Misc and replaced "IB" by "FB" where it made sense to me. 2007-02-11 09:04:54 +00:00
alexpeshkoff
1a4652f01a Trusted authentication for windows 2006-12-08 18:38:15 +00:00
aafemt
e6151fd57f Warnings 2006-09-01 10:51:57 +00:00
robocop
56d19d8f53 Centralize detection of those pesky implicit domains.
There may be more cases that can use the new function.
2006-08-31 08:01:24 +00:00
asfernandes
5a4862f17f Misc 2006-07-02 22:42:12 +00:00
robocop
2fbc33febb We had to bring new force to the project (Michal Kubecek) to remember us that fopen() returns NULL on failure. After his fix, I found more cases that we overlooked for years. 2006-07-01 08:53:50 +00:00
robocop
541fe6c579 It seems that all of Jim's hand-made parsers have had the same bug for 20 years in compilers that treat the "char" type as signed byte internally: they get random character attributes because they apply negative indices (obviously out of bounds) to the array of char attributes for any char value greater than 127. And all of them do their work in slightly but almost equal way... tell me about code redundance! This without losing time fixing unused stuff like jrd/jlx.c. 2006-06-08 05:15:37 +00:00
dimitr
7cc12e8489 1) Reworked memory management in SORT. Now we're pools aware there.
2) Reworked error handling in SORT and its callers.
3) Replaced DLS+SortMem with the generic TempSpace class.
4) Replaced GDS temp file management with the TempFile class.
5) Various cleanup.
2006-05-31 08:53:00 +00:00
robocop
ae51945b18 Misc. 2006-05-20 03:31:05 +00:00
alexpeshkoff
b056a118b5 1. Avoid use of STL
2. Reworked exceptions to make status_exception always hold correct status vector
3. Avoid use of RTTI
2006-05-19 15:17:02 +00:00
hvlad
73dcebc962 Replace "../jrd/jrd_time.h" with "../common/classes/timestamp.h" 2006-02-03 13:13:27 +00:00
robocop
9dae55a311 Beware of PC_ENGINE in qli: it's used to protect code meant to be marked with EXPRESSION_INDICES instead, therefore probably all places should be enabled unconditionally. At least with one change (this one) it now shows expression indices correctly. 2006-01-26 08:00:41 +00:00
robocop
0d2479158b Misc. 2006-01-17 07:52:14 +00:00
alexpeshkoff
d1ee840d60 fixed gcc warning(s) 2006-01-16 16:49:15 +00:00
alexpeshkoff
17fe0fbbec ported fix from vulcan 2006-01-16 16:46:40 +00:00
alexpeshkoff
729969be72 ported fix from vulcan 2006-01-16 10:01:27 +00:00
dimitr
1293d9fd97 Fixed bug related to expression indices vs. collates, reported by Ivan. 2006-01-15 16:04:39 +00:00
robocop
b67b0219ab Change from getenv to readenv. This is still getenv in Linux/UNIX but GetEnvironmentVariable in Windows. 2006-01-14 04:48:59 +00:00
robocop
1e6d89ebfc Comment excessive dependencies on license.h. 2006-01-07 00:31:37 +00:00
alexpeshkoff
da6eb10cf4 fixed a warning 2005-12-02 16:49:39 +00:00
alexpeshkoff
62a24d46e4 1. Moved data structures, written to database file, into ods.h.
2. Added new types of clumplets to ClumpletReader and ClupmletWriter.
3. Applied modified ClumpletReader and ClupmletWriter to /remote and partially /jrd.
4. Added active protection from remote brute-force attack to services API.
2005-11-27 20:53:09 +00:00
robocop
8302f8034d Solve problem with QLI and SQL quoted identifiers created previously. 2005-10-04 08:00:23 +00:00
robocop
83c918dcc5 Misc. 2005-09-03 05:56:35 +00:00
robocop
6bf95490fb Archeology: enable QLI to handle NUMERIC, DECIMAL and BIGINT in definitions. No dialect check made. 2005-09-03 05:52:02 +00:00
robocop
9d59a7ccc5 Try to convince QLI to handle quoted identifiers.
It acts for now as if dialect 3 is the only one available WRT names enclosed in double quotes.
2005-08-19 06:07:12 +00:00
asfernandes
59213efe7e Merge INTL branch into HEAD 2005-05-27 22:45:31 +00:00
robocop
7ba9d079f6 Little simplification. 2005-03-26 05:40:24 +00:00
robocop
d65307b497 Style. 2004-12-24 08:52:39 +00:00
robocop
2814294027 Misc. 2004-12-16 03:03:13 +00:00
alexpeshkoff
387e678cca applied Clumplet* classes to dpb where possible 2004-12-09 19:19:47 +00:00
robocop
f550ca480f Misc. 2004-12-09 02:53:19 +00:00
robocop
d6535351a2 Misc: style. 2004-11-24 09:22:07 +00:00
robocop
628b088d2c Treat string literals and string constants with more respect. 2004-11-10 04:26:45 +00:00
robocop
2ec848a3b9 Treat string literals and string constants with more respect. 2004-11-08 05:38:42 +00:00
robocop
c5d4c16c5d Treat string literals and string constants with more respect. 2004-11-08 05:17:30 +00:00
robocop
4cf152ec65 Misc. 2004-10-07 09:19:25 +00:00
robocop
6828d6fa42 Delete wrong comment. 2004-09-26 11:18:33 +00:00
robocop
9344289ef7 Replace custom routine by common logic 2004-09-26 07:48:29 +00:00
robocop
840bf14b36 If we are using namespace fb_utils, it doesn't make sense to prefix functions in it with fb_ again. Mechanical replacement made one by one (no bulk automatic changes). 2004-09-26 01:49:52 +00:00
brodsom
e2ea495397 Avoid final comma 2004-08-24 23:00:17 +00:00
robocop
c77040ff97 Style and const 2004-06-06 05:25:32 +00:00
robocop
1332d98618 Literal strings should be treated as const char* 2004-06-05 09:37:18 +00:00
fsg
1622af9f66 Fixes issues spotted by Claudio 2004-06-04 06:55:38 +00:00
fsg
08f9f20489 First step to allow qli to work with relations containing bigints
It is possible now to copy table contents between databases, insert bigints via qli and show works nearly as expected.
Displaying bigints and evaluation of expressions containing bigints still doesn't work.
2004-06-03 14:00:59 +00:00
robocop
79066ce156 1.- Const correctness
2.- Style
3.- Ancient coding error: two places with
if (symbol->sym_type = SYM_database)
where indeed
if (symbol->sym_type == SYM_database)
but I don't know if somebody has experienced the bug.
2004-05-29 05:07:29 +00:00
robocop
9cda37f9b2 const correctness 2004-05-29 05:03:08 +00:00
brodsom
1d9e007baa -Join qli globals in dtr.h
-Use C++ struct declaration style.
2004-05-24 17:20:44 +00:00
robocop
441817bd82 1.- Misc changes
2.- Style
3.- Recover dsc_ttype in dsc after Blas' cleanup as a synonym for dsc_sub_type in text types
2004-05-21 06:16:17 +00:00
brodsom
cc1c25f7ae Macro cleaning 2004-05-16 01:42:11 +00:00
brodsom
c8db819ac5 Replace defines with consts 2004-05-07 07:57:46 +00:00
skidder
43cb0d1ce4 Y-Valve handle translation layer 2004-05-02 23:06:37 +00:00
brodsom
0daa189563 Removing ib_stdio.h 2004-04-28 22:36:29 +00:00
robocop
1824343930 Cleanup.
Fixed a linking error with MSVC6, too.
2004-03-28 09:10:30 +00:00
aafemt
381df2bf9a Fix by Vladimir Tsvigun 2004-03-25 07:44:27 +00:00
robocop
958f9e31aa Cleanup
A few new[] - delete[] pairs fixed.
2004-03-19 06:14:53 +00:00
robocop
f58c769c37 Cleanup. In geeky words:
PandoraBox* pbox = reinterpret_cast<PandoraBox*>(&can_of_worms);
pbox->open();
pbox->flush();
Nickolay may want to undo my ods.h changes if gcc insists
in its crusade against non-PODs and poodles.
2004-03-18 05:56:06 +00:00
skidder
2851f76d35 Fix warnings 2004-03-14 05:51:54 +00:00
skidder
6ad25cc4c7 Tricky one. Line continuation extended single-line comment and broke the build 2004-03-08 03:02:04 +00:00
robocop
e6187cecd2 Cleanup
Some bug fixes
Style
2004-03-07 07:58:55 +00:00
skidder
dc7aab8f9c Fix up exception handling. Handle (do not ignore) std::bad_alloc and generic exceptions, provide syscall and error information in system_call_failed 2004-03-01 03:35:23 +00:00
skidder
14bfcc7019 Fix build after Claudio cleanup 2004-02-21 09:24:14 +00:00
robocop
5c3c8abd9a Big cleanup.
God have pity on platform maintainers.
I only can compile/test Win32; sorry, folks.
2004-02-20 06:43:27 +00:00
robocop
663e3b16e7 Cleanup 2004-02-02 11:02:12 +00:00
skidder
07c34616c6 Engine fully builds on Linux AMD64 now 2004-01-22 06:51:37 +00:00
robocop
b441cd9aef Cleanup 2004-01-13 09:52:19 +00:00
robocop
06a4df3708 A requiem for JOURNAL and WAL.
Instructions in the list.
2004-01-06 10:33:18 +00:00
fsg
e3ba8c5f42 Some changes to get it compiled under linux.
Use const declarations for BLANK etc. in isql.h again.
FSG
2004-01-03 14:12:45 +00:00
robocop
16cbc204df Cleanup 2003-12-31 05:36:12 +00:00
robocop
ad0b5c4de3 General cleanup 2003-12-22 10:00:59 +00:00
brodsom
27cbcdd73e -Removing some unneeded headers (WIN_NT) or explaining why are needed 2003-11-16 12:57:23 +00:00
brodsom
9b7994233c -Undo gds__vax_integer to isc_vax_integer and gds__event_* to isc_event_* changes 2003-11-16 01:52:44 +00:00
brodsom
c5253ae8a5 -Replace gds__ constants with isc_ contants
-Replace codes.h with iberror.h (or remove)
-Move gds__vax_integer and gds__event_block* to alt.cpp and isc_ to gds.cpp
-Use ISC_QUAD internally
-Use isc_vax_integer internally
2003-11-11 12:19:20 +00:00
robocop
f55c6f6f8c const correctness and cleanup 2003-11-10 09:16:38 +00:00
brodsom
4285bc623c Removing gdsold.h and gds.h 2003-11-08 16:40:17 +00:00
robocop
db77ffa605 const correctness, variables in scope, cleanup, etc. 2003-11-07 08:06:35 +00:00
robocop
35396625f5 const correctness
function signatures
variables in local scope
BOOLEAN -> bool
TEXT[32] as SqlIdentifier for DYN
Stop random garbage in firebird.msg's bytes 8 to 11
some cleanup
2003-11-05 09:02:33 +00:00
brodsom
ff070a16a8 Replacing assert with fb_assert 2003-11-03 23:59:24 +00:00
robocop
9ead7a37b4 const correctness
placed some variables in context
fixed some function signatures
closed a few possible buffer overruns
sorry to the platform maintainers, I can't verify what I did for non-Win32 builds
2003-10-29 10:53:47 +00:00
brodsom
9b1df738ac Remove unneeded MINGW ifdef 2003-10-29 00:31:51 +00:00
robocop
d0752cf884 Style 2003-10-20 10:08:01 +00:00
brodsom
46648c1662 Solve assertion failure in tests 2003-10-17 12:55:17 +00:00
robocop
8182b6cba2 const correctness and other tasks 2003-10-16 08:51:06 +00:00
robocop
480c1ee968 const correctness 2003-10-08 08:42:48 +00:00
stryqx
bd8c3bf757 Fix build with gcc 3.3 2003-10-07 10:33:51 +00:00
brodsom
bac69c42fc extern cleaning
removing underscores in macros
DLL_EXPORT cleaning
2003-10-03 01:20:50 +00:00
brodsom
c0485b7c67 Macro cleaning 2003-10-01 18:11:23 +00:00
robocop
c931a674c2 Cleanup.
Hopefully harmless
It should fix the issue introduced with constness in gds__interprete for current applications.
2003-09-29 12:43:14 +00:00
skidder
235db035ce Ok, i'm joining Firebird destruction team with my cleanup:
1. Bring trace DSQL, DYN and BLR trace logging up-to-date
2. Remove redundant CSB pointer dereferences in BLR parser and request compiler
3. Convert RIGHT JOIN to LEFT JOIN early during BLR parsing
4. Check BLR syntax for unititalized contexts usage
5. Some type-safety and const-correctness fixes
2003-09-28 21:36:05 +00:00
robocop
97ff1a9063 make gcc happy v2 :-) 2003-09-26 09:26:38 +00:00
fsg
6dfe1b64ad make gcc happy again
FSG
2003-09-26 08:07:12 +00:00
robocop
484c6ec372 Cleanup, const correctness, variables in scope, etc.
Having done my best to merge everyone else's changes, I hope the tree can be build with whatever other tools != MSVC6.
2003-09-25 11:49:12 +00:00
aafemt
a3ba7235b4 'struct' removal 2003-09-24 10:30:39 +00:00
aafemt
e637437cb8 Partial 'struct' cleanup 2003-09-23 10:13:39 +00:00
aafemt
c261a10146 Partial 'struct' cleanup 2003-09-19 10:26:46 +00:00
brodsom
30f79b34f8 -Cleaning headers 2003-09-15 16:32:22 +00:00
robocop
b21c7b43e1 const correctness, formatting, cleaning, etc.
Not a definitive work, though.
2003-09-15 12:30:28 +00:00
brodsom
c20e144628 -Style 2003-09-15 02:03:54 +00:00
brodsom
a2715cb8c9 Fix indents 2003-09-13 11:48:09 +00:00
brodsom
a5cbd07f9d Correction (Thanks to Claudio) 2003-09-13 09:02:10 +00:00
brodsom
a7128e4a1a -Removing GDS_VAL and GDS_REF 2003-09-12 22:30:55 +00:00
brodsom
ad122347cc -Remove PYXIS 2003-09-11 02:54:26 +00:00
brodsom
9bf60eadc0 -Removing PYXIS 2003-09-11 02:17:05 +00:00
brodsom
7c7c2758dc BOOLEAN cleaning 2003-09-10 17:52:12 +00:00
robocop
689497906a C comments to C++ comments 2003-09-10 11:48:08 +00:00
robocop
b9394d498a No more underscore + uppercase 2003-09-09 11:36:06 +00:00
brodsom
69698fc2eb Remove unneeded extern C 2003-09-06 00:52:10 +00:00
brodsom
9359a6bcc4 -Use NULL instead 0 for null pointers
-Remove unneeded casts
2003-09-01 17:38:56 +00:00
robocop
0e63f189f5 Unused var 2003-08-31 12:23:52 +00:00
brodsom
0065c98434 -Remove GDS_VAL and GDS_REF 2003-08-30 02:12:44 +00:00
brodsom
5c4e4b0890 -Remove NULL_PTR
-Remove unneeded casts
2003-08-28 10:55:19 +00:00
robocop
dbe2772bba Still seems to work after changes.
:-)
2003-08-25 12:09:16 +00:00
robocop
80885347fe Still seems to work after changes.
:-)
2003-08-25 12:00:25 +00:00
aafemt
8798a33d84 ENUM removal 2003-08-22 10:56:55 +00:00
brodsom
e2a8c99c73 -Fix cast warnings
-Fix signed/unsigned comparison warning
2003-08-19 11:16:10 +00:00
robocop
d25eb503fe Minor changes 2003-08-12 10:00:18 +00:00
skidder
f3348c4502 Apply FreeBSD patches by Tomas Skoda 2003-08-11 11:21:21 +00:00
brodsom
fb51d2c17d Patch for MinGW 3.0 2003-07-14 16:55:04 +00:00
brodsom
8feff51688 Remove depends (unused and unmaintained) 2003-07-08 23:38:30 +00:00
dimitr
3fac72d57c Uniform tempfile naming. 2003-07-06 07:04:03 +00:00