Skip to content
Snippets Groups Projects
Commit 7fcd675d authored by Philip Warner's avatar Philip Warner
Browse files

When dropping the schema, reconnect as owner of each object.

parent 94bf4526
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,9 @@ ...@@ -34,6 +34,9 @@
* *
* - Check results of IO routines more carefully. * - Check results of IO routines more carefully.
* *
* Modifications - 27-Jan-2001 - pjw@rhyme.com.au
* - When dropping the schema, reconnect as owner of each object.
*
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -180,6 +183,9 @@ void RestoreArchive(Archive* AHX, RestoreOptions *ropt) ...@@ -180,6 +183,9 @@ void RestoreArchive(Archive* AHX, RestoreOptions *ropt)
reqs = _tocEntryRequired(te, ropt); reqs = _tocEntryRequired(te, ropt);
if ( ( (reqs & 1) != 0) && te->dropStmt) { /* We want the schema */ if ( ( (reqs & 1) != 0) && te->dropStmt) { /* We want the schema */
ahlog(AH, 1, "Dropping %s %s\n", te->desc, te->name); ahlog(AH, 1, "Dropping %s %s\n", te->desc, te->name);
/* Reconnect if necessary */
_reconnectAsOwner(AH, "-", te);
/* Drop it */
ahprintf(AH, "%s", te->dropStmt); ahprintf(AH, "%s", te->dropStmt);
} }
te = te->prev; te = te->prev;
......
...@@ -62,7 +62,7 @@ typedef z_stream *z_streamp; ...@@ -62,7 +62,7 @@ typedef z_stream *z_streamp;
#define K_VERS_MAJOR 1 #define K_VERS_MAJOR 1
#define K_VERS_MINOR 4 #define K_VERS_MINOR 4
#define K_VERS_REV 24 #define K_VERS_REV 25
/* Data block types */ /* Data block types */
#define BLK_DATA 1 #define BLK_DATA 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment