Skip to content

Commit

Permalink
conditionally bind 2nd id
Browse files Browse the repository at this point in the history
  • Loading branch information
nick4598 committed May 14, 2024
1 parent 1bcc1d5 commit b1e5548
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/transformer/src/IModelTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2042,7 +2042,8 @@ export class IModelTransformer extends IModelExportHandler {
sql,
(stmt) => {
stmt.bindId(1, targetModelId);
stmt.bindId(2, targetModelId);
if (this.hasDefinitionContainerDeletionFeature)
stmt.bindId(2, targetModelId);
const val: DbResult = stmt.step();
switch (val) {
case DbResult.BE_SQLITE_ROW:
Expand Down

0 comments on commit b1e5548

Please sign in to comment.