mirror of
https://github.com/luapower/mysql.git
synced 2024-12-29 12:20:32 +01:00
unimportant
This commit is contained in:
parent
f6a430275c
commit
5dcd2cadf2
@ -935,7 +935,6 @@ function mysql.connect(opt)
|
||||
local user = opt.user or ''
|
||||
|
||||
local collation = 0 --default
|
||||
print(opt.collation)
|
||||
if opt.collation ~= 'server' then
|
||||
if opt.collation then
|
||||
collation = assert(collation_codes[opt.collation], 'invalid collation')
|
||||
@ -1343,8 +1342,9 @@ if not ... then --demo
|
||||
user = 'root',
|
||||
password = 'abcd12',
|
||||
database = 'sp',
|
||||
collation = 'server'
|
||||
collation = 'server',
|
||||
}
|
||||
print(conn.charset, conn.collation)
|
||||
pp(conn:query'select * from val where val = 1')
|
||||
local stmt = conn:prepare('select * from val where val = ?')
|
||||
assert(stmt:exec(1))
|
||||
|
Loading…
Reference in New Issue
Block a user