Navigation Menu

Skip to content

Commit

Permalink
Update src/core/qgssqlstatement.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
  • Loading branch information
nirvn and rouault committed Jul 13, 2021
1 parent 09ccc6a commit 60f947d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgssqlstatement.cpp
Expand Up @@ -91,7 +91,7 @@ QString QgsSQLStatement::quotedIdentifierIfNeeded( const QString &name )
return quotedIdentifier( name );
}
}
static const QRegularExpression IDENTIFIER_RE( "^[A-Za-z_\x80-\xff][A-Za-z0-9_\x80-\xff]*$" );
const thread_local QRegularExpression IDENTIFIER_RE( "^[A-Za-z_\x80-\xff][A-Za-z0-9_\x80-\xff]*$" );
return IDENTIFIER_RE.match( name ).hasMatch() ? name : quotedIdentifier( name );
}

Expand Down

0 comments on commit 60f947d

Please sign in to comment.