[MDEV-11680] PARTITION BY ... COLUMNS allows unsupported data types Created: 2016-12-28  Updated: 2016-12-28

Status: Open
Project: MariaDB Server
Component/s: Partitioning
Affects Version/s: 5.5, 10.0, 10.1, 10.2
Fix Version/s: 10.2

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: upstream


 Description   

According to the manual, float and some other data types are not supported:
http://dev.mysql.com/doc/refman/5.6/en/partitioning-columns.html

CREATE TABLE t1 (f float) PARTITION BY LIST COLUMNS (f) (PARTITION pnull VALUES IN (NULL));

MariaDB [test]> CREATE TABLE t1 (f float) PARTITION BY LIST COLUMNS (f) (PARTITION pnull VALUES IN (NULL));
Query OK, 0 rows affected (0.40 sec)
 
MariaDB [test]> show create table t1 \G
*************************** 1. row ***************************
       Table: t1
Create Table: CREATE TABLE `t1` (
  `f` float DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
 PARTITION BY LIST  COLUMNS(f)
(PARTITION pnull VALUES IN (NULL) ENGINE = InnoDB)
1 row in set (0.00 sec)
 
MariaDB [test]> insert into t1 values (null);
Query OK, 1 row affected (0.10 sec)

Same for some other data types.


Generated at Thu Feb 08 07:51:51 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.