1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-05-25 13:42:31 +03:00
Andrew Hutchings e9db44424c MCOL-642 Separate TEXT from BLOB
* TEXT and BLOB now have separate identifiers internally
* TEXT columns are identified as such in system catalog
* cpimport only requires hex input for BLOB, not TEXT
2017-03-27 21:36:27 +01:00

28 lines
876 B
SQL

-- $Id: dumpcat_mysql.sql 7049 2010-09-14 16:43:13Z rdempsey $
--
select
`schema`, TABLENAME, COLUMNNAME COLNAME, OBJECTID, DICTOBJECTID DICT,
case datatype when 0 then 'BIT'
when 1 then 'TINYINT'
when 2 then 'CHAR'
when 3 then 'SMALLINT'
when 4 then 'DECIMAL'
when 5 then 'MEDINT'
when 6 then 'INT'
when 7 then 'FLOAT'
when 8 then 'DATE'
when 9 then 'BIGINT'
when 10 then 'DOUBLE'
when 11 then 'DATETIME'
when 12 then 'VARCHAR'
when 13 then 'CLOB'
when 14 then 'BLOB'
when 15 then 'TEXT'
end DATATYPE,
SCALE, PREC, COLUMNLENGTH COLLEN, COLUMNPOSITION POS, COMPRESSIONTYPE CT
from
SYSCOLUMN
order by
`schema`, TABLENAME, POS;