Skip to content

Commit 6cdc7d4

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents a4f2849 + 5c065ee commit 6cdc7d4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Client/Delay/MySQL/Base.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function reset($newDelay = self::RESET_NEW_DELAY)
5555
WHERE base = :base AND userAgent = :userAgent;
5656
SQL
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;
6868
SQL
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

Comments
 (0)