On Wednesday, January 8, 2014 8:42:26 AM UTC-8, Marcel van Pinxteren wrote:
>
> I'm not sure if it has to do specifically with http round trips, but this 
> is what's happening:
> The timestamp column in the database contains 0x00000000291A63BF
> In the json response on the browser, it looks 
> like \u0000\u0000\u0000\u0000)\u001Ac�
> After receiving it back on the server, when parsing it in Ruby code with 
> Sequel.blob(ts[:TimeStamp]), I get a blob with 10 bytes, instead of the 
> expected 8 bytes.
>
> It looks like the last character turns into 3 bytes.
> When I replace the last, funny character in the string with a simple "a", 
> I get a blob of 8 bytes.
>
> To me, it looks like a bug in Sequel.blob.
>

You are probably running into an encoding issue before the data gets to 
Sequel.  I would check your input to Sequel.blob and see if it is 10 bytes 
or 8.

If you really think this is a bug in Sequel, please include a 
self-contained example showing the problem.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" 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/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to