You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds description of the # lua operator usage to key_def (#5129)
* Adds description of the ```#``` lua operator usage to key_def
* Standard lua operator ``#`` (__len metamethod) can be used to check the ``key_def`` length (parts count)
Fixes#4275
Copy file name to clipboardExpand all lines: doc/reference/reference_lua/key_def.rst
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,15 @@ to extract or compare the index key values.
38
38
39
39
Example: ``key_def.new({{type = 'string', collation = 'unicode', field = 2}})``
40
40
41
+
Since version :doc:`3.2.0 </release/3.2.0>`, you can use the standard lua operator ``#`` (__len metamethod) to check the ``key_def`` length (parts count).
0 commit comments