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

version» Context lines:

pike.git/lib/modules/Sql.pmod/tds.pike:346:       //! An outgoing packet to the TDS server.    class Packet    {    array(string|int) segments = ({});    array(string) strings = ({});    int flags;       protected void create(int|void flags)    { -  this_program::flags = flags; +  this::flags = flags;    }       void put_int8(int i)    {    segments += ({ sprintf("%-8c", i) });    }    void put_int(int i)    {    segments += ({ sprintf("%-4c", i) });    }
pike.git/lib/modules/Sql.pmod/tds.pike:1426:    string username, string auth)    {    string domain;    array(string) tmp = username/"\\";    if (sizeof(tmp) > 1) {    // Domain login.    domain = tmp[0];    username = tmp[1..]*"\\";    }    -  this_program::server = server; -  this_program::port = port; -  this_program::database = database; -  this_program::username = username; -  this_program::password = auth; -  this_program::domain = domain; +  this::server = server; +  this::port = port; +  this::database = database; +  this::username = username; +  this::password = auth; +  this::domain = domain;       TDS_WERROR("Connecting to %s:%d with TDS version %d.%d\n",    server, port, major_version, minor_version);       socket = Stdio.File();    if (!socket->connect(server, port)) {    socket = 0;    tds_error("Failed to connect to %s:%d\n", server, port);    }    process_login_tokens(send_login());