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
robocop
04f8bb10c8
Fix error message.
2005-01-17 05:41:08 +00:00
robocop
f05c19c9b8
Fix more inconsistencies in gpre related to SF Bug #1103666 , supposedly caused by the starfishes.
2005-01-17 05:39:13 +00:00
robocop
6a2ecc3fd3
Fix more inconsistencies in gpre related to SF Bug #1103666 .
...
The others were fixed as part of fixing SF Bug #504978 about truncation of variables.
2005-01-17 05:31:12 +00:00
robocop
ae780ca62d
Misc.
2005-01-17 05:22:10 +00:00
robocop
0d4bd2e497
Fix SF Bug #504978 . Restore gpre ability to work with variables up to 63 bytes in length. Now that the lengths are expressed by constants instead of random values in each place, the limit may be increased further. The problem happened between IB5 and IB6 at Borland.
2005-01-17 05:02:09 +00:00
robocop
8c1f26cc01
Misc.
2005-01-12 05:50:52 +00:00
robocop
165e4a186d
Fixing more inconsistencies.
2005-01-07 04:00:19 +00:00
robocop
3eacd85d2a
Let's prevent accidental modification of some params.
2005-01-05 08:25:24 +00:00
robocop
5877cba380
Misc.
2005-01-05 04:02:19 +00:00
robocop
0cd5c8b716
1.- More constants.
...
2.- Support for BASIC language was dropped a lot of time ago.
2005-01-05 04:00:33 +00:00
robocop
bfd96a4936
More constants.
2005-01-05 03:58:49 +00:00
robocop
fd7b507d19
More constants.
2005-01-05 02:06:31 +00:00
dimitr
c990ed78e4
Fixed the build.
2005-01-04 10:53:44 +00:00
robocop
ef602283bf
More constants.
2005-01-04 05:19:37 +00:00
robocop
0077efa78f
Misc.
2005-01-03 08:11:29 +00:00
robocop
7be3904ce4
Bring some order to the gpre insanity that was using custom, disparate lengths for variables that should have the same length.
2005-01-03 08:07:41 +00:00
robocop
d65307b497
Style.
2004-12-24 08:52:39 +00:00
robocop
365de0fa48
Misc.
2004-12-16 03:10:20 +00:00
robocop
2814294027
Misc.
2004-12-16 03:03:13 +00:00
robocop
fddf92395e
Misc.
2004-12-10 22:54:16 +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
0dd1aced53
Misc.
2004-12-09 02:50:47 +00:00
robocop
3d232f30ca
Overwrote the good version of the file thanks to the CVS Id tag.
2004-11-28 04:59:31 +00:00
robocop
979355b025
Misc.
2004-11-28 03:43:42 +00:00
robocop
d6535351a2
Misc: style.
2004-11-24 09:22:07 +00:00
robocop
83881d9243
Fix with double quotes handling in case someone still uses gpre and COBOL.
2004-11-10 04:32:11 +00:00
robocop
628b088d2c
Treat string literals and string constants with more respect.
2004-11-10 04:26:45 +00:00
robocop
f80199d26d
Treat string literals and string constants with more respect.
2004-11-08 03:33:26 +00:00
robocop
e5ac2effd4
Misc.
2004-11-08 03:09:27 +00:00
alexpeshkoff
1c87838c7f
added new dpb parameters
2004-11-07 14:20:58 +00:00
robocop
4638daee13
Wrong macro to inline function conversion (but harmless)
2004-10-30 05:36:08 +00:00
robocop
f264ecf391
Be more respectful of literal strings.
2004-10-30 05:30:08 +00:00
robocop
739fc568f7
Misc.
2004-10-23 00:54:26 +00:00
robocop
d973e20600
Looking at gpre.c in FB1 and the usage of the variable fatal_env, it's evident that the conversion SEH->C++ try/except screwed the logic. The original idea was that CPR_abort will cause the program to exit gracefully, not to continue parsing, because it's useless and clutters the console with hundreds of messages. As far as I can test, when gpre cannot attach to the db, run-time failures can be detected by gpre_static or a false result is converted in exception. The new gpre_exception propagates up to the highest level where it allows the program to exit gracefully as it was in FB1. Until now, the behavior in FB1.5 & FB2 has been annoying. When we fail to connect to the db, anything more than we do is useless; we now will print a message, clean the house and exit. Hope everyone can compile my change.
2004-10-07 09:59:02 +00:00
robocop
da2a5c1abc
Finalize Nickolay's rollback of my changes to get MSVC6 compiling HEAD.
2004-10-04 04:59:05 +00:00
skidder
3e6b170862
Roll back implementation of Claudio suggestion for consturctor of BID structure. It forced addition of constructors for message structures generated by GPRE which is not correct
2004-10-03 20:18:13 +00:00
robocop
31ba754981
After talking to Ann, decided to disable several items:
...
- obsolete items like WAL and JOURNAL (cleaned in the past)
- crud from attempts never finished like the shared cache manager for Classic
- DSQL nodes that aren't used. This allowed freeing some keywords.
The functionality was disabled by commenting the code. No code has been deleted.
2004-10-03 04:49:04 +00:00
robocop
f2020d8896
Let's gpre be more CPP friendly when defining ports (at least with MSVC6)
...
Ref: object with constructor inside struct should have that struct given a type name.
2004-10-03 04:43:43 +00:00
robocop
8df7b14f19
The custom symbol_length is equivalent to fb_utils::name_length.
2004-09-26 07:42:53 +00:00
robocop
7dcb66a250
When you call va_start, call va_end, don't assume it does nothing because some platforms don't have code for it!
...
Changed some sprintf to SNPRINTF. Work in progress WRT wrapper for this function.
2004-09-25 10:28:09 +00:00
robocop
c70d7875c6
Finally got to solve my own indication in the code from months ago
2004-09-22 08:52:47 +00:00
robocop
61a7173a3c
Style
2004-08-27 04:50:00 +00:00
brodsom
3bcf37fcd1
Assert or silence uninitialized warning
2004-08-26 21:44:11 +00:00
robocop
b60c0e4cab
Misc: format
2004-08-21 09:29:46 +00:00
brodsom
f2067a4154
-Correction
2004-06-11 03:10:41 +00:00
alexpeshkoff
1591a54e5e
Thread cleanup:
...
1. Added macros to declare thread entrypoints
2. THD_mutex_* functions use Firebird::Mutex
3. Thread local storage use fb_tls.h
2004-06-08 13:41:08 +00:00
robocop
1332d98618
Literal strings should be treated as const char*
2004-06-05 09:37:18 +00:00
robocop
738be5fe40
Style: opening braces too far to the right
2004-06-03 07:42:31 +00:00
robocop
a65ccddbd4
Misc changes:
...
- const
- variables in scope
- style
- a duplicate function deleted
- some unneeded casts removed
2004-06-03 07:31:10 +00:00
robocop
f8f159dc9e
Changing some variables that have a trailing underscore to allow conflict with C++ keywords or engine structs.
2004-05-31 02:34:35 +00:00
robocop
7b51928503
Style
2004-05-29 04:55:23 +00:00
robocop
6bd3865ffd
Cleanup
2004-05-29 04:54:20 +00:00
robocop
16d3278eb8
Fix class/struct mismatch after Blas' cleanup
2004-05-29 04:48:42 +00:00
brodsom
57f6bc46d5
-Join gpre globals in one struct (and remove some macros) and put not globals in the corresponding source.
...
-Use C++ struct declaration style.
2004-05-24 17:13:38 +00:00
brodsom
dd5d8aba0a
-Replace stuff macros with either common stuff inlines or class inline functions
2004-05-24 11:03:54 +00:00
brodsom
75a0483d75
-Comment some common.h unused macros
...
-Replace VA_START macro with va_start function (it was already some places where it is not used)
2004-05-23 23:28:06 +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
964219523c
Move SQL_DIALECT constants from ibase.h to sqlda_pub.h and use it in gpre.h instead the full ibase
2004-05-20 00:58:55 +00:00
brodsom
4a9ba0b5f3
Macro cleaning
2004-05-18 21:54:56 +00:00
brodsom
c1db5a6a1e
Avoid duplicated definition
...
Define macros for ifdefs without value
2004-05-18 21:54:33 +00:00
brodsom
87099930b3
bad if
2004-05-13 22:34:27 +00:00
brodsom
0b8d03c787
-Avoid shadow warning
2004-05-13 09:46:01 +00:00
eku
3657b2eaab
Fixed Blas' corrections.
2004-05-13 06:48:41 +00:00
brodsom
996b40079f
-Avoid shadow warning
2004-05-13 00:33:17 +00:00
brodsom
1ffe279896
-Avoid shadow warning
2004-05-12 19:39:17 +00:00
robocop
802f244ec1
Misc changes
2004-05-09 05:48:33 +00:00
skidder
43cb0d1ce4
Y-Valve handle translation layer
2004-05-02 23:06:37 +00:00
brodsom
a549091c94
- Split sqlda.h to avoid duplicated definitions between ibase.h and sqlda.h
...
- Replace define for constants
- Remove contants.h where not used.
2004-04-30 22:47:16 +00:00
brodsom
2c0ab256cf
Removing duplicated definitions between
...
ibase.h and blob_filter.h
ibase.h and constants.h
2004-04-29 17:48:39 +00:00
brodsom
ecc97c8009
Style
2004-04-28 23:29:25 +00:00
brodsom
0daa189563
Removing ib_stdio.h
2004-04-28 22:36:29 +00:00
robocop
59b235cea3
Small corrections
2004-04-10 00:25:22 +00:00
robocop
68c038d132
More cleanup. Get rid of obsolete files, too.
2004-03-30 08:34:14 +00:00
robocop
faa41f7b3b
Cleanup
2004-03-30 04:10:52 +00:00
alexpeshkoff
c96bdc369a
dropped unneeded conversion of all requests to/from blk*
2004-03-20 14:31:57 +00:00
skidder
c64f31b712
Fix some warnings from GCC/Linux build. Some of them were subtle errors
2004-03-12 07:00:52 +00:00
skidder
25b969d1b7
Fix MSVC build
2004-03-01 04:57:43 +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
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
aafemt
b4c820d25a
Avoid warning with isc_put_slice() after Nikolay's port
2004-02-03 11:20:51 +00:00
robocop
663e3b16e7
Cleanup
2004-02-02 11:02:12 +00:00
aafemt
f4d8d5c18d
Fix for Claudio's cleanup
2004-01-28 11:23:41 +00:00
robocop
2b295a9108
General cleanup. Sorry if I missed some occurrence.
2004-01-28 07:50:41 +00:00
skidder
08eee5ebaa
Further AMD64 fixes. Given this fixes you may start playing with databases using isql_static.
2004-01-21 07:18:30 +00:00
robocop
06a4df3708
A requiem for JOURNAL and WAL.
...
Instructions in the list.
2004-01-06 10:33:18 +00:00
robocop
fd93837ec3
Cleanup:
...
const correctness
BOOLEAN -> bool
Vars in scope
Formatting
JRD_REQ -> jrd_req*
JRD_TRA -> jrd_tra*
JRD_REL -> jrd_rel*
JRD_FLD -> jrd_fld*
event -> event_t, EVENT_T dropped, EVENT should go in the future
Frank's corrections
alice's STR -> alice_str*
remote's STR -> rem_str*
etc.
It creates entities and backups and restores for me. :-)
2004-01-03 10:59:52 +00:00
robocop
ad0b5c4de3
General cleanup
2003-12-22 10:00:59 +00:00
robocop
84062732d8
More cleanup
2003-12-03 08:19:24 +00:00
brodsom
7844cc7cd4
Fix scope change that breaks posix build
2003-12-02 02:47:34 +00:00
robocop
9fafc348bf
const correctness
...
vars in scope
minimal interface cleanup
small bug fixes
2003-11-28 06:48:34 +00:00
brodsom
abe35ef6fe
-Remove unneeded setjmp header
2003-11-18 12:39:12 +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