Skip to content

Conversation

@deeky666
Copy link
Member

Fixes #2427

PostgreSQL 9.4 only bug. When defining negative default values like -1 for numeric type columns, the server puts parentheses around the default value when introspected from the database ((-1)).

This is an approach to fix this incompatibility without breaking introspection for default values from strings for example (see test).

This is an ugly one :>

@Ocramius
Copy link
Member

Ocramius commented Feb 4, 2017

LGTM 👍

@Ocramius Ocramius merged commit d844203 into doctrine:master Feb 4, 2017
@Ocramius Ocramius modified the milestones: 2.6, 2.5.11 Feb 4, 2017
@Ocramius
Copy link
Member

Ocramius commented Feb 4, 2017

Changed milestone: Postgres94Platform only exists in 2.6

@Ocramius Ocramius changed the title [DBAL-2427] Fix negative default value introspection on PostgreSQL 9.4 DBAL-2427 Fix negative default value introspection on PostgreSQL 9.4 Jul 22, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Postgres SchemaManager is reading a default of -1 as (-1) for postgres 9.4

2 participants