Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytest_postgresql/janitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def init(self) -> None:
"""Create database in postgresql."""
with self.cursor() as cur:
if self.is_template():
cur.execute(f'CREATE DATABASE "{self.template_dbname}";')
cur.execute(f'CREATE DATABASE "{self.template_dbname}" WITH IS_TEMPLATE = TRUE;')
elif self.template_dbname is None:
cur.execute(f'CREATE DATABASE "{self.dbname}";')
else:
Expand Down