Skip to content

Commit 6d37667

Browse files
committed
Fix connect to connection.
1 parent bab865e commit 6d37667

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cloud-sql/mysql/sqlalchemy/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def save_vote():
139139
status=400
140140
)
141141

142-
# [START cloud_sql_mysql_sqlalchemy_connect]
142+
# [START cloud_sql_mysql_sqlalchemy_connection]
143143
# Preparing a statement before hand can help protect against injections.
144144
stmt = sqlalchemy.text(
145145
"INSERT INTO votes (time_cast, candidate)"
@@ -161,7 +161,7 @@ def save_vote():
161161
"application logs for more details."
162162
)
163163
# [END_EXCLUDE]
164-
# [END cloud_sql_mysql_sqlalchemy_connect]
164+
# [END cloud_sql_mysql_sqlalchemy_connection]
165165

166166
return Response(
167167
status=200,

cloud-sql/postgres/sqlalchemy/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def save_vote():
139139
status=400
140140
)
141141

142-
# [START cloud_sql_postgres_sqlalchemy_connect]
142+
# [START cloud_sql_postgres_sqlalchemy_connection]
143143
# Preparing a statement before hand can help protect against injections.
144144
stmt = sqlalchemy.text(
145145
"INSERT INTO votes (time_cast, candidate)"
@@ -161,7 +161,7 @@ def save_vote():
161161
"application logs for more details."
162162
)
163163
# [END_EXCLUDE]
164-
# [END cloud_sql_postgres_sqlalchemy_connect]
164+
# [END cloud_sql_postgres_sqlalchemy_connection]
165165

166166
return Response(
167167
status=200,

0 commit comments

Comments
 (0)