Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7688008
safe_jsonb_set_test.exs
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
397 B
Referenced Files
None
Subscribers
None
safe_jsonb_set_test.exs
View Options
defmodule
Pleroma.SafeJsonbSetTest
do
use
Pleroma.DataCase
test
"it doesn't wipe the object when asked to set the value to NULL"
do
assert
%{
rows
:
[[%{
"key"
=>
"value"
,
"test"
=>
nil
}]]}
=
Ecto.Adapters.SQL
.
query!
(
Pleroma.Repo
,
"select safe_jsonb_set('{\"key\": \"value\"}'::jsonb, '{test}', NULL);"
,
[]
)
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 4, 1:37 AM (59 m, 34 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
305251
Default Alt Text
safe_jsonb_set_test.exs (397 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment