From 5dcd2cadf26de3ed7494ba8b52a0ef0e7d3443dd Mon Sep 17 00:00:00 2001 From: Cosmin Apreutesei Date: Wed, 1 Sep 2021 23:39:36 +0300 Subject: [PATCH] unimportant --- mysql_client.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysql_client.lua b/mysql_client.lua index 1b98e1e..ccdfd9d 100644 --- a/mysql_client.lua +++ b/mysql_client.lua @@ -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))