We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cd116a commit 2cca094Copy full SHA for 2cca094
lib/vendor/creole/drivers/mssqlsrv/MSSQLSRVConnection.php
@@ -120,13 +120,21 @@ public function createStatement()
120
}
121
122
/**
123
- * Returns false since MSSQL doesn't support this method.
+ * @see Connection::applyLimit()
124
*/
125
public function applyLimit(&$sql, $offset, $limit)
126
{
127
- return false;
+ if($limit > 0)
128
+ {
129
+ $sql .= ' offset ' . ($offset?: 0) . ' rows ';
130
+ $sql .= ' fetch next ' . $limit . ' rows only ';
131
+ }
132
+ else if($offset > 0) {
133
134
135
136
137
+
138
139
* @see Connection::close()
140
0 commit comments