Fixes in db class tests files

This commit is contained in:
Clemens Schwaighofer
2023-03-29 09:58:49 +09:00
parent 7eace1013e
commit 3041d81e81

View File

@@ -317,7 +317,7 @@ echo "<hr>";
// binary insert tests
$filename = $db->dbEscapeLiteral('class_test.db.php');
$rand_bin_uid = $db->dbEscapeLiteral(\CoreLibs\Create\Uids::uniqIdShort());
$binary_data = $db->dbEscapeBytea(file_get_contents('class_test.db.php'));
$binary_data = $db->dbEscapeBytea(file_get_contents('class_test.db.php') ?: '');
$query = <<<EOM
INSERT INTO binary_test (
filename, uid, binary_data