File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ def save_vote():
139
139
status = 400
140
140
)
141
141
142
- # [START cloud_sql_mysql_sqlalchemy_connect ]
142
+ # [START cloud_sql_mysql_sqlalchemy_connection ]
143
143
# Preparing a statement before hand can help protect against injections.
144
144
stmt = sqlalchemy .text (
145
145
"INSERT INTO votes (time_cast, candidate)"
@@ -161,7 +161,7 @@ def save_vote():
161
161
"application logs for more details."
162
162
)
163
163
# [END_EXCLUDE]
164
- # [END cloud_sql_mysql_sqlalchemy_connect ]
164
+ # [END cloud_sql_mysql_sqlalchemy_connection ]
165
165
166
166
return Response (
167
167
status = 200 ,
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ def save_vote():
139
139
status = 400
140
140
)
141
141
142
- # [START cloud_sql_postgres_sqlalchemy_connect ]
142
+ # [START cloud_sql_postgres_sqlalchemy_connection ]
143
143
# Preparing a statement before hand can help protect against injections.
144
144
stmt = sqlalchemy .text (
145
145
"INSERT INTO votes (time_cast, candidate)"
@@ -161,7 +161,7 @@ def save_vote():
161
161
"application logs for more details."
162
162
)
163
163
# [END_EXCLUDE]
164
- # [END cloud_sql_postgres_sqlalchemy_connect ]
164
+ # [END cloud_sql_postgres_sqlalchemy_connection ]
165
165
166
166
return Response (
167
167
status = 200 ,
You can’t perform that action at this time.
0 commit comments