1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Merge version 3.49.0 into the bedrock branch.

FossilOrigin-Name: cc3ce784b0feea2f7e86960d262a04c555df817192695d5760c2a83fb804a212
This commit is contained in:
drh
2025-02-06 12:46:51 +00:00
20 changed files with 266 additions and 100 deletions

View File

@@ -2564,9 +2564,11 @@ static void sessionAppendIdent(
char *zOut = (char *)&p->aBuf[p->nBuf];
const char *zIn = zStr;
*zOut++ = '"';
while( *zIn ){
if( *zIn=='"' ) *zOut++ = '"';
*zOut++ = *(zIn++);
if( zIn!=0 ){
while( *zIn ){
if( *zIn=='"' ) *zOut++ = '"';
*zOut++ = *(zIn++);
}
}
*zOut++ = '"';
p->nBuf = (int)((u8 *)zOut - p->aBuf);