mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-04 02:44:43 +00:00
Updates the benchmark logic.
This commit is contained in:
parent
2b6e80730a
commit
94bcc4f499
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ def write_conditions():
|
|||
# PostgreSQL
|
||||
with connections['postgresql'].cursor() as cursor:
|
||||
cursor.execute('SELECT version();')
|
||||
versions['PostgreSQL'] = re.match(r'^PostgreSQL ([\d\.]+) on .+$',
|
||||
versions['PostgreSQL'] = re.match(r'^PostgreSQL\s+(\S+)\s',
|
||||
cursor.fetchone()[0]).group(1)
|
||||
# MySQL
|
||||
with connections['mysql'].cursor() as cursor:
|
||||
|
|
|
|||
Loading…
Reference in a new issue