mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Enhance the sqlite3ExprIsConstant() function so that it recognizes
constant functions. So far the enhancement only applies to the multi-row VALUES clause, but it could possibly be applied in many other places. FossilOrigin-Name: c9e0488c6c0135932b6e76b0f3f3acd69ef65327e0a54daa59777f35da1aef26
This commit is contained in:
@@ -1164,7 +1164,7 @@ void sqlite3WindowListDelete(sqlite3 *db, Window *p){
|
||||
** variable values in the expression tree.
|
||||
*/
|
||||
static Expr *sqlite3WindowOffsetExpr(Parse *pParse, Expr *pExpr){
|
||||
if( 0==sqlite3ExprIsConstant(pExpr) ){
|
||||
if( 0==sqlite3ExprIsConstant(0,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