Skip to content

Commit

Permalink
release 0.6.0 (#261)
Browse files Browse the repository at this point in the history
ver++
  • Loading branch information
vcloarec authored May 26, 2020
1 parent ac678ea commit b2dcea0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mdal/frmts/mdal_3di.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ void MDAL::Driver3Di::parse1DConnection( const std::vector<int> &nodesId,
if ( ! stmt.prepare( &db, "SELECT id, start_node_idx, end_node_idx FROM flowlines" ) )
throw MDAL::Error( MDAL_Status::Err_UnknownFormat, "Unable to read edges connectivity from sqlite database" );

if ( std::isnan( stmt.columnCount() ) || stmt.columnCount() != 3 )
if ( stmt.columnCount() < 0 || stmt.columnCount() != 3 )
throw MDAL::Error( MDAL_Status::Err_UnknownFormat, "Invalid edges connectivity schema in sqlite database" );

while ( stmt.next() )
Expand Down
3 changes: 1 addition & 2 deletions mdal/frmts/mdal_sqlite3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ int Sqlite3Statement::getInt( int column ) const

int Sqlite3Statement::columnCount() const
{

if ( mStatement )
return sqlite3_column_count( mStatement );
else
return std::numeric_limits<int>::quiet_NaN();
return -1;
}
2 changes: 1 addition & 1 deletion mdal/mdal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static const char *EMPTY_STR = "";

const char *MDAL_Version()
{
return "0.5.92";
return "0.6.0";
}

MDAL_Status MDAL_LastStatus()
Expand Down
2 changes: 1 addition & 1 deletion scripts/copy_to_qgis.bash
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ rm -rf $QGIS_MDAL_DIR/*
echo "Copy new version"
cp -Rv ./cmake $QGIS_MDAL_DIR/
# QGIS has its own FindSqlite3 script
rm $QGIS_MDAL_DIR/cmake/FindSqlite3.cmake
rm $QGIS_MDAL_DIR/cmake/FindSQLite3.cmake
cp -Rv ./cmake_templates $QGIS_MDAL_DIR/
cp -Rv ./mdal/* $QGIS_MDAL_DIR
find $QGIS_MDAL_DIR -name "*CMakeLists.txt" -type f -delete
Expand Down

0 comments on commit b2dcea0

Please sign in to comment.