@@ -626,7 +626,7 @@ private function setDisplayPartsAndTotal(DisplayParts $displayParts): array
626626 // - For a VIEW we (probably) did not count the number of rows
627627 // so don't test this number here, it would remove the possibility
628628 // of sorting VIEW results.
629- $ tableObject = new Table ($ table , $ db );
629+ $ tableObject = new Table ($ table , $ db, $ this -> dbi );
630630 if ($ unlimNumRows < 2 && ! $ tableObject ->isView ()) {
631631 $ displayParts = $ displayParts ->with (['hasSortLink ' => false ]);
632632 }
@@ -1193,7 +1193,7 @@ private function getDataForResettingColumnOrder(StatementInfo $statementInfo): a
11931193 [$ columnOrder , $ columnVisibility ] = $ this ->getColumnParams ($ statementInfo );
11941194
11951195 $ tableCreateTime = '' ;
1196- $ table = new Table ($ this ->properties ['table ' ], $ this ->properties ['db ' ]);
1196+ $ table = new Table ($ this ->properties ['table ' ], $ this ->properties ['db ' ], $ this -> dbi );
11971197 if (! $ table ->isView ()) {
11981198 $ tableCreateTime = $ this ->dbi ->getTable (
11991199 $ this ->properties ['db ' ],
@@ -2636,7 +2636,7 @@ private function getUrlSqlQuery(StatementInfo $statementInfo)
26362636 private function getColumnParams (StatementInfo $ statementInfo ): array
26372637 {
26382638 if ($ this ->isSelect ($ statementInfo )) {
2639- $ pmatable = new Table ($ this ->properties ['table ' ], $ this ->properties ['db ' ]);
2639+ $ pmatable = new Table ($ this ->properties ['table ' ], $ this ->properties ['db ' ], $ this -> dbi );
26402640 $ colOrder = $ pmatable ->getUiProp (Table::PROP_COLUMN_ORDER );
26412641 $ fieldsCount = $ this ->properties ['fields_cnt ' ];
26422642 /* Validate the value */
@@ -3743,7 +3743,7 @@ private function setMessageInformation(
37433743 }
37443744
37453745 $ messageViewWarning = false ;
3746- $ table = new Table ($ this ->properties ['table ' ], $ this ->properties ['db ' ]);
3746+ $ table = new Table ($ this ->properties ['table ' ], $ this ->properties ['db ' ], $ this -> dbi );
37473747 if ($ table ->isView () && ($ total == $ GLOBALS ['cfg ' ]['MaxExactCountViews ' ])) {
37483748 $ message = Message::notice (
37493749 __ (
0 commit comments