Copy rather than retaining when making a literal string

This commit is contained in:
rfm 2024-08-06 13:06:15 +01:00
parent 2c9070cfd0
commit 78a66c1a75

View file

@ -326,7 +326,8 @@ SQLClientMakeLiteral(NSString *aString)
if (c != LitStringClass && c != TinyStringClass && c != SQLStringClass)
{
/* The SQLString class uses utf8 and can be very inefficient
* if it's too long. For long strings we use a proxy instead.
* if it's too long. For long strings we use a proxy to a
* copy of the original string.
*/
if ([aString length] > 64)
{