Skip to content

Commit fdceb2f

Browse files
committed
also get crs record count readonly (follows up 9154e4e)
1 parent 2a126af commit fdceb2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgscoordinatereferencesystem.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ long QgsCoordinateReferenceSystem::getRecordCount()
13771377
int myResult;
13781378
long myRecordCount = 0;
13791379
//check the db is available
1380-
myResult = sqlite3_open( QgsApplication::qgisUserDbFilePath().toUtf8().data(), &myDatabase );
1380+
myResult = sqlite3_open_v2( QgsApplication::qgisUserDbFilePath().toUtf8().data(), &myDatabase, SQLITE_OPEN_READONLY, NULL );
13811381
if ( myResult != SQLITE_OK )
13821382
{
13831383
QgsDebugMsg( QString( "Can't open database: %1" ).arg( sqlite3_errmsg( myDatabase ) ) );

0 commit comments

Comments
 (0)