robocop
fda9c3bc75
Style.
2009-01-05 08:22:58 +00:00
robocop
2c6dcd5f38
Booleans.
2009-01-02 09:48:57 +00:00
asfernandes
a177d28d60
Misc
2008-12-31 20:22:10 +00:00
robocop
7aa0ac1cd4
Shut up compiler warnings (unreferenced vars, uninitialized vars, etc).
2008-12-31 09:36:57 +00:00
robocop
d11c994960
Style.
2008-12-31 05:06:08 +00:00
robocop
e9be920cc0
Shut up some compiler warnings (some warnings should be enabled again in autoconfig_msvc.h IMHO because hiding our possible mistakes won't help us).
2008-12-30 10:52:52 +00:00
asfernandes
582d837778
Remove trailing spaces from epp files - I had forgot them
2008-12-20 23:50:22 +00:00
alexpeshkoff
eda7114225
Fixed CORE-2223: Multiple bugs in gbak when working with ACLs
2008-12-05 15:06:21 +00:00
asfernandes
a2fbf5a3f1
Fixed CORE-2214 - Incorrect restore of security classes
2008-11-28 14:20:05 +00:00
alexpeshkoff
e1210d2e9e
fixed missing return value from bool function
2008-11-24 17:05:22 +00:00
asfernandes
077f8360a0
Misc
2008-07-31 00:45:43 +00:00
hvlad
0991d326c7
It is good idea to set NULL flag for nullable fields if backup have no value for its ;)
2008-07-25 08:43:09 +00:00
robocop
b8ea332022
Misc.
2008-06-05 11:02:42 +00:00
robocop
07c087094d
Mostly remove useless parentheses.
2008-06-03 06:14:59 +00:00
alexpeshkoff
27a97e2a6a
1. Modified syntax of ALTER ROLE command according to Dmitry's request.
...
2. Avoid any use of predefined NT group name "Domain Admins".
3. Fixed DYN code generation for USER operations.
***** WARNING *****
After this commit all previous backups of 2.5 databases with turned on
admins mapping become unrestorable. ODS is not changed.
2008-05-14 11:24:45 +00:00
dimitr
b09a10965a
Misc.
2008-05-07 05:33:48 +00:00
dimitr
c40d188bf5
1) Turn on FW on all platforms by default.
...
2) Cleanup/misc.
2008-05-07 05:23:48 +00:00
alexpeshkoff
7ff8e4d2be
Fixed CORE-1879: Server uses wrong authentication method
2008-05-04 13:38:02 +00:00
hvlad
6ee4242552
Fixed bug CORE-1841 : If some VIEW used derived tables and long table names\aliases, It is possible to overflow RDB$VIEW_RELATIONS.RDB$CONTEXT_NAME.
...
Attention : ODS changed !
2008-04-29 16:39:17 +00:00
hvlad
2d7379aa3b
Fixed broken restore via service API
2008-04-29 12:24:07 +00:00
asfernandes
1c7cee202a
Fix BLOBs when using -FIX_FSS_DATA NONE
2008-04-13 14:53:48 +00:00
asfernandes
aab534e66c
1) Misc 2) Remove temp. comment found by Claudio
2008-04-13 14:38:39 +00:00
asfernandes
28bf8b4f6c
Improvement CORE-789 - Collation backup of RDB$DEFAULT_COLLATE_NAME
2008-04-11 15:35:14 +00:00
asfernandes
a9413397a7
Feature CORE-1831 - Creation of GBAK restore switches FIX_FSS_DATA and FIX_FSS_METADATA
2008-04-11 12:57:52 +00:00
alexpeshkoff
71703e1d17
1. Fixed CORE-1805: Database is not restored correctly using Services API.
...
2. Made index activation independent from verbose flag - helps with broken backups.
2008-04-04 09:42:42 +00:00
robocop
2b33eae4d1
Minimize casts.
2008-03-10 08:31:35 +00:00
robocop
fbdc3dbb2b
Style, constness and macro cleanup.
2008-02-03 11:20:48 +00:00
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
12c4322ab9
The merge continued.
2008-01-16 06:11:50 +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
skidder
2cee6ced62
The fix by Roman Simakov for unrestorable databases if computed fields reference stored procedures
2007-10-28 13:32:28 +00:00
alexpeshkoff
d63491e3c5
Finished gcc-warnings cleanup
2007-04-11 16:05:40 +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
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
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
374bab0387
Misc.
2007-02-06 09:51:38 +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
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
asfernandes
73b8ff849e
Backup the new fields added - thanks to Claudio
2006-08-26 02:59:49 +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
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
asfernandes
9d3a071b68
Misc
2006-07-21 12:43:19 +00:00
asfernandes
2689003a91
Misc
2006-07-18 18:02:54 +00:00
dimitr
c4b5942c74
Allow backup/restore of the new fields.
2006-07-18 11:17:03 +00:00
alexpeshkoff
1a5505065d
ported fixes from 2.0 release
2006-04-16 12:58:29 +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
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
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
alexpeshkoff
34a9df7e8f
fixed restore of database with broken foreign keys
2005-09-14 05:58:04 +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
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
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
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
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
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
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
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
brodsom
dd5d8aba0a
-Replace stuff macros with either common stuff inlines or class inline functions
2004-05-24 11:03:54 +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
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
robocop
e6187cecd2
Cleanup
...
Some bug fixes
Style
2004-03-07 07:58:55 +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
fsg
25a0180642
First changes to get it compiled under linux again.
...
FSG
2003-12-27 17:59:59 +00:00
robocop
ad0b5c4de3
General cleanup
2003-12-22 10:00:59 +00:00