Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
JanPetterMG committed Feb 15, 2018
2 parents a4f2849 + 5c065ee commit 6cdc7d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Client/Delay/MySQL/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function reset($newDelay = self::RESET_NEW_DELAY)
WHERE base = :base AND userAgent = :userAgent;
SQL
);
$query->bindValue('base', $this->base, \PDO::PARAM_INT);
$query->bindValue('base', $this->base, \PDO::PARAM_STR);
$query->bindValue('userAgent', $this->userAgent, \PDO::PARAM_STR);
return $query->execute();
}
Expand All @@ -67,9 +67,9 @@ public function reset($newDelay = self::RESET_NEW_DELAY)
lastDelay = :delay * 1000000;
SQL
);
$query->bindValue('base', $this->base, \PDO::PARAM_INT);
$query->bindValue('base', $this->base, \PDO::PARAM_STR);
$query->bindValue('userAgent', $this->userAgent, \PDO::PARAM_STR);
$query->bindValue('delay', $newDelay, \PDO::PARAM_INT | \PDO::PARAM_STR);
$query->bindValue('delay', $newDelay, \PDO::PARAM_INT);
return $query->execute();
}

Expand Down Expand Up @@ -121,7 +121,7 @@ private function increment()
);
$query->bindValue('base', $this->base, \PDO::PARAM_STR);
$query->bindValue('userAgent', $this->userAgent, \PDO::PARAM_STR);
$query->bindValue('delay', $this->delay, \PDO::PARAM_INT | \PDO::PARAM_STR);
$query->bindValue('delay', $this->delay, \PDO::PARAM_INT);
return $query->execute();
}

Expand Down

0 comments on commit 6cdc7d4

Please sign in to comment.