mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Fix an assert() failure that could occur if the internal sqlite3_rename_parent() SQL scalar function was invoked directly.
FossilOrigin-Name: 36e515261825be60ffdc73d13340d77cf377e8e1
This commit is contained in:
@@ -126,6 +126,7 @@ static void renameParentFunc(
|
||||
n = sqlite3GetToken(z, &token);
|
||||
}while( token==TK_SPACE );
|
||||
|
||||
if( token==TK_ILLEGAL ) break;
|
||||
zParent = sqlite3DbStrNDup(db, (const char *)z, n);
|
||||
if( zParent==0 ) break;
|
||||
sqlite3Dequote(zParent);
|
||||
|
||||
Reference in New Issue
Block a user