mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Avoid a dangling pointer comparison when renaming a table that has a trigger
that itself contains a window function with an (illegal) column reference in a FOLLOWING expression. FossilOrigin-Name: d45bee36f2c1091a2d32c16ca8921bf4e7c9e40c46d0a36fbcb179ecfafcfbf0
This commit is contained in:
@@ -881,6 +881,7 @@ void sqlite3WindowListDelete(sqlite3 *db, Window *p){
|
||||
*/
|
||||
static Expr *sqlite3WindowOffsetExpr(Parse *pParse, Expr *pExpr){
|
||||
if( 0==sqlite3ExprIsConstant(pExpr) ){
|
||||
if( IN_RENAME_OBJECT ) sqlite3RenameExprUnmap(pParse, pExpr);
|
||||
sqlite3ExprDelete(pParse->db, pExpr);
|
||||
pExpr = sqlite3ExprAlloc(pParse->db, TK_NULL, 0, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user