forcedotcom / phoenix

BSD 3-Clause "New" or "Revised" License
558 stars 227 forks source link

Support null value for fixed length ARRAY #646

Open jtaylor-sfdc opened 10 years ago

jtaylor-sfdc commented 10 years ago

A null value for a fixed length array can be handled with a bitset tacked on the end of the array. If an element is set to null, then the bit at that index is set. Trailing nulls are not stored and an attempt to access an array past the current size returns null.

jtaylor-sfdc commented 10 years ago

FWIW, Postgres does not support this yet with its array support, so this one is a little lower priority. For the sake of consistency, it'd be nice if it work eventually, though.