Skip to content

Commit

Permalink
feat: add the validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ping-yee committed Apr 17, 2024
1 parent 1434af4 commit d7dd6b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Database/SQLSRV/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ private function getFullName(string $table): string
$database = $this->db->getDatabase();
$table = $dbInfo[0];

if (count($dbInfo) >= 2) {
if (count($dbInfo) === 3) {
if (count($dbInfo) >= 2 && isset($dbInfo[1])) {
if (count($dbInfo) === 3 && isset($dbInfo[2])) {
$database = str_replace('"', '', $dbInfo[0]);
$schema = str_replace('"', '', $dbInfo[1]);
$tableName = str_replace('"', '', $dbInfo[2]);
Expand Down

0 comments on commit d7dd6b4

Please sign in to comment.