- Fixed the QueryBuilder's escaping problem - adapters are now responsible for escaping identifiers.
- Added a MsSQL offset query fragment. There is still a problem with the way the Repository must act within another adapter.
This commit is contained in:
1 parent
3ff97f3bf0
commit
026a0f4f83
8 files changed
+75
-26
No files matched your search
+3
-1
@@ -25,6 +25,8 @@ class Join extends Fragment {
|
||||
|
||||
public /*string|QueryBuilder*/ $table;
|
||||
|
||||
public ? string $alias;
|
||||
|
||||
public string $field;
|
||||
|
||||
public /*string|QueryBuilder*/ $value;
|
||||
@@ -45,6 +47,6 @@ class Join extends Fragment {
|
||||
|
||||
public function render() : string
|
||||
{
|
||||
return $this->renderSegments([ $this->side, static::SQL_TOKEN, $this->table, $this->attachment, $this->field, "=", $this->value ]);
|
||||
return $this->renderSegments([ $this->side, static::SQL_TOKEN, $this->table, $this->alias ?? "", $this->attachment, $this->field, "=", $this->value ]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user