mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-14 06:16:46 +01:00
Merge pull request #3811 from JustZhenya/patch-1
Fix writing non-ascii files to postgresql database
This commit is contained in:
commit
fe97e28401
@ -75,7 +75,7 @@ function updateStandaloneFileByServerId($fname, $sid, $content)
|
||||
|
||||
initDbIfNeeded();
|
||||
$stmt = $db->prepare('UPDATE ' . $dbprefix . 'StandaloneFiles SET Content=:content WHERE FileName=:fname AND ServerID=:sid');
|
||||
$stmt->bindParam(':content', $content, PDO::PARAM_STR);
|
||||
$stmt->bindParam(':content', $content, PDO::PARAM_LOB);
|
||||
$stmt->bindParam(':fname', $fname, PDO::PARAM_STR);
|
||||
$stmt->bindParam(':sid', $sid, PDO::PARAM_INT);
|
||||
$res = $stmt->execute();
|
||||
|
Loading…
Reference in New Issue
Block a user