1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-21 11:13:54 +03:00

Fix the length of the string in the new concat() and concat_ws() functions.

FossilOrigin-Name: 325243226520376f4a142864ae3fb98866f25bff4dc50a6b648ef98428a7169f
This commit is contained in:
drh
2023-10-02 17:06:28 +00:00
parent 43d71eb892
commit 51e3f7a1c3
3 changed files with 8 additions and 8 deletions

View File

@@ -1592,7 +1592,7 @@ static void concatFuncCore(
}
z[j] = 0;
assert( j<=n );
sqlite3_result_text64(context, z, n, sqlite3_free, SQLITE_UTF8);
sqlite3_result_text64(context, z, j, sqlite3_free, SQLITE_UTF8);
}
/*