Skip to content

Commit e87fefe

Browse files
an-taoCopilot
andauthored
Update orm_lib/inc/drogon/orm/SqlBinder.h
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b572e27 commit e87fefe

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

orm_lib/inc/drogon/orm/SqlBinder.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,14 @@ class DROGON_EXPORT SqlBinder : public trantor::NonCopyable
657657
}
658658
else if constexpr (std::is_same_v<T, char>)
659659
{
660-
return MySqlTiny;
660+
if constexpr (std::is_signed_v<char>)
661+
{
662+
return MySqlTiny;
663+
}
664+
else
665+
{
666+
return MySqlUTiny;
667+
}
661668
}
662669
else
663670
{

0 commit comments

Comments
 (0)