File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -158,18 +158,16 @@ protected function commandFieldsExists(): bool
158158 return !empty (Arr::flatten ($ this ->fields ));
159159 }
160160
161- protected function getColumnList (string $ table , ?string $ name = null ): array
161+ protected function getColumnList (string $ table , ?string $ connectionName = null ): array
162162 {
163- $ config = DB ::connection ($ name )->getConfig ();
164-
165- $ name = empty ($ name ) ? "pdo_ {$ config ['driver ' ]}" : "pdo_ {$ name }" ;
163+ $ config = DB ::connection ($ connectionName )->getConfig ();
166164
167165 $ dbalConnection = DriverManager::getConnection ([
168166 'dbname ' => $ config ['database ' ],
169167 'user ' => $ config ['username ' ],
170168 'password ' => $ config ['password ' ],
171169 'host ' => $ config ['host ' ],
172- 'driver ' => $ name ,
170+ 'driver ' => " pdo_ { $ config [ ' driver ' ]}" ,
173171 ]);
174172
175173 return $ dbalConnection
You can’t perform that action at this time.
0 commit comments