You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method is defined as:
if (field.sqllen == 1)
setString(value ? SHORT_TRUE : SHORT_FALSE);
else
if (field.sqllen > 4)
setString(value ? LONG_TRUE : LONG_FALSE);
If my string field uses a MBCS (for example, UTF-8) or my connection charset is multi-byte, the above code didn't work (due to sqllen be defined in number of bytes) and also didn't throw a exception.
The solution is to divide sqllen by the number of max. bytes of the field character set.
Submitted by: @asfernandes
Assigned to: Roman Rokytskyy (rrokytskyy)
This method is defined as:
if (field.sqllen == 1)
setString(value ? SHORT_TRUE : SHORT_FALSE);
else
if (field.sqllen > 4)
setString(value ? LONG_TRUE : LONG_FALSE);
If my string field uses a MBCS (for example, UTF-8) or my connection charset is multi-byte, the above code didn't work (due to sqllen be defined in number of bytes) and also didn't throw a exception.
The solution is to divide sqllen by the number of max. bytes of the field character set.
Commits: 4bd389f
The text was updated successfully, but these errors were encountered: