Skip to content

Commit

Permalink
mssql provider: don't double 'quote' (fixes #50914)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n authored and nyalldawson committed Nov 17, 2022
1 parent a57c4ac commit 661c0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/mssql/qgsmssqlprovider.cpp
Expand Up @@ -981,7 +981,7 @@ void QgsMssqlProvider::UpdateStatistics( bool estimate ) const
}

// See https://docs.microsoft.com/en-us/previous-versions/software-testing/cc441928(v=msdn.10)
const QString sampleFilter = QString( "(ABS(CAST((BINARY_CHECKSUM([%1])) as int)) % 100) = 42" ).arg( cols );
const QString sampleFilter = QString( "(ABS(CAST((BINARY_CHECKSUM(%1)) as int)) % 100) = 42" ).arg( cols );

const QString statementSample = statement + ( mSqlWhereClause.isEmpty() ? " WHERE " : " AND " ) + sampleFilter;

Expand Down

0 comments on commit 661c0e2

Please sign in to comment.