We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e82b57 commit e3fb69eCopy full SHA for e3fb69e
src/lib/pq/connection.cpp
@@ -177,7 +177,7 @@ namespace tao::pq
177
{
178
[[nodiscard]] constexpr auto is_identifier( const std::string_view value ) noexcept -> bool
179
180
- return !value.empty() && ( value.find_first_not_of( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_" ) == std::string_view::npos ) && ( std::isdigit( value[ 0 ] ) == 0 );
+ return !value.empty() && ( value.find_first_not_of( "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_" ) == std::string_view::npos ) && ( std::isdigit( static_cast< unsigned char >( value[ 0 ] ) ) == 0 );
181
}
182
183
} // namespace
0 commit comments