Skip to content

Commit de69d57

Browse files
authored
chore: update SQL Server sample region tags. (GoogleCloudPlatform#1208)
1 parent 02da6ba commit de69d57

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cloud_sql/sqlserver/pdo/src/Votes.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public function insertVote(string $value): bool
110110
$res = false;
111111

112112
# [START cloud_sql_server_pdo_connection]
113+
# [START cloud_sql_sqlserver_pdo_connection]
113114
// Use prepared statements to guard against SQL injection.
114115
$sql = "INSERT INTO votes (time_cast, vote_value) VALUES (GETDATE(), :voteValue)";
115116

@@ -126,6 +127,7 @@ public function insertVote(string $value): bool
126127
$e
127128
);
128129
}
130+
# [END cloud_sql_sqlserver_pdo_connection]
129131
# [END cloud_sql_server_pdo_connection]
130132

131133
return $res;

cloud_sql/sqlserver/pdo/src/app.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,16 @@
5151

5252
// Connect to the database.
5353
# [START cloud_sql_server_pdo_timeout]
54+
# [START cloud_sql_sqlserver_pdo_timeout]
5455
// Here we set the connection timeout to five seconds and ask PDO to
5556
// throw an exception if any errors occur.
5657
$conn = new PDO($dsn, $username, $password, [
5758
PDO::ATTR_TIMEOUT => 5,
5859
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
5960
]);
61+
# [END cloud_sql_sqlserver_pdo_timeout]
6062
# [END cloud_sql_server_pdo_timeout]
61-
# [END cloud_sql_server_pdo_create_tcp]
63+
# [END cloud_sql_sqlserver_pdo_create_tcp]
6264
} catch (TypeError $e) {
6365
throw new RuntimeException(
6466
sprintf(

0 commit comments

Comments
 (0)