mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Do not apply affinities when creating entries for automatic indexes on views. Fix for [95302bdb].
FossilOrigin-Name: df12f097224ebc9473d9e2a8933bd7efed6490d09af2c012c9b59a7892369b7f
This commit is contained in:
@ -474,5 +474,14 @@ ifcapable utf16 {
|
||||
} 1
|
||||
}
|
||||
|
||||
reset_db
|
||||
do_execsql_test cast-9.0 {
|
||||
CREATE TABLE t0(c0);
|
||||
INSERT INTO t0(c0) VALUES (0);
|
||||
CREATE VIEW v1(c0, c1) AS
|
||||
SELECT CAST(0.0 AS NUMERIC), COUNT(*) OVER () FROM t0;
|
||||
SELECT v1.c0 FROM v1, t0 WHERE v1.c0=0;
|
||||
} {0.0}
|
||||
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user