Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13989681
D7725.id17443.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
817 B
Referenced Files
None
Subscribers
None
D7725.id17443.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 22, 10:19 PM (3 w, 16 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6716887
Default Alt Text
D7725.id17443.diff (817 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