Skip to content

Commit 826cfbe

Browse files
authored
Fix typo in Cloud SQL sample (GoogleCloudPlatform#7241)
1 parent 5d14925 commit 826cfbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloud-sql/postgres/servlet/src/main/java/com/example/cloudsql/ConnectorConnectionPoolFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static DataSource createConnectionPool() {
5050
config.setUsername(DB_USER); // e.g. "root", _postgres"
5151
config.setPassword(DB_PASS); // e.g. "my-password"
5252

53-
config.addDataSourceProperty("socketFactory", "com.google.cloud.sql_postgres.SocketFactory");
53+
config.addDataSourceProperty("socketFactory", "com.google.cloud.sql.postgres.SocketFactory");
5454
config.addDataSourceProperty("cloudSqlInstance", INSTANCE_CONNECTION_NAME);
5555

5656
// [END cloud_sql_postgres_servlet_connect_connector]

0 commit comments

Comments
 (0)