Skip to content

Commit 6e813c2

Browse files
committed
change the return type of pool:close() to bool
Before the patch pool: close () return fixed "number" == 1. This seems to mean "no errors". So let's use the same return type as for the connection: close (). This will be more consistent.
1 parent fbe39b4 commit 6e813c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ local function pool_close(self)
201201
mysql_conn:close()
202202
end
203203
end
204-
return 1
204+
return true
205205
end
206206

207207
-- Returns connection

0 commit comments

Comments
 (0)