Fixed generated sql for postgres substring function

Currently, the postgres dbal platform generates the following sql code for the substring function :  `SUBSTR('foo', 1, 2)`
where in postgres, it should be :
`SUBSTRING('foo' FROM 1 FOR 2)`
This pull request simply fixes that issue.