httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1550686 - /httpd/httpd/trunk/docs/manual/mod/mod_lua.xml
Date Fri, 13 Dec 2013 10:59:22 GMT
Author: humbedooh
Date: Fri Dec 13 10:59:22 2013
New Revision: 1550686

URL: http://svn.apache.org/r1550686
Log:
s/password/pass/

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_lua.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_lua.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_lua.xml?rev=1550686&r1=1550685&r2=1550686&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.xml Fri Dec 13 10:59:22 2013
@@ -1103,7 +1103,7 @@ end
     <highlight language="lua">
 function handle(r)
     -- Acquire a database handle
-    local database, err = r:dbacquire("mysql", "server=localhost,user=someuser,password=somepass,dbname=mydb")
+    local database, err = r:dbacquire("mysql", "server=localhost,user=someuser,pass=somepass,dbname=mydb")
     if not err then
         -- Select some information from it
         local results, err = database:select(r, "SELECT `name`, `age` FROM `people` WHERE
1")



Mime
View raw message