From 598bb20ccdf7f89b16951c3e535025925be8c710 Mon Sep 17 00:00:00 2001 From: vabenil Date: Tue, 25 Oct 2022 09:37:51 +0300 Subject: [PATCH] make children take DBName into consideration --- database_generation.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database_generation.d b/database_generation.d index 50ed1ba..b6f92f0 100644 --- a/database_generation.d +++ b/database_generation.d @@ -500,7 +500,7 @@ QueryBuilderHelper!(T[]) children(T, B)(B base) { // return QueryBuilderHelper!(T[])(toTableName(T.stringof)).where!(mixin(keyName ~ " => base.id")); // changing mixin cuz of regression in dmd 2.088 - mixin("return QueryBuilderHelper!(T[])(toTableName(T.stringof)).where!("~keyName ~ " => base.id);"); + mixin("return QueryBuilderHelper!(T[])(tableNameFor!T()).where!("~keyName ~ " => base.id);"); } /++