Skip to content

Commit

Permalink
Update src/Platforms/PostgreSQL120Platform.php
Browse files Browse the repository at this point in the history
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
  • Loading branch information
allan-simon and greg0ire committed Mar 20, 2024
1 parent e64dbd2 commit c93cb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Platforms/PostgreSQL120Platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class PostgreSQL120Platform extends PostgreSQL100Platform
public function getDefaultColumnValueSQLSnippet(): string
{
// in case of GENERATED ALWAYS AS (foobar) STORED column (added in PostgreSQL 12.0)
// postgreSQL's pg_get_expr(adbin, adrelid) will return the 'foobar' part
// PostgreSQL's pg_get_expr(adbin, adrelid) will return the 'foobar' part
// which is not the 'default' value of the column but its 'definition'
// so in that case we force it to NULL as DBAL will use that column only for the
// 'default' value
Expand Down

0 comments on commit c93cb19

Please sign in to comment.