8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-27 06:43:04 +01:00
Commit Graph

409 Commits

Author SHA1 Message Date
robocop
3689f15321 Style. 2009-01-20 08:33:59 +00:00
robocop
4ed4735e2c Style: getting rid of more typedef's. 2009-01-18 11:37:32 +00:00
asfernandes
989d851fa3 Misc 2009-01-15 03:46:48 +00:00
robocop
77bd687168 Style. 2009-01-14 08:22:32 +00:00
robocop
fda9c3bc75 Style. 2009-01-05 08:22:58 +00:00
asfernandes
79e89d573d Misc 2009-01-03 19:02:04 +00:00
robocop
4c021ec559 Cleanup: style, get rid of typedef needed by plain C, other C++ legacy declarations, etc. Seventh pass. 2009-01-02 06:34:31 +00:00
asfernandes
a177d28d60 Misc 2008-12-31 20:22:10 +00:00
robocop
bb6f2ab0f7 Fix problem with uninitialized vars (the code has been unreliable since the IB days but it's unlikely that the failure will be triggered). 2008-12-31 09:42:20 +00:00
robocop
a1d52589d2 Cleanup: style, get rid of typedef needed by plain C, other C++ legacy declarations, etc. Sixth pass. 2008-12-31 09:35:52 +00:00
robocop
8e55a2aced Cleanup: style, get rid of typedef needed by plain C, other C++ legacy declarations, etc. Fifth pass. 2008-12-29 10:26:36 +00:00
robocop
1d7709d4d7 Better C++ compliance. 2008-12-29 09:29:21 +00:00
asfernandes
dff4d4fa99 Misc 2008-12-27 18:15:50 +00:00
robocop
b9cff24278 Cleanup: style, get rid of typedef needed by plain C, other C++ legacy declarations, etc. Fourth pass. 2008-12-27 10:04:31 +00:00
robocop
ed64fc2f45 Cleanup: style, get rid of typedef needed by plain C, other C++ legacy declarations, etc. Third pass, boolean and languages cleanup. 2008-12-27 08:38:09 +00:00
robocop
3b001e7886 Cleanup: style, get rid of typedef needed by plain C, other C++ legacy declarations, etc. Second pass. 2008-12-27 07:00:40 +00:00
robocop
1214fcdbd8 Cleanup: style, get rid of typedef needed by plain C, other C++ legacy declarations, etc. First pass. 2008-12-25 07:46:53 +00:00
asfernandes
582d837778 Remove trailing spaces from epp files - I had forgot them 2008-12-20 23:50:22 +00:00
asfernandes
8fbf0e8e8c Remove trailing spaces (.cpp files) 2008-12-05 01:20:14 +00:00
asfernandes
ff5f8745fb Remove trailing spaces (.h files) 2008-12-05 00:56:15 +00:00
asfernandes
a5ff7ca091 Misc 2008-12-01 01:26:27 +00:00
alexpeshkoff
9431183e42 Implemented CORE-1667: Reading password from file/stdin 2008-11-30 17:11:56 +00:00
alexpeshkoff
d8ea120ded AIX port - use FB_ prefix for alignment constants 2008-11-05 11:26:23 +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
asfernandes
aeef076e58 Fixed CORE-1690 - Arithmetic exception, numeric overflow, or string truncation in utf8 tables 2008-08-23 03:23:44 +00:00
dimitr
a903e9357b Cleanup. 2008-07-11 07:50:46 +00:00
alexpeshkoff
7c8427bc35 Separated CVT functions to common and jrd parts.
This made possible to avoid ugly CVT_move export.

Cleanup of errors handling in CVT functions.
2008-07-10 15:57:33 +00:00
asfernandes
5057e57065 Fixed CORE-1982 - Simultaneous backups or restores could interfere each with other using the services API 2008-07-08 15:32:42 +00:00
asfernandes
552f58dd48 Misc 2008-06-06 02:25:35 +00:00
robocop
b8ea332022 Misc. 2008-06-05 11:02:42 +00:00
robocop
ffe94c28c2 Misc and fix possible little B.O. in grant_revoke_privileges(). 2008-06-05 10:57:38 +00:00
robocop
a1906d634f Style. 2008-06-03 06:19:50 +00:00
robocop
07c087094d Mostly remove useless parentheses. 2008-06-03 06:14:59 +00:00
sboyd
8bfcc680c6 Fixes to allow embedded SQL to work properly in RM/Cobol programs which use the CANCEL verb. This entailed:
- added RELEASE_REQUESTS FOR <dbname> as an embedded SQL command as well as QLI

- changed the RM/Cobol code generator to use isc_compile_request rather than isc_compile_request2

- changed the RM/Cobol code generator to use isc_dsql_allocate_statement rather than isc_dsql_alloc_statement2

As a result of this change RM/Cobol programs will have clean up their handles by issuing a RELEASE_REQUESTS call before exiting a subprogram using the EXIT PROGRAM verb.
2008-05-29 19:20:57 +00:00
sboyd
c05536e155 Added an entry point for isc_dsql_allocate_statement 2008-05-29 19:10:17 +00:00
alexpeshkoff
b9be96d37f Applied Damyan's patch eliminating some warnings in gcc 4.3 2008-05-28 13:22:26 +00:00
robocop
5777ff76fa More VC6 cleanup. 2008-05-14 13:11:41 +00:00
alexpeshkoff
773ed9d5af Fixed AV 2008-03-24 14:40:12 +00:00
robocop
2b33eae4d1 Minimize casts. 2008-03-10 08:31:35 +00:00
asfernandes
bc9ae27d0a Generate named structs in GPRE to not have a lot of warnings in GCC 2008-02-17 15:47:43 +00:00
sboyd
0b6c98af54 Changed the option for calls to isc_dsql_free_statement from DSQL_close to DSQL_drop. This allows cursors used in separately compiled subprograms which are CALLed and subsequently CANCELed to function properly. Failure to use DSQL_drop resulted in -502 errors. 2008-02-10 17:33:37 +00:00
asfernandes
b39ac40c9d Misc 2008-02-03 02:32:39 +00:00
robocop
0d1985d1f0 Misc, explicit constructors, extra commas in enumerations, constness, etc. 2008-02-02 16:57:15 +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
e50e8e298c The merge is being fixed. 2008-01-16 11:41:25 +00:00
dimitr
17e5267603 The merge continued. 2008-01-16 07:15:01 +00:00
asfernandes
54b36766c0 Misc 2007-11-17 00:38:16 +00:00
paulbeach
c823619e92 HPUX Port 2007-11-12 15:18:49 +00:00
paulbeach
7602a29b94 HPUX Port 2007-11-12 14:26:44 +00:00
robocop
1ea2f4b014 Misc. 2007-10-02 10:41:19 +00:00
dimitr
b072b29f77 Fixed a GPRE regression reported by Alex. 2007-09-26 19:19:35 +00:00
robocop
64bfb9e026 Commit fix from Stephen Boyd for his RMCOBOL interface library. 2007-08-29 10:02:42 +00:00
alexpeshkoff
d3fbea6a6a Absolutely no reasons to have it non-const here 2007-08-14 10:15:23 +00:00
asfernandes
613faffafb Misc 2007-08-02 02:00:37 +00:00
robocop
669b9c550a Commit GPRE enhancements on behalf of Stephen Boyd.
This batch of changes includes:
- Support for FIRST/SKIP clauses
- Support for CURRENT_CONNECTION, CURRENT_ROLE, CURRENT_TRANSACTION and CURRENT_USER context variables
- Changed the BLR generated for RM/Cobol programs to use blr_cstring
rather than blr_text so that CHAR and VARCHAR fields are not written
as "fixed length" fields from Cobol programs.  Incoming CHAR and
VARCHAR fields are right filled with spaces inbound to the Cobol
program and stripped of trailing spaces outbound.
2007-07-29 07:30:42 +00:00
asfernandes
1abbbc6f89 Misc 2007-06-01 16:05:02 +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
alexpeshkoff
f0d465bf34 Fixed gcc warnings, general (un)signed usage cleanup 2007-04-11 09:28:50 +00:00
alexpeshkoff
1932c8f4e7 added switch -trusted to most of firebird utilities 2007-04-07 08:47:58 +00:00
robocop
93fd88772a Get rid of the $ symbol in var names. 2007-04-01 13:04:13 +00:00
robocop
df9303f869 Commit changes on behalf of Stephen Boyd to support RM/Cobol. At least for me, I needed a full rebuild to avoid gpre crashing in the boot phase. 2007-03-29 07:16:16 +00:00
robocop
81145566a8 More IB->FB changes. 2007-02-11 09:31:45 +00:00
robocop
2237b9c55a Misc. 2007-02-11 09:23:32 +00:00
robocop
409ff041dd Misc and replaced "IB" by "FB" where it made sense to me. 2007-02-11 09:04:54 +00:00
robocop
6ab34bd394 Patch by Stephen Boyd: he found a small bug in the RM/Cobol support in GPRE he did months ago. It wasn't generating the code for EVENT INIT and EVENT WAIT statements properly. 2007-02-03 10:40:15 +00:00
asfernandes
40698ea38c Misc 2006-11-11 02:47:08 +00:00
robocop
3b1a4a0dbe Commit source changes by Stephen Boyd to support RM Cobol.
COBOL support (rmc) and additional interface library (fbrmclib).
2006-11-10 07:52:52 +00:00
robocop
f40512506b Commit source changes by Stephen Boyd to support RM Cobol. 2006-11-10 07:50:13 +00:00
robocop
8e7e781e5f Partial commit with some cleanup and more constants. 2006-10-10 06:41:36 +00:00
robocop
af8ecc26ca Solve three problems with arrays:
- Don't allow to apply scalar/subscript syntax to fields that aren't array.
- Detect if we get corrupt database containing array with more than 16 dimensions.
- Reject attempt to subscript array with more than 16 dimensions and thus fix the buffer overrun.
2006-09-10 09:05:40 +00:00
dimitr
869d92f034 Let's not rely on ISC_STATUS being always long. This is false for Win64. 2006-07-24 14:41:10 +00:00
dimitr
6b6ba903e4 Forward declaration of enums is not allowed in the C++ language, even although being supported by MSVC.
This commit should fix GCC compilation problems.
2006-07-21 07:53:18 +00:00
asfernandes
ea0435247a Misc 2006-07-18 02:45:35 +00:00
dimitr
c68587fe66 1. Virtual tables
2. ODS 11.1, procedure type and relation type
2006-07-17 17:44:18 +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
alexpeshkoff
0f7cbececb applied Damyan's patch for gcc 4.0.1 2006-06-23 08:33:33 +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
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
robocop
ebe0a75026 Simplification. 2006-05-04 00:02:58 +00:00
robocop
07f4bed382 I don't want another "interprete", so I rename "defered" to "deferred". 2006-05-02 00:04:12 +00:00
alexpeshkoff
2c7a5997cd fixed gcc warning(s) 2006-01-18 11:54:00 +00:00
robocop
4f5cb7e3f6 Misc. 2006-01-07 01:32:10 +00:00
robocop
1e6d89ebfc Comment excessive dependencies on license.h. 2006-01-07 00:31:37 +00:00
robocop
3e6585d99e Misc. 2005-12-11 08:32:27 +00:00
robocop
187b320513 Forward-port Ann's enhancement to gpre to allow more range for identifiers (more changes may be needed in the future to complete the feature). 2005-12-09 05:07:57 +00:00
robocop
2d00d59c8c Misc. 2005-11-30 06:12:53 +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
dimitr
d58a557d63 Fixed a number of issues for Dialect 1 and Dialect 3 (string arithmetics) + some cleanup.
The issues are:
1) '1.5' / '0.5' doesn't work in Dialect 1
2) avg ('1.5') doesn't work in Dialect 1
3) 5 * '1.5' produces INT result instead of DOUBLE PRECISION in Dialect 1
4) sum ('1.5') produces NUMERIC(15, 2) result instead of DOUBLE PRECISION in Dialect 1
5) - '1.5' doesn't work in Dialect 1
6) '1.5' * '0.5' and '1.5' / '0.5' are not forbidden in Dialect 3
2005-08-06 05:36:30 +00:00
asfernandes
0815ad2770 Make gpre_boot work without -lang_internal switch 2005-06-22 22:23:05 +00:00
asfernandes
59213efe7e Merge INTL branch into HEAD 2005-05-27 22:45:31 +00:00
alexpeshkoff
0601ed34a6 fixed declarations of gds__temp_file() parameter -
buffer overflows were possible
2005-05-14 10:42:58 +00:00
kkuznetsov
d1a41d7eb2 SOLARIS cleanup 2005-02-17 12:51:13 +00:00
kkuznetsov
06cc818d15 Fix including FTN_fini refences into gpre_boot while configured with fortran 2005-02-10 10:21:53 +00:00
robocop
15c5bc67d0 Fix SF Bug #527677 for gpre and the ANSI85 switch. 2005-01-19 08:59:23 +00:00
robocop
1b420b2e9b Fix SF Bug #1103740
Both quoted and non-quoted cursors should be checked for duplication.
Now, duplicate quoted identifiers used for cursors will get something like:
(E) gpretest.e:29: symbol a_nice_long_long_long_cusor_name_for_customer is alrea
dy in use
2005-01-17 08:55:03 +00:00
robocop
a696b411c2 Fix SF Bug #1103683 for gpre.
Now, database aliases can't be longer than 31 bytes. Example:
	EXEC SQL
		SET DATABASE "DB0" = COMPILETIME "G:\\DB\\Firebird\\examples\\EMPLOYEE.GDB"
Here DB0 can be longer provided that it doesn't go beyond 31 bytes. As pointed out by Paul Beach, it makes little sense to have a reference that's longer than the physical path of the db.
2005-01-17 06:48:18 +00:00
robocop
e094566e16 Fix SF Bug #1103670.
Now, quoted cursor names can be opened, closed and reopened in gpre without losing their names.
2005-01-17 06:43:49 +00:00