mirror of
https://github.com/luapower/mysql.git
synced 2025-02-08 08:10:32 +01:00
unimportant
This commit is contained in:
parent
53c844a94d
commit
fb5336213d
@ -879,8 +879,8 @@ function mysql.dec_range(digits, decimals, unsigned) --min, max, digits
|
|||||||
return min, max, digits
|
return min, max, digits
|
||||||
end
|
end
|
||||||
|
|
||||||
--This is dumb: there's no such thing as "char length" with a MBCS but
|
--This is dumb: there's no such thing as "char length" on a variable-width
|
||||||
--that's how you have to declare a varchar these days.
|
--MBCS but that's how you have to declare a varchar these days.
|
||||||
function mysql.char_size(byte_size, collation)
|
function mysql.char_size(byte_size, collation)
|
||||||
charset = collation:match'^[^_]+'
|
charset = collation:match'^[^_]+'
|
||||||
local mcw = max_char_widths[charset]
|
local mcw = max_char_widths[charset]
|
||||||
|
Loading…
Reference in New Issue
Block a user