| Server IP : 88.99.149.37 / Your IP : 216.73.216.141 Web Server : nginx/1.31.2 System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64 User : muralimurth ( 1015) PHP Version : 8.4.23 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/mysql/mysql-test/main/ |
Upload File : |
# # MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRY # SET NAMES utf8; CREATE TABLE t1 ( js0 JSON, js1 TEXT CHECK (JSON_VALID(js1)), js2 TEXT CHECK (LENGTH(js2) > 0 AND JSON_VALID(js2)), js3 TEXT CHECK (LENGTH(js2) > 0 OR JSON_VALID(js2)) ) CHARACTER SET utf8; -------------- SELECT * FROM t1 -------------- Field 1: `js0` Org_field: `js0` Catalog: `def` Database: `test` Table: `t1` Org_table: `t1` Type: BLOB (format=json) Collation: latin1_swedish_ci (8) Length: 4294967295 Max_length: 0 Decimals: 0 Flags: BLOB BINARY Field 2: `js1` Org_field: `js1` Catalog: `def` Database: `test` Table: `t1` Org_table: `t1` Type: BLOB (format=json) Collation: latin1_swedish_ci (8) Length: 65535 Max_length: 0 Decimals: 0 Flags: BLOB Field 3: `js2` Org_field: `js2` Catalog: `def` Database: `test` Table: `t1` Org_table: `t1` Type: BLOB (format=json) Collation: latin1_swedish_ci (8) Length: 65535 Max_length: 0 Decimals: 0 Flags: BLOB Field 4: `js3` Org_field: `js3` Catalog: `def` Database: `test` Table: `t1` Org_table: `t1` Type: BLOB Collation: latin1_swedish_ci (8) Length: 65535 Max_length: 0 Decimals: 0 Flags: BLOB 0 rows in set (TIME) Bye -------------- SELECT JSON_COMPACT(js0) FROM t1 -------------- Field 1: `JSON_COMPACT(js0)` Org_field: `` Catalog: `def` Database: `` Table: `` Org_table: `` Type: LONG_BLOB (format=json) Collation: latin1_swedish_ci (8) Length: 4294967295 Max_length: 0 Decimals: 0 Flags: BINARY 0 rows in set (TIME) Bye DROP TABLE t1;