---
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
## Summary
|
||||
<!--Explain briefly what goes wrong and explain why you believe this is a bug and not the intended behavior of SQLite (if it is not a crash).-->**No review yet**
|
||||
|
||||
## Minimized query
|
||||
|
||||
```sql
|
||||
.timeout
|
||||
creATE VIRTUAL TABLE t0 USING fts3("x", "y", "z");
|
||||
DROP TABLE t0;
|
||||
CREATE TABLE T (
|
||||
a INTEGER,
|
||||
b TEXT,
|
||||
c INTEGER
|
||||
);
|
||||
INSERT INTO T VALUES (octet_length(123),'a',NULL), (2,'b',1), (3,'c',2);
|
||||
WITH RECURSIVE d(a,b,c,e) AS (
|
||||
SELECT *,1 FROM T WHERE c IS NULL
|
||||
UNION ALL
|
||||
SELECT T.a,T.b,T.c,d.e+1
|
||||
FROM T JOIN d ON T.c=d.a
|
||||
)
|
||||
SELECT * FROM d;
|
||||
PRAGMA legacy_file_format;
|
||||
PRAGMA foreign_key_check;
|
||||
SELECT * FROM T;
|
||||
CREATE INDEX IF NOT EXISTS idx_T_5021 ON T((b + 1));
|
||||
SELECT * FROM (SELECT c, COUNT(*) FROM T GROUP BY c) AS sub;
|
||||
SELECT * FROM T;
|
||||
```
|
||||
|
||||
## Actual output
|
||||
|
||||
```sql
|
||||
Parse error near line 9: no such function: octet_length
|
||||
INSERT INTO T VALUES (octet_length(123),'a',NULL), (2,'b',1), (3,'c',2);
|
||||
^--- error here
|
||||
```
|
||||
|
||||
## Expectation
|
||||
|
||||
```sql
|
||||
|
||||
```
|
||||
|
||||
## Flag
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user