Skip to content
Permalink
Browse files
Update src/core/qgssqlstatement.cpp
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
  • Loading branch information
nirvn and rouault committed Jul 13, 2021
1 parent 09ccc6a commit 60f947d75be9fb77be6d55efb642caea3b6a48cc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgssqlstatement.cpp
@@ -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 );
}

0 comments on commit 60f947d

Please sign in to comment.