Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F88144
D7725.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
806 B
Referenced Files
None
Subscribers
None
D7725.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7725: Make nonscalar field saves raise a more useful exception from LiskDAO
Attached
Detach File
Event Timeline
Log In to Comment