From 642d31dc31c7d4c7783e8b008f7feaf057f53d56 Mon Sep 17 00:00:00 2001 From: hackerESQ Date: Mon, 28 Oct 2024 21:55:56 -0500 Subject: [PATCH] fix:allow large cte functions --- app/Models/Holding.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Models/Holding.php b/app/Models/Holding.php index c3f5d16..098c525 100644 --- a/app/Models/Holding.php +++ b/app/Models/Holding.php @@ -242,6 +242,9 @@ class Holding extends Model if (config('database.default') === 'sqlite') { $date_interval = "date(date, '+1 day')"; + } else { + + DB::statement('SET cte_max_recursion_depth=1000000;'); } return DB::table(DB::raw("(