fix json/gis/text/blob meta response inconsistent with mysql5.7 (master)

This commit is contained in:
obdev
2023-11-03 03:39:29 +00:00
committed by ob-robot
parent 6267ac92d9
commit 4f162cdcc5
4 changed files with 14 additions and 7 deletions

View File

@ -265,7 +265,7 @@ def substr(v,1) 253 512 0 Y 0 0 45
##cast test
select substr(cast(date_c as char(1024)), 0) from build_in_func_test_table;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def substr(cast(date_c as char(1024)), 0) 252 536870910 0 Y 16 0 45
def substr(cast(date_c as char(1024)), 0) 252 4294967295 0 Y 16 0 45
+---------------------------------------+
| substr(cast(date_c as char(1024)), 0) |
+---------------------------------------+
@ -273,7 +273,7 @@ def substr(cast(date_c as char(1024)), 0) 252 536870910 0 Y 16 0 45
+---------------------------------------+
select substr(cast(date_c as char(1024)), 10) from build_in_func_test_table;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def substr(cast(date_c as char(1024)), 10) 252 536870910 17 Y 16 0 45
def substr(cast(date_c as char(1024)), 10) 252 4294967295 17 Y 16 0 45
+----------------------------------------+
| substr(cast(date_c as char(1024)), 10) |
+----------------------------------------+
@ -289,7 +289,7 @@ def substr(cast(1024 as char(1024)), 1, 2) 253 8 2 Y 0 0 45
+----------------------------------------+
select substr(cast(date_c as char(1024)) from 10) from build_in_func_test_table;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def substr(cast(date_c as char(1024)) from 10) 252 536870910 17 Y 16 0 45
def substr(cast(date_c as char(1024)) from 10) 252 4294967295 17 Y 16 0 45
+--------------------------------------------+
| substr(cast(date_c as char(1024)) from 10) |
+--------------------------------------------+
@ -2771,7 +2771,7 @@ def unhex('123') 253 2 2 Y 128 0 63
+--------------+
select unhex(cast(repeat('123',5) as char(1024)));
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def unhex(cast(repeat('123',5) as char(1024))) 252 536870910 8 Y 144 0 63
def unhex(cast(repeat('123',5) as char(1024))) 252 4294967295 8 Y 144 0 63
+--------------------------------------------+
| unhex(cast(repeat('123',5) as char(1024))) |
+--------------------------------------------+