Commit 0760d950 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #159 from dtrethewey/fix-sql-server-quoted-aliases

SQL Server doModifyLimitQuery() quoting of doctrine_rownum causes error
parents 1a61068c 129394ce
......@@ -704,7 +704,7 @@ class SQLServerPlatform extends AbstractPlatform
$start = $offset + 1;
$end = $offset + $limit;
$query = "SELECT * FROM (SELECT ROW_NUMBER() OVER ($over) AS \"doctrine_rownum\", $query) AS doctrine_tbl WHERE \"doctrine_rownum\" BETWEEN $start AND $end";
$query = "SELECT * FROM (SELECT ROW_NUMBER() OVER ($over) AS doctrine_rownum, $query) AS doctrine_tbl WHERE doctrine_rownum BETWEEN $start AND $end";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment