Page MenuHomePhabricator

D7725.id17466.diff
No OneTemporary

D7725.id17466.diff

Index: src/infrastructure/storage/lisk/LiskDAO.php
===================================================================
--- src/infrastructure/storage/lisk/LiskDAO.php
+++ src/infrastructure/storage/lisk/LiskDAO.php
@@ -1244,7 +1244,17 @@
$columns = array_keys($data);
foreach ($data as $key => $value) {
- $data[$key] = qsprintf($conn, '%ns', $value);
+ try {
+ $data[$key] = qsprintf($conn, '%ns', $value);
+ } catch (AphrontQueryParameterException $parameter_exception) {
+ throw new PhutilProxyException(
+ pht(
+ "Unable to insert or update object of class %s, field '%s' ".
+ "has a nonscalar value.",
+ get_class($this),
+ $key),
+ $parameter_exception);
+ }
}
$data = implode(', ', $data);

File Metadata

Mime Type
text/plain
Expires
Thu, Sep 19, 11:06 PM (7 h, 31 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6621892
Default Alt Text
D7725.id17466.diff (817 B)

Event Timeline