Update DatabaseDriverTest.php

SQL Server does not support unsigned integers
[DDC-2668] Fix trim leading zero string
Improved error messages in Paginator: LimitSubqueryOutputWalker

The already existing follow-up check throwing "Not all identifier properties can be found in the ResultSetMapping: %s" is a much more technical description.

If $sqlIdentifier is empty (count 0) it can be concluded that there are no mapped results. An alternative error message could thus be "The Paginator does not support queries without mapped results." (line 153).

Possibly '!=' on line 154 could be replaced by '>' because i think this is the only situation that can occur. But since i don't know this for sure, i left it like i found it.
Improved error messages in Paginator: LimitSubqueryOutputWalker



The already existing follow-up check throwing "Not all identifier properties can be found in the ResultSetMapping: %s" is a much more technical description.

If $sqlIdentifier is empty (count 0) it can be concluded that there are no mapped results. An alternative error message could thus be "The Paginator does not support queries without mapped results." (line 153).

Possibly '!=' on line 154 could be replaced by '>' because i think this is the only situation that can occur. But since i don't know this for sure, i left it like i found it.

Didn't use elseif in this commit as per Stof his suggestion.
Update query-builder.rst

expresion substr changed to substring as of
http://www.doctrine-project.org/jira/browse/DDC-382
Merge pull request #795 from sabzeta/patch-1

Update query-builder.rst
remove unused test case
Merge pull request #799 from FabioBatSilva/leftover-test

remove unused test case
Update SqlWalker.php fixed wrong GROUP BY clause on SQL Server platform

Without this patch a query would like like:
```
SELECT c0_.Country AS sclr0
FROM Continent c0_ WITH (NOLOCK)
WHERE c0_.Country = 38
GROUP BY sclr0
```
Using the column alias in the GROUP BY clause. However this is not allowed on SQL Server. References:
1. http://stackoverflow.com/a/3841804
2. http://technet.microsoft.com/en-us/library/ms189499.aspx (Logical Processing Order of the SELECT statement)

The correct query should be:
```
SELECT c0_.Country AS sclr0
FROM Continent c0_ WITH (NOLOCK)
WHERE c0_.Country = 38
GROUP BY c0_.Country
```
Respect unsigned fields when tables get converted to entities.

This is working on our mysql setup, however i have no idea of the consequences of this change when using other RDBMSes.
Merge pull request #802 from fasmide/patch-1

Respect unsigned fields when tables get converted to entities.
Merge pull request #792 from FabioBatSilva/DDC-2668

[DDC-2668] Fix trim leading zero string
Appended newline to (newly) generated files for PSR2 compatibility

Appended newline to (newly) generated files for PSR2 compatibility
Additionally, slightly improved styling of concatenating return value
Merge pull request #803 from cleentfaar/patch-1

Appended newline to (newly) generated files for PSR2 compatibility
[bugfix] if BIGINT or SMALLINT version field was not incremented.
Made version field accepted type coherent between ClassMetadataInfo and BasicEntityPersister
Changed GroupBy alias to real column name for all platforms and adjusted failing test accordingly. Has fallback in cases where real column name is not possible (example: Doctrine\Tests\ORM\Query\SelectSqlGenerationTest::testGroupBySupportsIdentificationVariable)
When the OptimisticLockingException is generated with the static function lockFailedVersionMismatch and the passed parameters are DateTime instances, the exception could not be thrown because the DateTime object is not implicitly converted to a string.
Merge pull request #804 from diego-mazzaro/master

[bugfix] if BIGINT or SMALLINT version field was not incremented.
Merge pull request #793 from flip111/patch-2

Improved error messages in Paginator: LimitSubqueryOutputWalker
Merge pull request #788 from flip111/patch-3

Update DatabaseDriverTest.php