@@ -55,7 +55,7 @@ public function reset($newDelay = self::RESET_NEW_DELAY)
5555WHERE base = :base AND userAgent = :userAgent;
5656SQL
5757 );
58- $ query ->bindValue ('base ' , $ this ->base , \PDO ::PARAM_INT );
58+ $ query ->bindValue ('base ' , $ this ->base , \PDO ::PARAM_STR );
5959 $ query ->bindValue ('userAgent ' , $ this ->userAgent , \PDO ::PARAM_STR );
6060 return $ query ->execute ();
6161 }
@@ -67,9 +67,9 @@ public function reset($newDelay = self::RESET_NEW_DELAY)
6767 lastDelay = :delay * 1000000;
6868SQL
6969 );
70- $ query ->bindValue ('base ' , $ this ->base , \PDO ::PARAM_INT );
70+ $ query ->bindValue ('base ' , $ this ->base , \PDO ::PARAM_STR );
7171 $ query ->bindValue ('userAgent ' , $ this ->userAgent , \PDO ::PARAM_STR );
72- $ query ->bindValue ('delay ' , $ newDelay , \PDO ::PARAM_INT | \ PDO :: PARAM_STR );
72+ $ query ->bindValue ('delay ' , $ newDelay , \PDO ::PARAM_INT );
7373 return $ query ->execute ();
7474 }
7575
@@ -121,7 +121,7 @@ private function increment()
121121 );
122122 $ query ->bindValue ('base ' , $ this ->base , \PDO ::PARAM_STR );
123123 $ query ->bindValue ('userAgent ' , $ this ->userAgent , \PDO ::PARAM_STR );
124- $ query ->bindValue ('delay ' , $ this ->delay , \PDO ::PARAM_INT | \ PDO :: PARAM_STR );
124+ $ query ->bindValue ('delay ' , $ this ->delay , \PDO ::PARAM_INT );
125125 return $ query ->execute ();
126126 }
127127
0 commit comments