Skip to content

Commit faa2798

Browse files
authored
chore: fix region tag in Cloud SQL sample (GoogleCloudPlatform#4335)
1 parent 8cec0d3 commit faa2798

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloud-sql/sqlserver/servlet/src/main/java/com/example/cloudsql/IndexServlet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public void doPost(HttpServletRequest req, HttpServletResponse resp)
111111

112112
// Reuse the pool that was created in the ContextListener when the Servlet started.
113113
DataSource pool = (DataSource) req.getServletContext().getAttribute("my-pool");
114-
// [START cloud_sql_postgres_servlet_connection]
114+
// [START cloud_sql_sqlserver_servlet_connection]
115115
// Using a try-with-resources statement ensures that the connection is always released back
116116
// into the pool at the end of the statement (even if an error occurs)
117117
try (Connection conn = pool.getConnection()) {
@@ -135,7 +135,7 @@ public void doPost(HttpServletRequest req, HttpServletResponse resp)
135135
+ "logs for more details.");
136136
// [END_EXCLUDE]
137137
}
138-
// [END cloud_sql_postgres_servlet_connection]
138+
// [END cloud_sql_sqlserver_servlet_connection]
139139

140140
resp.setStatus(200);
141141
resp.getWriter().printf("Vote successfully cast for '%s' at time %s!\n", team, now);

0 commit comments

Comments
 (0)