Page MenuHomePhabricator

D7725.diff

diff --git a/src/infrastructure/storage/lisk/LiskDAO.php b/src/infrastructure/storage/lisk/LiskDAO.php
--- a/src/infrastructure/storage/lisk/LiskDAO.php
+++ b/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/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/mn/4d/cgpxr2ci3h2topvx
Default Alt Text
D7725.diff (806 B)

Event Timeline