more verbose nativeLib rary.ohd.whfs
This commit is contained in:
parent
6ca59e9abe
commit
42175d9009
5 changed files with 9 additions and 12 deletions
|
@ -96,6 +96,10 @@ else
|
||||||
eclipse_dir=$(get_full_path $1)
|
eclipse_dir=$(get_full_path $1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
echo "Using $eclipse_dir"
|
||||||
|
#exit
|
||||||
|
|
||||||
echo "Cleaning Eclipse plugins... "
|
echo "Cleaning Eclipse plugins... "
|
||||||
|
|
||||||
rm -vf $eclipse_dir/plugins/com.raytheon*
|
rm -vf $eclipse_dir/plugins/com.raytheon*
|
||||||
|
|
|
@ -26,13 +26,8 @@ int OpenDbms(const char *dbmsname) {
|
||||||
char * db_host = getAppDefault("pghost");
|
char * db_host = getAppDefault("pghost");
|
||||||
char * db_port = getAppDefault("pgport");
|
char * db_port = getAppDefault("pgport");
|
||||||
char * db_user = getAppDefault("pguser");
|
char * db_user = getAppDefault("pguser");
|
||||||
char * ssl_home = getAppDefault("DB_ssl_cert_dir");
|
|
||||||
char * ssl_mode = getAppDefault("DB_ssl_mode");
|
|
||||||
|
|
||||||
snprintf(sqlstmt,sizeof(sqlstmt), "tcp:postgresql://%s:%s/%s?user=%s&sslmode=%s"
|
snprintf(sqlstmt,sizeof(sqlstmt), "%s@%s:%s?user=%s",db_name,db_host,dp_port,db_user);
|
||||||
"&sslkey=%s/%s.key&sslcert=%s/%s.crt&sslrootcert=%s/root.crt"
|
|
||||||
,db_host,db_port,db_name,db_user,ssl_mode,ssl_home,db_user,
|
|
||||||
ssl_home,db_user,ssl_home);
|
|
||||||
|
|
||||||
printf("Connecting to database '%s' as user '%s'\n", sqlstmt, db_user);
|
printf("Connecting to database '%s' as user '%s'\n", sqlstmt, db_user);
|
||||||
|
|
||||||
|
@ -40,7 +35,7 @@ int OpenDbms(const char *dbmsname) {
|
||||||
EXEC SQL CONNECT TO :sqlstmt ;
|
EXEC SQL CONNECT TO :sqlstmt ;
|
||||||
|
|
||||||
if (SQLCODE < 0) {
|
if (SQLCODE < 0) {
|
||||||
fprintf(stderr, "Unable to open database %s - (%ld)\n", dbmsname,
|
fprintf(stderr, "DbmsAccess: Unable to open database %s - (%ld)\n", dbmsname,
|
||||||
SQLCODE);
|
SQLCODE);
|
||||||
result=errSqlFail;
|
result=errSqlFail;
|
||||||
goto freeALL;
|
goto freeALL;
|
||||||
|
@ -51,8 +46,6 @@ freeALL:
|
||||||
free(db_host);
|
free(db_host);
|
||||||
free(db_port);
|
free(db_port);
|
||||||
free(db_user);
|
free(db_user);
|
||||||
free(ssl_home);
|
|
||||||
free(ssl_mode);
|
|
||||||
|
|
||||||
|
|
||||||
return (result);
|
return (result);
|
||||||
|
|
|
@ -24,7 +24,7 @@ void startdb(long int *return_code)
|
||||||
char * db_port = getAppDefault("pgport");
|
char * db_port = getAppDefault("pgport");
|
||||||
db_user = getAppDefault("pguser");
|
db_user = getAppDefault("pguser");
|
||||||
|
|
||||||
sprintf(sqlstmt, "tcp:postgresql://%s:%s/%s", db_host, db_port, db_name);
|
sprintf(sqlstmt, "%s@%s:%s?user=%s",db_name,db_host,dp_port,db_user);
|
||||||
|
|
||||||
printf("Connecting to database '%s' as user '%s'\n", sqlstmt, db_user);
|
printf("Connecting to database '%s' as user '%s'\n", sqlstmt, db_user);
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ int HydroBriefDLT::openDatabase()
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("Unable to open database %s\n", databaseName);
|
printf("HydroBriefDLT: Unable to open database %s\n", databaseName);
|
||||||
isDbOpen = 0;
|
isDbOpen = 0;
|
||||||
exit(-4);
|
exit(-4);
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ static void get_lineseg_options(const int argc,
|
||||||
ret = OpenDbms(dbms);
|
ret = OpenDbms(dbms);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Unable to open database: %s\n",
|
fprintf(stderr, "lineseg_main: Unable to open database: %s\n",
|
||||||
dbms);
|
dbms);
|
||||||
exit(-2);
|
exit(-2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue