IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2006, 11:27:39 AM (20 years ago)
Author:
jhoblitt
Message:

add port argument to psDBInit()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/db/psDB.c

    r9401 r9416  
    1212 *  @author Joshua Hoblitt
    1313 *
    14  *  @version $Revision: 1.98 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-10-07 23:36:20 $
     14 *  @version $Revision: 1.99 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-10-09 21:27:11 $
    1616 *
    1717 *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
     
    127127               const char *user,
    128128               const char *passwd,
    129                const char *dbname)
     129               const char *dbname,
     130               unsigned int port)
    130131{
    131132    MYSQL           *mysql;
     
    141142
    142143    // Connect to host and mySql server with specified database
    143     if (!mysql_real_connect(mysql, host, user, passwd, dbname, 0, NULL, 0)) {
     144    if (!mysql_real_connect(mysql, host, user, passwd, dbname, port, NULL, 0)) {
    144145        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    145146                _("Failed to connect to database.  Error: %s"),mysql_error(mysql));
Note: See TracChangeset for help on using the changeset viewer.