From e65d86e0eebc3d9fd9b19bde719d145342106d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Dom=C3=ADnguez=20Arn=C3=A1ez?= Date: Tue, 19 Mar 2024 20:23:24 +0000 Subject: [PATCH] Add fromRaw to FromSelector regex. Closes Vincit/objection.js#2628 --- lib/queryBuilder/QueryBuilderOperationSupport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/queryBuilder/QueryBuilderOperationSupport.js b/lib/queryBuilder/QueryBuilderOperationSupport.js index 35797b158..f23f1a058 100644 --- a/lib/queryBuilder/QueryBuilderOperationSupport.js +++ b/lib/queryBuilder/QueryBuilderOperationSupport.js @@ -12,7 +12,7 @@ const WhereSelector = /^(where|orWhere|andWhere|find\w+)/; const OnSelector = /^(on|orOn|andOn)/; const OrderBySelector = /orderBy/; const JoinSelector = /(join|joinRaw|joinRelated)$/i; -const FromSelector = /^(from|into|table)$/; +const FromSelector = /^(from|fromRaw|into|table)$/; class QueryBuilderOperationSupport { constructor(...args) {