30 |
|
interface |
31 |
|
|
32 |
|
uses |
33 |
< |
Classes, IBDatabase, SysUtils, IBServices, IBXUpgradeConfFile, IBHeader, ibxscript; |
33 |
> |
Classes, IBDatabase, SysUtils, IBServices, IBXUpgradeConfFile, ibxscript, |
34 |
> |
IB; |
35 |
|
|
36 |
|
type |
37 |
|
|
194 |
|
|
195 |
|
implementation |
196 |
|
|
197 |
< |
uses IBIntf, DB, IBBlob, ZStream |
197 |
> |
uses DB, IBBlob, ZStream |
198 |
|
{$IFDEF Unix} ,initc, regexpr {$ENDIF} |
199 |
|
{$IFDEF WINDOWS} ,Windows ,Windirs {$ENDIF}; |
200 |
|
|
329 |
|
begin |
330 |
|
if not Enabled or (csDesigning in ComponentState) then Exit; |
331 |
|
|
332 |
< |
if not IsEmbeddedServer then |
332 |
> |
if not FirebirdAPI.IsEmbeddedServer then |
333 |
|
raise EIBLocalFatalError.Create(sNoEmbeddedServer); |
334 |
|
|
335 |
|
InitDatabaseParameters(DBParams,DBName); |
362 |
|
end; |
363 |
|
|
364 |
|
procedure TCustomIBLocalDBSupport.SetupFirebirdEnv; |
364 |
– |
var TmpDir: string; |
365 |
|
begin |
366 |
– |
TmpDir := GetTempDir + |
367 |
– |
DirectorySeparator + 'firebird_' + sysutils.GetEnvironmentVariable('USER'); |
368 |
– |
if sysutils.GetEnvironmentVariable('FIREBIRD_TMP') = '' then |
369 |
– |
begin |
370 |
– |
if not DirectoryExists(tmpDir) then |
371 |
– |
mkdir(tmpDir); |
372 |
– |
SetEnvironmentVariable('FIREBIRD_TMP',PChar(TmpDir)); |
373 |
– |
end; |
374 |
– |
if sysutils.GetEnvironmentVariable('FIREBIRD_LOCK') = '' then |
375 |
– |
begin |
376 |
– |
if not DirectoryExists(tmpDir) then |
377 |
– |
mkdir(tmpDir); |
378 |
– |
SetEnvironmentVariable('FIREBIRD_LOCK',PChar(TmpDir)); |
379 |
– |
end; |
366 |
|
if sysutils.GetEnvironmentVariable('FIREBIRD') = '' then |
367 |
|
begin |
368 |
|
if FirebirdDirectory <> '' then |