| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3909c04 commit 67f5104
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -410,6 +410,9 @@ def database_dialect(self): | |||
| 410 | 410 | :rtype: :class:`google.cloud.spanner_admin_database_v1.types.DatabaseDialect` | |
| 411 | 411 | :returns: the dialect of the database | |
| 412 | 412 | """ | |
| 413 | + if self._database_dialect == DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED: | ||
| 414 | + if not CrossSync.is_async: | ||
| 415 | + self.reload() | ||
| 413 | 416 | return self._database_dialect | |
| 414 | 417 | ||
| 415 | 418 | @property | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -358,6 +358,8 @@ def database_dialect(self): | |||
| 358 | 358 | ||
| 359 | 359 | :rtype: :class:`google.cloud.spanner_admin_database_v1.types.DatabaseDialect` | |
| 360 | 360 | :returns: the dialect of the database""" | |
| 361 | + if self._database_dialect == DatabaseDialect.DATABASE_DIALECT_UNSPECIFIED: | ||
| 362 | + self.reload() | ||
| 361 | 363 | return self._database_dialect | |
| 362 | 364 | ||
| 363 | 365 | @property | |
| Back | FazBrowse Home | New Git URL |
0 commit comments