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@gmail.com> Date: Tuesday, February 3, 2015 at 7:31 PM To: Roberto Spadim <roberto@spadim.com.br> Cc: Federico Razzoli <federico_raz@yahoo.it>, Tom Worster <fsb@thefsb.org>, maria-discuss email list <maria-discuss@lists.launchpad.net> 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@spadim.com.br> wrote:
the warning is not for null, the warning is for column_json return not strict to json specs