Diff

plugins/mod_storage_sql.lua @ 5056:a125daa42ad4

mod_storage_sql: Return connection from connect even if already connected (thanks IRON)
author Matthew Wild <mwild1@gmail.com>
date Mon, 30 Jul 2012 18:50:46 +0100
parent 5055:d466d2088a61
child 5121:b5a5643f8572
child 5130:051d352ed03c
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Mon Jul 30 06:01:41 2012 +0200
+++ b/plugins/mod_storage_sql.lua	Mon Jul 30 18:50:46 2012 +0100
@@ -79,8 +79,8 @@
 		connection = dbh;
 
 		connections[dburi] = dbh;
-		return connection;
 	end
+	return connection;
 end
 
 local function create_table()