mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-23 20:45:59 +00:00
fix: correct databaseFile for engines with databseFileLocationOnServer
This commit is contained in:
@@ -47,7 +47,7 @@ async function prepareConnection(engine, database) {
|
|||||||
if (engine.generateDbFile) {
|
if (engine.generateDbFile) {
|
||||||
return {
|
return {
|
||||||
...connection,
|
...connection,
|
||||||
databaseFile: `dbtemp/${database}`,
|
databaseFile: (engine.databaseFileLocationOnServer ?? 'dbtemp/') + database,
|
||||||
isPreparedOnly: true,
|
isPreparedOnly: true,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user