Skip to content

Commit e3777d1

Browse files
committed
fix format in pdo8 Plugins
1 parent aabcdcd commit e3777d1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Changes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
## Changes
22

3+
### v0.3.3
4+
5+
* fix dsn on pdo8
6+
7+
### v0.3.0
8+
9+
* add autoloader plugins
10+
311
### v2.1.0
412

513
* remove setting.ini

lib/Pinpoint/Plugins/SysV2/_pdo/pdo8.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
function ($dsn, $username = null, $password = null, $options = null) use ($weakMap) {
2929
$pdo = pinpoint_get_this();
3030
if ($pdo instanceof PDO) {
31-
$weakMap[$pdo] = $dsn;
31+
$weakMap[$pdo] = parse_connect_string($dsn)["host"];
3232
}
3333
},
3434
function ($ret) {

0 commit comments

Comments
 (0)