Skip to content

Commit

Permalink
Backported fix for CORE-959.
Browse files Browse the repository at this point in the history
  • Loading branch information
dyemanov committed Dec 12, 2006
1 parent 4d45414 commit 5e95368
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/utilities/gstat/dba.epp
Expand Up @@ -540,6 +540,14 @@ int CLIB_ROUTINE main(int argc, char** argv)

/* Open database and go to work */

const char* local_inet_prefix = "localhost:";
const char* local_wnet_prefix = "\\\\.\\";
Firebird::PathName conn_str = name;
if (conn_str.find(local_inet_prefix) == 0)
name += strlen(local_inet_prefix);
else if (conn_str.find(local_wnet_prefix) == 0)
name += strlen(local_wnet_prefix);

Firebird::PathName temp_buf = name;
if (ResolveDatabaseAlias(temp_buf, temp_buf)) {
name = temp_buf.c_str();
Expand Down

0 comments on commit 5e95368

Please sign in to comment.