Skip to content

Commit

Permalink
inital test change to add default dbname
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthak committed Mar 12, 2016
1 parent 4f7b2f4 commit f61e4be
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions gdal/frmts/postgisraster/postgisrasterdataset.cpp
Expand Up @@ -2529,16 +2529,20 @@ GetConnectionInfo(const char * pszFilename,
**/
nPos = CSLFindName(papszParams, "dbname");
if (nPos == -1) {
CPLError(CE_Failure, CPLE_AppDefined,
/*CPLError(CE_Failure, CPLE_AppDefined,
"You must specify at least a db name");
CSLDestroy(papszParams);
return false;
}
return false;*/

*ppszDbname =
CPLStrdup(CPLParseNameValue(papszParams[nPos], NULL));
//change by sarthak
*ppszDbname = *ppszUser;
}
else{
*ppszDbname = CPLStrdup(CPLParseNameValue(papszParams[nPos], NULL));
}


/**
* Case 2: There's database name, but no table name: activate a flag
Expand Down

0 comments on commit f61e4be

Please sign in to comment.