Skip to content

Commit 2b8489c

Browse files
committed
fixed the mysql database name, user name, and password in the new test case added in the previous commit for pull #6.
1 parent f8113ad commit 2b8489c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/resty/mysql.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ local COM_QUERY = 0x03
3939

4040
local SERVER_MORE_RESULTS_EXISTS = 8
4141

42+
-- 16MB - 1, the default max allowed packet size used by libmysqlclient
43+
local FULL_PACKET_SIZE = 16777215
44+
4245

4346
local mt = { __index = _M }
4447

t/sanity.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,9 +1215,9 @@ qr/lua tcp socket keepalive create connection pool for key "my_pool"/
12151215
local ok, err = db:connect{
12161216
host = "$TEST_NGINX_MYSQL_HOST",
12171217
port = $TEST_NGINX_MYSQL_PORT,
1218-
database="test",
1219-
user="root",
1220-
password=""}
1218+
database="ngx_test",
1219+
user="ngx_test",
1220+
password="ngx_test"}
12211221
if not ok then
12221222
ngx.say("failed to connect: ", err, ": ", errno, " ", sqlstate)
12231223
return

0 commit comments

Comments
 (0)