maria-discuss team mailing list archive
-
maria-discuss team
-
Mailing list archive
-
Message #02259
Re: Restated: JSON cannot represent binary data
BSON works for me so long as Maria is happy to pass BSON texts as strings.
When I was reading the BSON spec I just had to laugh. Douglas Crockford
often talk about a bug he made in JSON reference library:
* http://youtu.be/bo36MrBfTk4?t=38m2s
And BSON start's its specification with:
> document ::= int32 e_list "\x00"
>
> Just wonderful!
>
>
> From: Justin Swanhart <greenlion@xxxxxxxxx>
> Date: Tuesday, February 3, 2015 at 7:31 PM
> To: Roberto Spadim <roberto@xxxxxxxxxxxxx>
> Cc: Federico Razzoli <federico_raz@xxxxxxxx>, Tom Worster <fsb@xxxxxxxxxx>,
> maria-discuss email list <maria-discuss@xxxxxxxxxxxxxxxxxxx>
> Subject: Re: [Maria-discuss] Restated: JSON cannot represent binary data
>
> Hi,
>
> I suggest creating an MDEV spec for COLUMN_BSON() to return BSON data which
> can handle binary (MongoDB uses it to store binary data). In the same MDEV,
> COLUMN_JSON should be modified to omit binary columns and return a warning to
> use COLUMN_BSON for a complete representation of the data.
>
> Does that sound reasonable?
>
> --Justin
>
> On Tue, Feb 3, 2015 at 4:43 PM, Roberto Spadim <roberto@xxxxxxxxxxxxx> wrote:
>> the warning is not for null, the warning is for column_json return not strict
>> to json specs
>
>
Follow ups
References