python-glowplug 0.2.4__tar.gz → 0.2.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-glowplug
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Summary:
5
5
  Home-page: https://github.com/jnu/python-glowplug
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-glowplug"
3
- version = "0.2.4"
3
+ version = "0.2.5"
4
4
  description = ""
5
5
  authors = ["Joe Nudell <jnudell@hks.harvard.edu>"]
6
6
  readme = "README.md"
@@ -45,9 +45,9 @@ class MsSqlDriver(DbDriver):
45
45
  # Need to run this with autocommit=True to avoid a transaction error
46
46
  # See: https://stackoverflow.com/a/42008664
47
47
  async with engine.connect() as conn:
48
- await conn.execute(
49
- text(f"CREATE DATABASE {database}").execution_options(autocommit=True)
50
- )
48
+ rc = await conn.get_raw_connection()
49
+ rc.driver_connection.autocommit = True
50
+ await conn.execute(text(f"CREATE DATABASE {database}"))
51
51
 
52
52
  @property
53
53
  def async_uri(self) -> str:
File without changes