mirror of
https://github.com/sqlite/sqlite.git
synced 2025-12-24 14:17:58 +03:00
Fix a potential NULL pointer dereference on a RENAME TABLE that references
a VIEW with a logic error in a window function in the ORDER BY clause. FossilOrigin-Name: 0adb273f7e7671efb0e0a1619887e369500dfd2db7ef1b1e125c2414ea96e96f
This commit is contained in:
@@ -1234,4 +1234,13 @@ do_catchsql_test 31.3 {
|
||||
);
|
||||
} {1 {frame ending offset must be a non-negative integer}}
|
||||
|
||||
# 2019-11-16 chromium issue 1025467
|
||||
db close
|
||||
sqlite3 db :memory:
|
||||
do_catchsql_test 32.10 {
|
||||
CREATE VIEW a AS SELECT NULL INTERSECT SELECT NULL ORDER BY s() OVER R;
|
||||
CREATE TABLE a0 AS SELECT 0;
|
||||
ALTER TABLE a0 RENAME TO S;
|
||||
} {1 {error in view a: 1st ORDER BY term does not match any column in the result set}}
|
||||
|
||||
finish_test
|
||||
|
||||
Reference in New Issue
Block a user