mirror of https://github.com/MariaDB/server
Browse Source
Emits an error when creating a table with either a UUID or ipv4 column having a nonzero length. Specifying lengths has no effect for these types: CREATE TABLE t1 (id UUID(24), ..., ip ipv4(4), ... ); ipv6 columns having nonzero lengths are permitted, for example in the case of CREATE TABLE t1 (a INET6(6) DEFAULT '::10'); Specifying length zero for uuid, ipv4 has the same behavior as specifying no explicit length. Since these types are plugins, the lengths cannot be rejected by the grammar at lexing; rather they are rejected at a later parsing step if they are nonzero.10.11-mdev-31053-uuid-inet-size-not-allowed
committed by
Dave Gosselin
8 changed files with 85 additions and 0 deletions
Loading…
Reference in new issue