Skip to content

Commit

Permalink
Switch to single quotes when generating constraints in reflection dflts.
Browse files Browse the repository at this point in the history
Fixes #2909
  • Loading branch information
coleifer committed Jul 1, 2024
1 parent 4c4b788 commit 09a1f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playhouse/reflection.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_field_parameters(self):
if self.primary_key and not issubclass(self.field_class, AutoField):
params['primary_key'] = True
if self.default is not None:
params['constraints'] = '[SQL("DEFAULT %s")]' % self.default
params['constraints'] = '[SQL(\'DEFAULT %s\')]' % self.default

# Handle ForeignKeyField-specific attributes.
if self.is_foreign_key():
Expand Down

0 comments on commit 09a1f78

Please sign in to comment.