Skip to content

Commit

Permalink
Update AbstractQuery.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane authored Oct 17, 2023
1 parent b237ef5 commit ebf655d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webfiori/database/AbstractQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ public function on(string $leftCol, string $rightCol, $cond = '=', $joinWith = '
$table->getLeft()->addColumns([
$leftCol => ['type' => 'varchar']
]);
$leftColObj = $table->getColByKey($leftCol);
$leftColObj = $table->getLeft()->getColByKey($leftCol);

Check warning on line 636 in webfiori/database/AbstractQuery.php

View check run for this annotation

Codecov / codecov/patch

webfiori/database/AbstractQuery.php#L636

Added line #L636 was not covered by tests
}

$leftColObj->setWithTablePrefix(false);
Expand All @@ -649,7 +649,7 @@ public function on(string $leftCol, string $rightCol, $cond = '=', $joinWith = '
$table->getRight()->addColumns([
$rightCol => ['type' => 'varchar']
]);
$rightColObj = $table->getColByKey($rightCol);
$rightColObj = $table->getRight()->getColByKey($rightCol);

Check warning on line 652 in webfiori/database/AbstractQuery.php

View check run for this annotation

Codecov / codecov/patch

webfiori/database/AbstractQuery.php#L652

Added line #L652 was not covered by tests
}
$rightColObj->setWithTablePrefix(false);
$rightColName = $rightColObj->getOwner()->getName().'.'.$rightColObj->getOldName();
Expand Down

0 comments on commit ebf655d

Please sign in to comment.