Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit b7e5c16

Browse files
committed
Don't throw an exception of the DBName provided to a datoms model is undefined
1 parent e831c38 commit b7e5c16

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/NexusMods.MnemonicDB/QueryFunctions/DatomsTableFunction.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,7 @@ protected override void Bind(BindInfo info)
215215
}
216216
else if (!dbNameParam.IsNull)
217217
{
218-
var namedConn = _queryEngine.GetConnectionByName(dbNameParam.GetVarChar());
219-
connection = namedConn ?? throw new Exception($"No database named {dbNameParam.GetVarChar()}");
218+
connection = _queryEngine.GetConnectionByName(dbNameParam.GetVarChar());
220219
asOf = TxId.MinValue;
221220
}
222221
else

src/NexusMods.MnemonicDB/QueryFunctions/ModelTableFunction.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,7 @@ protected override void Bind(BindInfo info)
468468
}
469469
else if (!dbNameParam.IsNull)
470470
{
471-
var namedConn = _engine.GetConnectionByName(dbNameParam.GetVarChar());
472-
conn = namedConn ?? throw new Exception($"No database named {dbNameParam.GetVarChar()}");
471+
conn = _engine.GetConnectionByName(dbNameParam.GetVarChar());
473472
}
474473
else
475474
{

0 commit comments

Comments
 (0)