зеркало из https://github.com/github/vitess-gh.git
add a testcase to binlog_event_json_test
Signed-off-by: Alex Charis <acharis@hubspot.com>
This commit is contained in:
Родитель
8d60fb8087
Коммит
eb9f8a0d88
|
@ -36,6 +36,9 @@ func TestJSON(t *testing.T) {
|
||||||
}, {
|
}, {
|
||||||
data: []byte{0, 1, 0, 12, 0, 11, 0, 1, 0, 5, 2, 0, 97},
|
data: []byte{0, 1, 0, 12, 0, 11, 0, 1, 0, 5, 2, 0, 97},
|
||||||
expected: `JSON_OBJECT('a',2)`,
|
expected: `JSON_OBJECT('a',2)`,
|
||||||
|
}, {
|
||||||
|
data: []byte{0, 1, 0, 29, 0, 11, 0, 4, 0, 0, 15, 0, 97, 115, 100, 102, 1, 0, 14, 0, 11, 0, 3, 0, 5, 123, 0, 102, 111, 111},
|
||||||
|
expected: `JSON_OBJECT('asdf',JSON_OBJECT('foo',123))`,
|
||||||
}, {
|
}, {
|
||||||
data: []byte{2, 2, 0, 10, 0, 5, 1, 0, 5, 2, 0},
|
data: []byte{2, 2, 0, 10, 0, 5, 1, 0, 5, 2, 0},
|
||||||
expected: `JSON_ARRAY(1,2)`,
|
expected: `JSON_ARRAY(1,2)`,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче