lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Feb 28, 2013 at 10:55 PM, Marc Balmer <marc@msys.ch> wrote:
> Since I do a lot of database programming in Lua, I would very much welcome an integer data type.

Hmmm.....
Would it be really helpful?
Not all database engines are integer-friendly.
In Oracle DB all operations with INTEGER data type are slower than the
same operations with NUMBER data type.
This is because INTEGER is a subtype of NUMBER.
A subtype is actually the same as base type but with additional
constraints, which should be checked on every step.