Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
sql: Support MySQL SET types to improve usage of 64 bit ints as bitmasks #27415
A "SET type" (from MySQL) is a datatype where values can contain zero, one or more values from a fixed list of up to 64 different possile values. They behave like a set because duplicates are not allowed and the order is not preserved.
MySQL implements this using a bitmap, with one bit per possible value in the fixed list of allowable values..
So implementation-wise this is really a feature on top of 64-bit integers.