Hmm, ok, this example works fine, but how about this:

diff --git a/t/database.t b/t/database.t
index b4c4d7b..908b781 100644
--- a/t/database.t
+++ b/t/database.t
@@ -148,6 +148,8 @@ is_deeply $results->expand->array, [undef], 'right
structure';
 is_deeply $results->expand->array, undef, 'no more results';
 is_deeply $db->query('select ?::json as unicode', {json => {'☃' => '♥'}})
   ->expand->hash, {unicode => {'☃' => '♥'}}, 'right structure';
+is_deeply $db->query("select json_build_object('test', ?::text) as j", '♥')
+  ->expand->hash, {j => {test => '♥'}}, 'right structure';

 # Fork-safety
 $dbh = $pg->db->dbh;


On Tue, Jun 16, 2015 at 4:40 PM, sri <[email protected]> wrote:

> When JSON column contains utf8 string Mojo::Pg unable expand this data to
>> hash.
>>
>
> This is false.
>
>
> https://github.com/kraih/mojo-pg/commit/6d6d6c3f4525b0ed044369a4facdefc422ddd1c8
>
> --
> sebastian
>
>>   --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Andrey Khozov

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to