Skip to content

Commit a6a1afc

Browse files
committed
For updates where newvalue = oldvalue, PDOStatement::rowCount() returns zero #21
1 parent bad17b1 commit a6a1afc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PDO.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ private function Connect()
8282
//PDO::ATTR_PERSISTENT => true,
8383

8484
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
85-
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true
85+
PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
86+
PDO::MYSQL_ATTR_FOUND_ROWS => true
8687
)
8788
);
8889
/*

0 commit comments

Comments
 (0)