Use integers for geonames and TGN IDs

This commit is contained in:
Joshua Ramon Enslin 2021-12-14 15:38:44 +01:00
parent 93cd09ed23
commit 20f609f6d0
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -1147,7 +1147,7 @@ final class NodaWikidataFetcher {
$updateStmt = $this->_mysqli_noda->do_prepare("UPDATE `orte`
SET `ort_land` = ?
WHERE `ort_id` = ?");
$updateStmt->bind_param("si", $tgn_id, $onum);
$updateStmt->bind_param("ii", $tgn_id, $onum);
$updateStmt->execute();
$updateStmt->close();
unset($updateStmt);
@ -1158,7 +1158,7 @@ final class NodaWikidataFetcher {
$updateStmt = $this->_mysqli_noda->do_prepare("UPDATE `orte`
SET `ort_geonames` = ?
WHERE `ort_id` = ?");
$updateStmt->bind_param("si", $geonames_id, $onum);
$updateStmt->bind_param("ii", $geonames_id, $onum);
$updateStmt->execute();
$updateStmt->close();
unset($updateStmt);