Skip to content

Commit 44f66f7

Browse files
authored
fix: corrected region tag typo (GoogleCloudPlatform#1268)
1 parent 13fc9e0 commit 44f66f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cloud_sql/sqlserver/pdo/src/DBInitializer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static function initTcpDatabaseConnection(
4141
array $connConfig
4242
): PDO {
4343
try {
44-
# [START cloud_sql_mysql_pdo_create_tcp]
44+
# [START cloud_sql_sqlserver_pdo_create_tcp]
4545
// $username = 'your_db_user';
4646
// $password = 'yoursupersecretpassword';
4747
// $dbName = 'your_db_name';
@@ -52,7 +52,7 @@ public static function initTcpDatabaseConnection(
5252

5353
// Connect to the database
5454
$conn = new PDO($dsn, $username, $password, $connConfig);
55-
# [END cloud_sql_mysql_pdo_create_tcp]
55+
# [END cloud_sql_sqlserver_pdo_create_tcp]
5656
} catch (TypeError $e) {
5757
throw new RuntimeException(
5858
sprintf(
@@ -72,7 +72,7 @@ public static function initTcpDatabaseConnection(
7272
'your username and password are correct, that the Cloud SQL ' .
7373
'proxy is running, and that the database exists and is ready ' .
7474
'for use. For more assistance, refer to %s. The PDO error was %s',
75-
'https://cloud.google.com/sql/docs/mysql/connect-external-app',
75+
'https://cloud.google.com/sql/docs/sqlserver/connect-external-app',
7676
$e->getMessage()
7777
),
7878
$e->getCode(),

0 commit comments

Comments
 (0)