8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:43:03 +01:00

Fixed boot build

This commit is contained in:
alexpeshkoff 2004-03-14 14:39:45 +00:00
parent 3820508951
commit 84157fc582
2 changed files with 5 additions and 2 deletions

View File

@ -275,7 +275,7 @@ ISC_STATUS GDS_ATTACH_DATABASE(
comm->ips_buffers[commi].ips_flags = 0; comm->ips_buffers[commi].ips_flags = 0;
comm->ips_operation = op_attach; comm->ips_operation = op_attach;
ips = &comm->ips_operations.ips_op_object; ips = &comm->ips_operations.ips_op_object;
char temp[MAXPATHLEN]; Firebird::PathName temp;
if (ResolveDatabaseAlias(file_name, temp)) { if (ResolveDatabaseAlias(file_name, temp)) {
IPS_C_IN(comm, ips_name, IPS_ATTACH_NAME, file_name, l); IPS_C_IN(comm, ips_name, IPS_ATTACH_NAME, file_name, l);
} }
@ -841,7 +841,7 @@ ISC_STATUS GDS_CREATE_DATABASE(ISC_STATUS* user_status,
GET_OBJECT(icc); GET_OBJECT(icc);
comm->ips_operation = op_create; comm->ips_operation = op_create;
ips = &comm->ips_operations.ips_op_object; ips = &comm->ips_operations.ips_op_object;
char temp[MAXPATHLEN]; Firebird::PathName temp;
if (ResolveDatabaseAlias(file_name, temp)) { if (ResolveDatabaseAlias(file_name, temp)) {
IPS_C_IN(comm, ips_name, IPS_CREATE_NAME, file_name, l); IPS_C_IN(comm, ips_name, IPS_CREATE_NAME, file_name, l);
} }

View File

@ -22,5 +22,8 @@
#ifndef DB_ALIAS_H #ifndef DB_ALIAS_H
#define DB_ALIAS_H #define DB_ALIAS_H
#include "fb_string.h"
bool ResolveDatabaseAlias(const Firebird::PathName& alias, Firebird::PathName& database); bool ResolveDatabaseAlias(const Firebird::PathName& alias, Firebird::PathName& database);
#endif #endif