Fix Cloud SQL example (MySQL) (#2309) · code4ward/python-docs-samples@ff9a856 · GitHub
Skip to content

Commit ff9a856

Browse files
joangrogguuss
authored andcommitted
Fix Cloud SQL example (MySQL) (GoogleCloudPlatform#2309)
The sample has the wrong format for `unix_socket` inside the query parameter in sqlalchemy.create_engine. Doing: '/cloudsql/{}/'.format(cloud_sql_connection_name) takes the path as a directory so the ending slash needs to be removed: '/cloudsql/{}'.format(cloud_sql_connection_name)
1 parent 0ce1495 commit ff9a856

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloud-sql/mysql/sqlalchemy/main.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)