Skip to content
Browse files
Allow updating SSL cert custom configuration
So far it was only possible to add a first configuration, changing the configuration later on would fail with a unique constraint error.
  • Loading branch information
m-kuhn committed Jul 3, 2018
1 parent 0f6d808 commit 7ee252e9ded9ce5d62dfe31859fa0491e4a53a86
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1872,7 +1872,7 @@ bool QgsAuthManager::storeSslCertCustomConfig( const QgsAuthConfigSslServer &con
QString certpem( cert.toPem() );

QSqlQuery query( authDbConnection() );
query.prepare( QString( "INSERT INTO %1 (id, host, cert, config) "
query.prepare( QString( "INSERT OR REPLACE INTO %1 (id, host, cert, config) "
"VALUES (:id, :host, :cert, :config)" ).arg( authDbServersTable() ) );

query.bindValue( ":id", id );

0 comments on commit 7ee252e

Please sign in to comment.