mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Restoring previous patch to DboMssql
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7580 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
dbeb3af384
commit
ee0e81406c
1 changed files with 2 additions and 3 deletions
|
@ -546,9 +546,9 @@ class DboMssql extends DboSource {
|
|||
$offset = intval($offset[1]) + intval($limitVal[1]);
|
||||
$rOrder = $this->__switchSort($order);
|
||||
list($order2, $rOrder) = array($this->__mapFields($order), $this->__mapFields($rOrder));
|
||||
return "SELECT * FROM (SELECT {$limit} * FROM (SELECT TOP {$offset} {$fields} FROM {$table} {$alias} {$joins} {$conditions} {$order}) AS Set1 {$rOrder}) AS Set2 {$order2}";
|
||||
return "SELECT * FROM (SELECT {$limit} * FROM (SELECT TOP {$offset} {$fields} FROM {$table} {$alias} {$joins} {$conditions} {$group} {$order}) AS Set1 {$rOrder}) AS Set2 {$order2}";
|
||||
} else {
|
||||
return "SELECT {$limit} {$fields} FROM {$table} {$alias} {$joins} {$conditions} {$order}";
|
||||
return "SELECT {$limit} {$fields} FROM {$table} {$alias} {$joins} {$conditions} {$group} {$order}";
|
||||
}
|
||||
break;
|
||||
case "schema":
|
||||
|
@ -566,7 +566,6 @@ class DboMssql extends DboSource {
|
|||
${$var} = "\t" . join(",\n\t", array_filter(${$var}));
|
||||
}
|
||||
}
|
||||
echo "CREATE TABLE {$table} (\n{$columns});\n{$indexes}";
|
||||
return "CREATE TABLE {$table} (\n{$columns});\n{$indexes}";
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue