[tarantool-patches] Re: [PATCH 2/3] Add surrogate ID for BINARY collation

Konstantin Osipov kostja at tarantool.org
Thu Nov 1 23:06:10 MSK 2018


My point is - in future you may want an object with some kind of
context to represent binary and absent collation. Right now an id
is sufficient in all contexts, but in future it may be easier to
treat all collations the same way.

For example, collation "weight" in comparisons could be
represent as an integer number. As long as you don't have an
object for binary and "none" collations, you will have to treat
them in a special way, while you could simply compare their
strength with each other. The same is about collation name - you
may need to print collation name in an error message. If "none"
and "binary" are only ids, you will, once again, have to treat
them separately.

* Konstantin Osipov <kostja at tarantool.org> [18/11/01 23:00]:

-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov




More information about the Tarantool-patches mailing list