robocop
0d1985d1f0
Misc, explicit constructors, extra commas in enumerations, constness, etc.
2008-02-02 16:57:15 +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
067b04f988
Fixed CORE-1703.
2008-01-19 13:30:46 +00:00
dimitr
12c4322ab9
The merge continued.
2008-01-16 06:11:50 +00:00
asfernandes
40997f0bc8
Task CORE-1618 - Change GBAK option to not run database triggers to use the same name as the ISQL equivalent option
2007-11-26 14:26:46 +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
asfernandes
76f3f85b80
Misc
2007-10-29 00:19:27 +00:00
dimitr
0a37cd75b5
Fixed a possible 64-bit issue spotted by Claudio.
2007-10-28 20:20:44 +00:00
skidder
2cee6ced62
The fix by Roman Simakov for unrestorable databases if computed fields reference stored procedures
2007-10-28 13:32:28 +00:00
robocop
3a7d93f658
Misc tweaks with Firebird::string.
2007-08-26 09:53:08 +00:00
asfernandes
0abf92fb9b
Misc
2007-05-09 02:03:49 +00:00
alexpeshkoff
918fe445d9
1. Fixed ignored IO-errors (i.e. incomplete backups) on non-windows platforms.
...
2. Fixed CORE-1237 - GBAK does not create backup in service_mgr mode if there is no space on disk, no error reported.
2007-05-08 15:16:08 +00:00
alexpeshkoff
6758baebf8
use ClumpletWriter for spb
2007-05-08 15:13:57 +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
dimitr
24c402dd31
Fixed CORE-1205.
2007-04-13 12:10:41 +00:00
alexpeshkoff
d63491e3c5
Finished gcc-warnings cleanup
2007-04-11 16:05:40 +00:00
asfernandes
72d139baf3
Misc
2007-04-07 15:52:45 +00:00
alexpeshkoff
1932c8f4e7
added switch -trusted to most of firebird utilities
2007-04-07 08:47:58 +00:00
asfernandes
2e08c6c366
Misc
2007-04-05 18:44:00 +00:00
robocop
da4312865c
Simplification.
2007-04-04 08:50:55 +00:00
robocop
fc97d473a7
Introduce UserBlob into restore.
...
Pass the thread-specific information as parameter in most cases.
2007-04-04 08:45:40 +00:00
robocop
77649d995c
Introduce UserBlob into backup.
2007-04-04 08:44:46 +00:00
asfernandes
e3ce7f7104
Misc
2007-03-30 01:57:36 +00:00
robocop
93f17d8508
Fix CORE-1174
2007-03-28 04:53:09 +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
aafemt
bc6a913e84
Fix CORE-949
2007-03-27 10:29:43 +00:00
asfernandes
2fa7a76177
Misc
2007-03-06 02:29:48 +00:00
asfernandes
e9412345c3
Always restore with database triggers turned off.
...
The contrary doesn't make sense, and old engines (at least V2.0) accepts unkown DPB.
2007-03-04 01:27:06 +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
d009be834f
Misc.
2007-02-09 08:34:16 +00:00
robocop
374bab0387
Misc.
2007-02-06 09:51:38 +00:00
asfernandes
2216487d24
Fixed CORE-1064 - Wrong backup order for character sets and collations
2006-12-22 14:29:37 +00:00
alexpeshkoff
1a4652f01a
Trusted authentication for windows
2006-12-08 18:38:15 +00:00
asfernandes
f42d371ae2
Misc
2006-11-25 01:34:53 +00:00
robocop
88a04e0441
Solve CORE-1009 so that Jiri can sleep at night.
...
:-)
2006-11-24 10:22:20 +00:00
asfernandes
d168869475
Added RDB$NULL_FLAG and RDB$PARAMETER_MECHANISM to RDB$PROCEDURE_PARAMETERS
2006-11-24 00:25:13 +00:00
asfernandes
05a44671d1
Corrections
2006-11-06 00:47:04 +00:00
asfernandes
570b6cd4b4
1) CORE-645 and CORE-745: Database triggers
...
2) CORE-711: Make syntax for "CREATE TRIGGER" compliant with SQL2003
2006-11-05 18:30:36 +00:00
hvlad
58d381edd7
1. Remove blr_src_info code as it is prevents database downgrade from ODS 11.1
...
2. Put debug information (mapping between blr offset and source line\column and names of local variables) into new blob field RDB$DEBUG_INFO
This is first step to implement native SQL debugger i believe
2006-10-30 20:58:06 +00:00
robocop
ae1dd3098c
We just need one field to identify a new ODS version.
2006-08-30 04:50:53 +00:00
asfernandes
18b57e55b5
Misc
2006-08-27 02:48:51 +00:00
asfernandes
73b8ff849e
Backup the new fields added - thanks to Claudio
2006-08-26 02:59:49 +00:00
aafemt
c662ea7d9e
Warnings
2006-08-17 12:08:49 +00:00
robocop
1f2dc4259d
Fix possible buffer overrun when restoring a db.
2006-08-01 07:42:30 +00:00
asfernandes
818d55d5a8
Misc
2006-07-30 19:49:39 +00:00
robocop
16fdc76d44
Fix wrong gbak verbose messages due to Borland's copy/paste (example: function instead of procedure).
...
Initialize more sysflags to zero instead of NULL.
2006-07-29 06:01:29 +00:00
robocop
1c967977a4
More backwards compatibility.
...
Store sysflag always. Cases that I missed before.
2006-07-28 08:29:05 +00:00
asfernandes
ccbaf55533
Misc
2006-07-28 01:44:36 +00:00
alexpeshkoff
028ab3c597
fixed AV related with SVC_TRMNTR in services
2006-07-27 14:24:09 +00:00
robocop
5efaa068bc
Misc.
2006-07-27 09:27:43 +00:00
robocop
965a66c164
Fix gbak to correct the wrong idea that by looking at the backup level you can guess the target server version where the db restoration will take place. Now it's possible to use FB2.1's gbak to restore on FB2.1, FB2.0, FB1.5, FB1, IB6, IB5 and IB4. Spurious tags for the current backup level are detected. Missing fields for the target ODS are discarded.
...
Need to fix some historically wrong messages and store always the sysflag (missed three cases last year).
2006-07-27 09:16:03 +00:00
robocop
fd70603eb1
Checking capabilities when restoring. Work in progress.
2006-07-25 05:25:06 +00:00
robocop
10f3f6b7e2
We just need one field that may activate a particular flag (ods level) in the capabilities.
2006-07-25 05:10:41 +00:00
asfernandes
9d3a071b68
Misc
2006-07-21 12:43:19 +00:00
robocop
64f6eb42a1
Misc.
2006-07-21 01:35:17 +00:00
asfernandes
2689003a91
Misc
2006-07-18 18:02:54 +00:00
dimitr
3c6b6e5584
Fixed typo.
2006-07-18 13:29:51 +00:00
dimitr
c4b5942c74
Allow backup/restore of the new fields.
2006-07-18 11:17:03 +00:00
robocop
db5f743685
Misc.
2006-06-16 08:13:20 +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
alexpeshkoff
1a5505065d
ported fixes from 2.0 release
2006-04-16 12:58:29 +00:00
asfernandes
45446afa71
Remove obsolete comment
2006-04-05 16:24:08 +00:00
alexpeshkoff
85c5ad885f
return error in case of unexpected status_exception
2006-03-15 17:27:53 +00:00
robocop
1cd4ee5f0c
Get rid of unused handle.
2006-03-15 04:21:47 +00:00
hvlad
f6aa933c78
Update statistics for system indices after restore
2006-03-13 14:39:19 +00:00
robocop
1f84bac700
Mark unused data members, discover more code associated to conditional compilation, clean some places, replace custom loops by memcpy and memset when possible, etc.
2006-02-23 05:08:26 +00:00
hvlad
73dcebc962
Replace "../jrd/jrd_time.h" with "../common/classes/timestamp.h"
2006-02-03 13:13:27 +00:00
robocop
8f1a076123
Skip system objects: exceptions, blob filters and procedures.
2006-01-29 03:23:34 +00:00
alexpeshkoff
ca70704563
fixed gcc warning(s)
2006-01-16 15:39:55 +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
2a499fb72d
Totally misc.
2006-01-13 22:25:05 +00:00
dimitr
a5a8041e26
1) Fixed stdin/stdout redirection in win32 gsplit
...
2) Make the code more GCC4 friendly
2006-01-13 07:36:30 +00:00
dimitr
7e6dedd0bc
Correction.
2006-01-10 08:31:29 +00:00
dimitr
8e37fbe3ac
Minor cleanup + solved one of the GCC4 compile issues.
2006-01-09 19:57:32 +00:00
alexpeshkoff
70045882f5
let use services to backup security database
2005-12-05 11:45: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
asfernandes
710fce2c2d
1) Make "total" to Claudio taste :-)
...
2) Fix error found by Vlad
2005-11-17 11:32:38 +00:00
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