DBI.lua

changeset 18
b705ba343e94
parent 17
21c4feaeafe7
child 22
fd78e9cdc6e9
--- a/DBI.lua	Sat Dec 06 00:32:37 2008 +0000
+++ b/DBI.lua	Sat Dec 06 07:35:31 2008 +0000
@@ -36,7 +36,7 @@
 
  -- High level DB connection function
  -- This should be used rather than DBD.{Driver}.New
-function Connect(driver, name, username, password, host, port)
+function Connect(driver, ...)
     local modulefile = name_to_module[driver]
 
     if not modulefile then
@@ -55,7 +55,7 @@
     local connection_class = package.loaded[class_str]
 
     -- Calls DBD.{Driver}.New(...)
-    return connection_class.New(name, username, password, host, port)
+    return connection_class.New(...)
 end
 
 -- Help function to do prepare and execute in 

mercurial