Further PostgreSQL compatibility

This commit is contained in:
Pinga 2023-11-12 14:54:07 +02:00
parent bc8f904c3a
commit e4fd52dabc
3 changed files with 26 additions and 26 deletions

View file

@ -96,7 +96,7 @@ $server->on('receive', function ($server, $fd, $reactorId, $data) use ($c, $pdo)
// Perform the DAS lookup
try {
$query = "SELECT name FROM `registry`.`domain` WHERE `name` = :domain";
$query = "SELECT name FROM registry.domain WHERE name = :domain";
$stmt = $pdo->prepare($query);
$stmt->bindParam(':domain', $domain, PDO::PARAM_STR);
$stmt->execute();