pike.git / lib / modules / Sql.pmod / tds.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/tds.pike:1726:   //! with the domain name and a @expr{'\\'@}.   //!   //! @param password   //! Password to access with.   //!   //! Usually accessed via @[Sql.Sql()].   //!   //! @seealso   //! @[Sql.Sql()]   protected void create(string|void server, string|void database, -  string|void user, string|void password) +  string|void user, string|void password, +  mapping|void options)   {    if (con) {    Disconnect(1);    }    int port = DEF_PORT;    if (server) {    array(string) tmp = server/":";    if (sizeof(tmp) > 1) {    port = (int)tmp[-1];    server = tmp[..sizeof(tmp)-2]*":";    }    } else {    server = "127.0.0.1";    }    Connect(server, port, database || "default",    user || "", password || "");   }