dimitr
cf1162c563
Avoid buffer overruns when restoring corrupted data (always check for the declared length).
...
Look at remote/xdr.cpp for example.
TODO: print a warning during backup in this case.
2005-11-15 08:48:16 +00:00
asfernandes
2e697c6b94
Fix problem of empty arguments passing garbage in SPB
2005-11-11 00:43:20 +00:00
robocop
614939d186
Gbak must write always the system flag when creating objects.
...
This is the first step before we are able to make rdb$system_flag field mandatory in the future.
2005-11-04 05:20:56 +00:00
asfernandes
98150e31c9
Fixed problem of GBAK adding a garbage byte to SPB, when called with -SE. Reproducable with:
...
gbak -C -SE service_mgr c:\t.fbk localhost:c:\t.fdb
2005-10-29 14:57:28 +00:00
alexpeshkoff
34a9df7e8f
fixed restore of database with broken foreign keys
2005-09-14 05:58:04 +00:00
dimitr
efb3268658
Fixed wrong defines, thanks to Claudio.
2005-08-13 08:19:22 +00:00
dimitr
7a343b8162
Moved the Services API into the engine on threadable platforms.
2005-08-10 14:47:42 +00:00
dimitr
59cfb104ff
Let's report we're creating an index before we do so, not after.
2005-06-03 08:40:21 +00:00
asfernandes
0b53d89e57
Removed unsense code noticed by Claudio
2005-05-29 14:38:52 +00:00
asfernandes
59213efe7e
Merge INTL branch into HEAD
2005-05-27 22:45:31 +00:00
hvlad
af740ca41a
1. Fixed bug #908319 2. Fixed inability to restore into nonexisting file with -se switch used
2005-05-14 13:45:01 +00:00
robocop
8c381ef54b
Better fixes related to field-test bug #1173988 , first part.
...
Also, a new, more accurate message has been added to the restoration process.
2005-05-03 04:09:26 +00:00
robocop
382d5b3432
Fix for first part of field test bug #1173988 .
...
Also, fix for misleading message, use -R switch tal must be use -REP switch.
2005-04-29 05:36:19 +00:00
robocop
1c83cfaaad
Cleanup. No need to test if sizeof() is bigger than zero.
2005-04-18 03:25:56 +00:00
robocop
d0115322ac
Misc.
2005-04-18 03:24:34 +00:00
dimitr
fdda592e98
Fixed bug when a computed column of blob/array type zeroes the first column of the table being restored.
...
In short words, some data were lost during restore.
2005-04-13 11:46:14 +00:00
hvlad
f09ef16560
1. New switch for gbak -RECREATE_DATABASE [OVERWRITE].
...
Simple RECREATE_DATABASE is equal to CREATE_DATABASE,
RECREATE_DATABASE OVERWRITE is equal to REPLACE_DATABASE.
2. gbak uses isc_dpb_overwrite to create database over existing files
3. engine overwrite existing files only if asked explicitly by
user by setting isc_dpb_overwrite to 1
4. fixed unregistered bug - when gbak uses service manager and passed
command line contains invalid switch. Service reports error and
finish but not call Service::svc_started therefore response is not
send and gbak is stalled forever
2005-04-09 18:44:50 +00:00
dimitr
e2f0e554e6
More correct fix for restore.
2005-01-20 11:29:15 +00:00
robocop
1718ae5a45
Misc.
2004-12-26 04:09:06 +00:00
robocop
d65307b497
Style.
2004-12-24 08:52:39 +00:00
alexpeshkoff
f0787d47d7
fixed bug in my last commit, noticed by Claudio
2004-12-13 12:06:55 +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
0dd1aced53
Misc.
2004-12-09 02:50:47 +00:00
skidder
d16f031af7
Fix for another problem with backing up stream blobs - zero-length stream blob may have non-zero segment count
2004-12-02 00:42:43 +00:00
robocop
c18561f19c
Misc.
2004-12-01 08:16:13 +00:00
skidder
e1cf1f66e6
Cure regressions introduced by Ann's cleanup in Firebird 1.0
2004-12-01 00:02:52 +00:00
skidder
252fae8d3b
Second attempt to fix backing up of stream blobs.
...
This time it should work with XNET and INET too.
Rollback earlier engine fix which now seems incorrect to me.
2004-11-30 20:17:39 +00:00
skidder
0955e56ed8
Do not store system functions in backup files
2004-11-29 20:27:34 +00:00
robocop
bb170bd3b6
isc_interpret is fb_interpret again.
...
Please do a full rebuild.
2004-11-28 01:03:05 +00:00
robocop
037c7270c4
fb-checkins shows that I didn't commit the correct version of the file.
2004-11-10 08:16:35 +00:00
robocop
2a212c1372
Avoid backup corruption with too long file names.
2004-11-10 04:33:37 +00:00
robocop
a7498d91e6
Treat string literals and string constants with more respect.
2004-11-08 03:14:17 +00:00
asfernandes
fc45553027
Update very obsolete error message
2004-11-02 02:41:33 +00:00
robocop
bc4b0d127f
Constant is the max size of the string, not the max length.
2004-10-30 07:05:41 +00:00
robocop
26669885c6
Implement rdb$description in rdb$generators.
...
Gbak should be able to backup and restore the new field(s).
Following Borland's practice when adding fields, I raised the backup number to 7. I should have done that when enhancing rdb$roles.
2004-10-30 05:58:48 +00:00
robocop
59114e7e4c
Fix possible buffer overrun.
2004-10-30 05:41:25 +00:00
skidder
3e26513b38
fb_interpret->isc_interpet, deprecate isc_interpete, clean interface a little bit
2004-10-25 03:53:03 +00:00
robocop
ab4dd5d2a2
reinterpret_cast downgraded to static_cast
2004-10-18 07:17:48 +00:00
robocop
4cf152ec65
Misc.
2004-10-07 09:19:25 +00:00
robocop
78c5931171
Fix a problem caused by cleanup changing #define to pointer to literal string.
...
Due to sizeof being involved, gbak could misinterpret a file as been a valid part of a multi-file backup.
2004-10-07 08:25:48 +00:00
robocop
77814b6cf5
Unused crud
2004-10-07 08:23:53 +00:00
robocop
3529bbf70c
Put an assertion, just in case.
2004-09-26 11:19:31 +00:00
robocop
362f95df8a
Got rid of some casts that were driving me nuts on each compilation
2004-09-22 08:54:42 +00:00
robocop
e6cb17cac6
Vulnerability reported by Daniel Urban.
...
First step: reorganize code.
Please do a full rebuild after retrieving those changes.
2004-09-22 01:59:39 +00:00
robocop
174e17be8b
Redundant cast
2004-09-20 08:39:51 +00:00
alexpeshkoff
c3db4aaa97
added (and used in sources) template to change and restore default pool
2004-08-30 18:11:08 +00:00
robocop
97406b9afd
Gbak should backup/restore the new field rdb$description in rdb$roles, depending on ODS.
2004-08-30 10:07:00 +00:00
robocop
0b86ae4ae8
Got rid of some silly back and forth cast: to call MVOL_init_read or MVOL_init_write, callers forced char* vars to UCHAR*, but then those MVOL functions internally forced those params again to char*.
...
Fixed some indentation in loops, too.
2004-08-29 06:53:31 +00:00
robocop
cd22792829
misc
2004-08-29 06:47:59 +00:00
brodsom
4b7731ee0e
Assert on non initialized variable
2004-08-26 19:09:07 +00:00
robocop
614f908558
Delete useless line and avoid memory leak after talking to Dmitry Yemanov.
2004-08-21 09:16:26 +00:00
robocop
a2e14cfe22
Totally misc changes
2004-07-06 05:54:13 +00:00
brodsom
76a2f98d90
-Put thread functions into thread class
...
-Comment SVC_PUTSPECIFIC_DATA
2004-07-03 02:33:46 +00:00
brodsom
7168edca86
Put thread functions into thread class
2004-07-03 00:13:46 +00:00
robocop
949830d0c6
1.- const correctness
...
2.- style
3.- Try to fix the mess caused by different data types used to represent bifields of SCL_ constants defined in scl.h,
first round. No circular dependencies found through MSVC. Still pending dyn* and grant.epp files.
2004-06-29 04:37:59 +00:00
skidder
8f0cf89afb
Correct problems with single-user maintenance mode (note it is used for GBAK restore process now)
2004-06-12 01:06:05 +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
brodsom
a799e5f44b
-Use C++ struct declaration style.
2004-05-24 17:22:35 +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
877cce340b
- Convert *_thread_data macros to inline func
2004-05-20 00:56:59 +00:00
brodsom
68cb86b274
- Remove *_THREAD_DATA definitions from thd.h, are unneeded and conflicts with definitions in providers/services main headers (which need to use undef).
...
- Use different names for each service/provider *_THREAD_DATA macros.
2004-05-19 18:14:29 +00:00
brodsom
9e204004d6
-Avoid shadow warning
2004-05-12 21:47:36 +00:00
robocop
802f244ec1
Misc changes
2004-05-09 05:48:33 +00:00
brodsom
b335e32d88
Obsolete compiler message
2004-05-05 13:59:10 +00:00
brodsom
474897b867
Fix warnings
2004-05-04 16:01:28 +00:00
brodsom
60d9d085a0
Macro cleaning
2004-05-03 21:43:56 +00:00
skidder
43cb0d1ce4
Y-Valve handle translation layer
2004-05-02 23:06:37 +00:00
brodsom
e0854daa99
Removing ib_stdio.h
2004-04-28 22:00:03 +00:00
aafemt
4b99822fc9
Right headers include sequence
2004-03-24 11:06:22 +00:00
alexpeshkoff
7007d6f2a4
1. introduced Jrd and Ods namespaces
...
2. cleanup of blk* request conversions
3. fixed memory allocation in Execute Statement
2004-03-20 14:57:40 +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
c64f31b712
Fix some warnings from GCC/Linux build. Some of them were subtle errors
2004-03-12 07:00:52 +00:00
skidder
86c709e7b8
Kill unneeded volatile
2004-03-11 05:44:32 +00:00
robocop
e6187cecd2
Cleanup
...
Some bug fixes
Style
2004-03-07 07:58:55 +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
skidder
eba78e4574
Fix 64-bitness warnings
2004-03-01 01:29:26 +00:00
skidder
2c4fe73bd4
Implement new shutdown modes (single-user and full shutdown). Tested on Linux/AMD64 CS and SS
2004-02-25 01:50:40 +00:00
robocop
2fa67d46bc
Cleanup
...
Reduce reinterpret and C casts
Fix isql so it can show all predefined blob types in readable form.
2004-02-24 05:34:44 +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
arnobrinkman
a0a636a375
Change rdb$db_key recalculation to the right solution, Thanks to Oleg.
2004-02-16 23:24:31 +00:00
skidder
58697f7cc7
Oops. Committed wrong file version
2004-02-06 07:31:01 +00:00
skidder
2802bfb2c5
Preserve blob type (streamed/segmented) over backup/restore process.
2004-02-06 07:07:46 +00:00
robocop
663e3b16e7
Cleanup
2004-02-02 11:02:12 +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
b441cd9aef
Cleanup
2004-01-13 09:52:19 +00:00
arnobrinkman
22cf637640
Don't forget that a system_flag also can be NULL what also meant no system relation.
...
Thanks to Claudio for attention.
2004-01-12 18:56:47 +00:00
arnobrinkman
9fd6b59750
Fix bug: "arithmetic exception, numeric overflow, or string truncation" on VIEW after restore.
...
This was caused if VIEW1 was referenced in VIEW2, but VIEW2 was restored before VIEW1.
Due that the calculated dbkey_length stored in RDB$RELATIONS for VIEW2 is wrong.
After all relations are restored a recalculation of dbkey_length for VIEWs is done.
This fix should also be added in the first release (SP ?) after FB1.5 final.
2004-01-09 22:34:09 +00:00
dimitr
45636b8c6f
Removed handle leaks in the service manager.
2004-01-07 10:23:46 +00:00
robocop
16cbc204df
Cleanup
2003-12-31 05:36:12 +00:00
fsg
25a0180642
First changes to get it compiled under linux again.
...
FSG
2003-12-27 17:59:59 +00:00
dimitr
358b7caad1
Oooops, sorry.
2003-12-22 18:26:37 +00:00
dimitr
3ca23b5789
Another bugfix by Oleg Loa. Never terminate the server when GBAK is running as a service.
2003-12-22 18:00:08 +00:00
robocop
ad0b5c4de3
General cleanup
2003-12-22 10:00:59 +00:00
skidder
4e30dadd8b
Enable gfix/gstat services API on classic builds. Rollback Blas' changes in this area
2003-12-14 04:44:58 +00:00