- Bugfixes made while working on lean/console
This commit is contained in:
parent
338b599d39
commit
9ebf7b05d7
|
@ -30,4 +30,5 @@ interface AdapterInterface {
|
||||||
public function tableSyntax() : array;
|
public function tableSyntax() : array;
|
||||||
public function whitelistAttributes(array &$parameters) : void;
|
public function whitelistAttributes(array &$parameters) : void;
|
||||||
public function generateAlterColumn(FieldDefinition $definition, array $field) : string|\Stringable;
|
public function generateAlterColumn(FieldDefinition $definition, array $field) : string|\Stringable;
|
||||||
|
public function splitAlterQuery() : bool;
|
||||||
}
|
}
|
||||||
|
|
|
@ -229,7 +229,7 @@ class MsSQL implements AdapterInterface {
|
||||||
return Ulmus::convertObject($value);
|
return Ulmus::convertObject($value);
|
||||||
|
|
||||||
case is_array($value):
|
case is_array($value):
|
||||||
return json_encode($array);
|
return json_encode($value);
|
||||||
|
|
||||||
case is_bool($value):
|
case is_bool($value):
|
||||||
return (int) $value;
|
return (int) $value;
|
||||||
|
@ -252,4 +252,9 @@ class MsSQL implements AdapterInterface {
|
||||||
{
|
{
|
||||||
return QueryBuilder\MssqlQueryBuilder::class;
|
return QueryBuilder\MssqlQueryBuilder::class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function splitAlterQuery() : bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,4 +175,9 @@ class MySQL implements AdapterInterface {
|
||||||
{
|
{
|
||||||
return "InnoDB";
|
return "InnoDB";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function splitAlterQuery() : bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,4 +213,9 @@ class SQLite implements AdapterInterface {
|
||||||
$definition->getSqlParams(),
|
$definition->getSqlParams(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function splitAlterQuery() : bool
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -222,6 +222,12 @@ class EntityCollection extends \ArrayObject implements \JsonSerializable {
|
||||||
return $list;
|
return $list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function walk(Callable $callback) : self
|
||||||
|
{
|
||||||
|
return $this->filtersCollection($callback);
|
||||||
|
}
|
||||||
|
|
||||||
public function sum($field) : float|int
|
public function sum($field) : float|int
|
||||||
{
|
{
|
||||||
return array_sum($this->column($field));
|
return array_sum($this->column($field));
|
||||||
|
|
Loading…
Reference in New Issue