doctrine/dbal — pull request #306 by shaneneuerburg (2013-04-18 15:13:43+00:00)
Title: [DBAL-497] Fixed SQL Server platform replacing 'FROM' in column names during limit

The regex used to replace the FROM clause was in a "starts with" form, which also matched column names that start with the word "FROM". This resulted in column names being replaced with the logic used for limiting, breaking the query once pagination is used. I added a whitespace requirement after "FROM' in the regex as well as a trailing whitespace in the replacement.