Skip to content

Commit d7dd6b4

Browse files
committed
feat: add the validation.
1 parent 1434af4 commit d7dd6b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/Database/SQLSRV/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ private function getFullName(string $table): string
295295
$database = $this->db->getDatabase();
296296
$table = $dbInfo[0];
297297

298-
if (count($dbInfo) >= 2) {
299-
if (count($dbInfo) === 3) {
298+
if (count($dbInfo) >= 2 && isset($dbInfo[1])) {
299+
if (count($dbInfo) === 3 && isset($dbInfo[2])) {
300300
$database = str_replace('"', '', $dbInfo[0]);
301301
$schema = str_replace('"', '', $dbInfo[1]);
302302
$tableName = str_replace('"', '', $dbInfo[2]);

0 commit comments

Comments
 (0)