mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
Constify table names
This commit is contained in:
parent
8af8f9c51e
commit
2105fd8a75
15
lib/sql.cpp
15
lib/sql.cpp
@ -125,14 +125,15 @@ int XSqlQuery::schemaVersion()
|
||||
|
||||
QString XSqlQuery::rewriteQuery(QString _q)
|
||||
{
|
||||
QStringList tables; tables <<
|
||||
"items" << "crls" << "private_keys" << "public_keys" <<
|
||||
"tokens" << "token_mechanism" << "templates" << "certs" <<
|
||||
"authority" << "revocations" << "requests" << "x509super" <<
|
||||
"settings" <<
|
||||
static const QStringList tables {
|
||||
"items" , "crls" , "private_keys" , "public_keys" ,
|
||||
"tokens" , "token_mechanism" , "templates" , "certs" ,
|
||||
"authority" , "revocations" , "requests" , "x509super" ,
|
||||
"settings" ,
|
||||
|
||||
"view_public_keys" << "view_certs" << "view_requests" <<
|
||||
"view_crls" << "view_templates" << "view_private" ;
|
||||
"view_public_keys" , "view_certs" , "view_requests" ,
|
||||
"view_crls" , "view_templates" , "view_private",
|
||||
};
|
||||
|
||||
lastq = query = _q;
|
||||
if (table_prefix.isEmpty())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user