mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: remove SQL table alias keyword AS
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@108961 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b6aef41d1c
commit
4659068c3f
@ -453,7 +453,7 @@ class SQLQuery {
|
||||
if($this->groupby) {
|
||||
$countQuery = new SQLQuery();
|
||||
$countQuery->select = array("count(*)");
|
||||
$countQuery->from = array('(' . $clone->sql() . ') as all_distinct');
|
||||
$countQuery->from = array('(' . $clone->sql() . ') all_distinct');
|
||||
|
||||
return $countQuery->execute()->value();
|
||||
|
||||
|
@ -246,9 +246,9 @@ class Permission extends DataObject {
|
||||
UNION
|
||||
|
||||
SELECT \"Code\"
|
||||
FROM \"PermissionRoleCode\" AS PRC
|
||||
INNER JOIN \"PermissionRole\" AS PR ON PRC.\"RoleID\" = PR.\"ID\"
|
||||
INNER JOIN \"Group_Roles\" AS GR ON GR.\"PermissionRoleID\" = PR.\"ID\"
|
||||
FROM \"PermissionRoleCode\" PRC
|
||||
INNER JOIN \"PermissionRole\" PR ON PRC.\"RoleID\" = PR.\"ID\"
|
||||
INNER JOIN \"Group_Roles\" GR ON GR.\"PermissionRoleID\" = PR.\"ID\"
|
||||
WHERE \"GroupID\" IN ($groupCSV)
|
||||
")->column());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user