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
aafemt
e5146fd644
Introduce of ISC_STATUS_ARRAY
2003-04-16 10:18:51 +00:00
aafemt
29b251277d
STATUS -> ISC_STATUS
2003-04-10 10:16:09 +00:00
alexpeshkoff
86e6b77b50
1. Fixed potential buffer overflow in gds__prefix* family of functions.
...
2. Changed second parameter declaration to be const.
2003-04-06 11:40:29 +00:00
brodsom
2bcfbe983f
- ifdef unused or conditioned code
...
- Correct formats
- Change NULL to 0 or FALSE
2003-04-03 09:34:54 +00:00
eku
ceb9d33c9d
Changed the default extensions for databases from .gdb to .fdb
...
The Windows and OS X builds have not been updated yet.
2003-03-17 12:06:48 +00:00
brodsom
f6abb7349b
Change PIC struct name to avoid conflict with PIC libtool macro
2003-03-13 12:35:14 +00:00
brodsom
8d43a301d5
More PYXIS remains
2003-03-11 13:38:16 +00:00
brodsom
cfce74acfb
Correct typo mistake
2003-03-09 00:17:54 +00:00
brodsom
3ebd5a9eec
Remove obsolete PASCAL_ROUTINE macro
2003-02-28 23:53:38 +00:00
brodsom
292e979471
Remove HUGE_PTR
2003-02-28 13:38:30 +00:00
brodsom
f79c778c52
Add PYXIS define to isolate pyxis code. When this change were tested enough, the pyxis code can be removed.
2003-02-27 18:22:48 +00:00
fsg
13e2c8ae7d
Blas, could you please stop to replace warnings with errors :-)
...
main needs to return int
2003-02-20 20:25:28 +00:00
brodsom
1b70d12d5c
Remove warnings
2003-02-20 00:28:12 +00:00
brodsom
17632bddca
Remove warnings
2003-02-20 00:10:25 +00:00
eku
1217a3cd83
Small correction (GCC doesn't complain). Thanks to Claudio.
2003-02-19 06:15:21 +00:00
eku
650c421092
Fixed "missing initializer for member `nod_types::nod_t_sql_node'".
2003-02-18 11:55:47 +00:00
eku
5dfbc445d8
Fixed "aggregate has a partly bracketed initializer".
2003-02-18 11:53:24 +00:00
eku
fdbdc32a3e
Fixed typo.
2003-02-18 10:05:05 +00:00
eku
465b1cfd2a
Fixed "missing braces around initializer".
2003-02-18 07:42:52 +00:00
brodsom
5ca686dd37
Remove some of the PYXIS remains
2003-02-14 14:56:09 +00:00
brodsom
6652d5a5bf
Remove __BORLANDC__ define
2003-02-14 02:50:10 +00:00
brodsom
a60df28e92
Remove __STDC__ obsolete define (used for pre C88 code)
2003-02-13 15:33:51 +00:00
dimitr
9113c1ebd5
Fixed exception handling.
2003-02-13 13:02:04 +00:00
dimitr
8f66b72b0e
CONST -> const
2003-02-13 09:42:18 +00:00
brodsom
2f62443636
Remove __OVERLAY__ define. It is defined for old Borland TurboC and TurboPascal only in MS_DOS.
2003-02-12 15:50:59 +00:00
eku
a7f18b2e31
Removed "register" variables from the source code. It's up to the compiler
...
to hold variables in CPU registers.
2003-02-10 13:28:35 +00:00
brodsom
ced0d928c1
Correct wrong define
2003-02-09 22:59:55 +00:00
brodsom
c97f1bafc6
Remove JPN_ defines
2003-02-08 00:58:10 +00:00
brodsom
b6b9213745
Add return NULL when needed
2003-02-07 09:40:54 +00:00
brodsom
779d57c749
Remove unused vars
2003-02-05 14:30:55 +00:00
brodsom
24059e0f03
Remove unused vars
2003-02-05 02:40:14 +00:00
brodsom
ddc02fec64
Remove unused vars
2003-02-05 01:47:08 +00:00
alexpeshkoff
ba3e53f7be
Don't include internals of struct why_hndl where it is not required.
2003-01-03 12:52:39 +00:00
skidder
530e324801
Make QLI compile after why.c-->why.cpp change
2002-12-17 14:58:23 +00:00
eku
55860a1eb3
Several little changes to make engine compilable again on POSIX.
2002-12-17 11:58:00 +00:00
alexpeshkoff
20961a1396
Rename all links to why.cpp handle to struct why_hndl * (or FRBRD *)
2002-12-16 16:52:35 +00:00
dimitr
9641208c5a
Let's learn QLI to understand BIGINT datatype.
2002-12-13 14:12:54 +00:00