1
0
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:
dan
2015-04-28 14:07:02 +00:00
parent bd6789e761
commit d68d1f4863
4 changed files with 19 additions and 9 deletions

View File

@@ -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);