Fixed syntax error that was occurring when running on top of postgresql, fixes #16 (as described in http://www.doctrine-project.org/jira/browse/DDC-1683)