Skip to content

Commit 54e54e0

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 8bc0aee commit 54e54e0

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
@@ -197,7 +197,7 @@ local function pool_close(self)
197197
mysql_conn:close()
198198
end
199199
end
200-
return 1
200+
return true
201201
end
202202

203203
-- Returns connection

0 commit comments

Comments
 (0)