| 1 |
SET @orig_log_error_verbosity= @@GLOBAL.log_error_verbosity; |
| 2 |
SET GLOBAL log_error_verbosity=3; |
| 3 |
CREATE TABLE t(f1 int, j1 JSON); |
| 4 |
# Sven |
| 5 |
select f1, json_extract(j1, '$[0]') from t; |
| 6 |
f1 json_extract(j1, '$[0]') |
| 7 |
1 "Sven" |
| 8 |
start transaction; |
| 9 |
UPDATE t SET f1 = 2, j1 = JSON_SET(j1, '$[0]', 'Knut'); |
| 10 |
# Knut |
| 11 |
select f1, json_extract(j1, '$[0]') from t; |
| 12 |
f1 json_extract(j1, '$[0]') |
| 13 |
2 "Knut" |
| 14 |
rollback; |
| 15 |
# Sven |
| 16 |
select f1, json_extract(j1, '$[0]') from t; |
| 17 |
f1 json_extract(j1, '$[0]') |
| 18 |
1 "Sven" |
| 19 |
drop table t; |
| 20 |
CREATE TABLE t(f1 int, j1 JSON) row_format=compact; |
| 21 |
# Sven |
| 22 |
select f1, json_extract(j1, '$[0]') from t; |
| 23 |
f1 json_extract(j1, '$[0]') |
| 24 |
1 "Sven" |
| 25 |
start transaction; |
| 26 |
UPDATE t SET f1 = 2, j1 = JSON_SET(j1, '$[0]', 'Knut'); |
| 27 |
# Knut |
| 28 |
select f1, json_extract(j1, '$[0]') from t; |
| 29 |
f1 json_extract(j1, '$[0]') |
| 30 |
2 "Knut" |
| 31 |
rollback; |
| 32 |
# Sven |
| 33 |
select f1, json_extract(j1, '$[0]') from t; |
| 34 |
f1 json_extract(j1, '$[0]') |
| 35 |
1 "Sven" |
| 36 |
drop table t; |
| 37 |
CREATE TABLE t(f1 int, j1 JSON) row_format=redundant; |
| 38 |
# Sven |
| 39 |
select f1, json_extract(j1, '$[0]') from t; |
| 40 |
f1 json_extract(j1, '$[0]') |
| 41 |
1 "Sven" |
| 42 |
start transaction; |
| 43 |
UPDATE t SET f1 = 2, j1 = JSON_SET(j1, '$[0]', 'Knut'); |
| 44 |
# Knut |
| 45 |
select f1, json_extract(j1, '$[0]') from t; |
| 46 |
f1 json_extract(j1, '$[0]') |
| 47 |
2 "Knut" |
| 48 |
rollback; |
| 49 |
# Sven |
| 50 |
select f1, json_extract(j1, '$[0]') from t; |
| 51 |
f1 json_extract(j1, '$[0]') |
| 52 |
1 "Sven" |
| 53 |
drop table t; |
| 54 |
SET GLOBAL log_error_verbosity= @orig_log_error_verbosity; |