Commit c2aecb05 authored by Olivier Bertrand's avatar Olivier Bertrand

Fix failed test bson and xml

parent 7ab30f5d
...@@ -886,7 +886,6 @@ PBPR BJSON::NewPair(OFFSET key, int type) ...@@ -886,7 +886,6 @@ PBPR BJSON::NewPair(OFFSET key, int type)
PBPR bpp = (PBPR)BsonSubAlloc(sizeof(BPAIR)); PBPR bpp = (PBPR)BsonSubAlloc(sizeof(BPAIR));
bpp->Key = key; bpp->Key = key;
bpp->Vlp.Ktp = TYPE_STRG;
bpp->Vlp.Type = type; bpp->Vlp.Type = type;
bpp->Vlp.To_Val = 0; bpp->Vlp.To_Val = 0;
bpp->Vlp.Nd = 0; bpp->Vlp.Nd = 0;
......
...@@ -37,8 +37,7 @@ typedef struct _jvalue { ...@@ -37,8 +37,7 @@ typedef struct _jvalue {
bool B; // A boolean value True or false (0) bool B; // A boolean value True or false (0)
}; };
short Nd; // Number of decimals short Nd; // Number of decimals
char Type; // The value type short Type; // The value type
char Ktp; // The key type
OFFSET Next; // Offset to the next value in array OFFSET Next; // Offset to the next value in array
} BVAL, *PBVAL; // end of struct BVALUE } BVAL, *PBVAL; // end of struct BVALUE
......
...@@ -374,7 +374,7 @@ INSERT INTO t1 VALUES (_cp1251 0xC0C1C2C3); ...@@ -374,7 +374,7 @@ INSERT INTO t1 VALUES (_cp1251 0xC0C1C2C3);
Warnings: Warnings:
Level Warning Level Warning
Code 1105 Code 1105
Message Com error: Impossible d'enregistrer le caractre dans le codage iso-8859-1. Message Com error: Unable to save character to 'iso-8859-1' encoding.
INSERT INTO t1 VALUES ('&<>"\''); INSERT INTO t1 VALUES ('&<>"\'');
SELECT node, hex(node) FROM t1; SELECT node, hex(node) FROM t1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment