Upgrade to 3.8.1
This commit is contained in:
@@ -898,9 +898,8 @@ class Query
|
||||
if (preg_match('!^findBy([a-z]+)!i', $method, $match)) {
|
||||
$column = Str::lower($match[1]);
|
||||
return $this->findBy($column, $arguments[0]);
|
||||
} else {
|
||||
throw new InvalidArgumentException('Invalid query method: ' . $method, static::ERROR_INVALID_QUERY_METHOD);
|
||||
}
|
||||
throw new InvalidArgumentException('Invalid query method: ' . $method, static::ERROR_INVALID_QUERY_METHOD);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1027,8 +1026,8 @@ class Query
|
||||
// attach the where clause
|
||||
if (empty($current) === false) {
|
||||
return $current . ' ' . $mode . ' ' . $result;
|
||||
} else {
|
||||
return $result;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
@@ -684,9 +684,9 @@ abstract class Sql
|
||||
}
|
||||
|
||||
return implode(', ', $result);
|
||||
} else {
|
||||
return $columns;
|
||||
}
|
||||
|
||||
return $columns;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -833,9 +833,9 @@ abstract class Sql
|
||||
|
||||
if ($set === true) {
|
||||
return $this->valueSet($table, $values, $separator, $enforceQualified);
|
||||
} else {
|
||||
return $this->valueList($table, $values, $separator, $enforceQualified);
|
||||
}
|
||||
|
||||
return $this->valueList($table, $values, $separator, $enforceQualified);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user