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/psModules/src/config/pmConfig.c

    r9410 r9416  
    33 *  @author PAP, IfA
    44 *
    5  *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-10-09 20:18:58 $
     5 *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-10-09 21:27:39 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    866866    psString dbPassword = psMetadataLookupStr(&mdStatus03, config->site, "DBPASSWORD");
    867867    psString dbName = psMetadataLookupStr(&mdStatus01, config->site, "DBNAME");
     868    psS32 dbPort = psMetadataLookupS32(&mdStatus01, config->site, "DBPORT");
    868869    if (!(mdStatus01 & mdStatus02 & mdStatus03)) {
    869870        psLogMsg(__func__, PS_LOG_WARN, "Could not determine database server name, userID, and password from site metadata.\n");
     
    871872    }
    872873
    873     return(psDBInit(dbServer, dbUsername, dbPassword, dbName));
     874    return(psDBInit(dbServer, dbUsername, dbPassword, dbName, dbPort));
    874875    #endif
    875876}
Note: See TracChangeset for help on using the changeset viewer.