From 78a66c1a758dd67f516e1727a7f76726ad941d50 Mon Sep 17 00:00:00 2001 From: rfm Date: Tue, 6 Aug 2024 13:06:15 +0100 Subject: [PATCH] Copy rather than retaining when making a literal string --- SQLClient.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SQLClient.m b/SQLClient.m index 55a7189..a40cf99 100644 --- a/SQLClient.m +++ b/SQLClient.m @@ -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) {