-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbugs.json
More file actions
8944 lines (8944 loc) · 367 KB
/
bugs.json
File metadata and controls
8944 lines (8944 loc) · 367 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[
{
"date": "28/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-April/084283.html"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"status": "closed (not a bug)",
"test": [
"CREATE TABLE test (c0);",
"CREATE INDEX index_1 ON test('asdf'); -- Error: no such column: asdf"
],
"title": "String interpreted as a column name when creating an index"
},
{
"comment": "This bug was classified as \"severe\" and had existed since 2013.",
"date": "28/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview/3182d3879020ef3b2e6db56be2470a0266d3c773",
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-April/084293.html",
"fix": "https://www.sqlite.org/src/info/1b1dd4d48cd79a58"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Severe",
"status": "fixed",
"test": [
"CREATE TABLE test (c1 TEXT PRIMARY KEY) WITHOUT ROWID;",
"CREATE INDEX index_0 ON test(c1 COLLATE NOCASE);",
"INSERT INTO test(c1) VALUES ('A');",
"INSERT INTO test(c1) VALUES ('a');",
"SELECT * FROM test; -- only one row is fetched"
],
"title": "COLLATE nocase index on a WITHOUT ROWID table malfunctions"
},
{
"comment": "The failing test case caused the SQLite developers to realize \"a defect in the design of SQLite, not a defect in the implementation.\" Seven options to address this were outlined. Since it was not very clear how to best address this, the quirk was documented in the documentation and a compile time option to omit the relevant pragma was introduced.",
"date": "28/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/info/a340eef47b0cad5",
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-April/084322.html",
"fix": "https://www.sqlite.org/src/info/eabe7f2d4ff0e0dd"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"severity": "Important",
"status": "fixed",
"test": [
"CREATE TABLE test (c0);",
"CREATE INDEX index_0 ON test(c0 LIKE '');",
"PRAGMA case_sensitive_like=false;",
"VACUUM;",
"SELECT * from test; -- Error: malformed database schema (index_0) - non-deterministic functions prohibited in index expressions"
],
"title": "PRAGMA case_sensitive_like can corrupt some databases"
},
{
"date": "30/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-April/084324.html",
"fix": "https://www.sqlite.org/src/info/5997d075665faca6"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"severity": "Minor",
"status": "fixed",
"test": [
"CREATE TABLE test (c0, c1 REAL);",
"CREATE UNIQUE INDEX index_1 ON test(c0 GLOB c1);",
"INSERT INTO test(c0, c1) VALUES ('1', '1');",
"INSERT INTO test(c0, c1) VALUES ('0', '1');",
"REINDEX; -- Error: UNIQUE constraint failed"
],
"title": "Unique index that uses GLOB does not detect duplicate due to REAL conversion"
},
{
"date": "28/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=a340eef47b",
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-April/084299.html"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"severity": "Important",
"status": "closed (duplicate)",
"test": [
"PRAGMA case_sensitive_like=false;",
"CREATE TABLE test (c0);",
"CREATE INDEX IF NOT EXISTS index_1 ON test(c0 LIKE 'a'); -- Error: non-deterministic functions prohibited in index expressions"
],
"title": "PRAGMA case_sensitive_like conflicts with LIKE operator when creating an index"
},
{
"date": "1/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/info/3be1295b264be2fa",
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084326.html",
"fix": "https://www.sqlite.org/src/info/713caa382cf7ddef"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"severity": "Important",
"status": "fixed",
"test": [
"CREATE TABLE test (c0, c1 TEXT);",
"CREATE UNIQUE INDEX IF NOT EXISTS index_0 ON test(c1 == FALSE);",
"CREATE INDEX IF NOT EXISTS index_1 ON test(c0 || FALSE) WHERE c1;",
"INSERT OR IGNORE INTO test(c0, c1) VALUES ('a', TRUE);",
"INSERT OR IGNORE INTO test(c0, c1) VALUES ('a', FALSE);",
"PRAGMA legacy_file_format=true;",
"REINDEX; -- Error: UNIQUE constraint failed: index 'index_0'"
],
"title": "Multi-row insert circumvents index check"
},
{
"date": "1/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084334.html",
"fix": "https://www.sqlite.org/src/info/b043a54c3de54b28"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"status": "fixed",
"test": [
"CREATE TABLE test (c0 REAL);",
"CREATE INDEX index_0 ON test(c0 COLLATE NOCASE);",
"INSERT INTO test(c0) VALUES ('+/');",
"SELECT * FROM test WHERE (c0 LIKE '+/'); -- fetches no row"
],
"title": "COLLATE NOCASE index on REAL column malfunctions"
},
{
"comment": "Note that this was not a bug in the code. Rather, the documentation was not very clear on this is.",
"date": "2/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084347.html"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"status": "fixed (in documentation)",
"test": [
"CREATE TABLE test (c0 NOT NULL);",
"INSERT INTO test(c0) VALUES (NULL) ON CONFLICT DO NOTHING; -- results in an error",
"INSERT OR IGNORE INTO test(c0) VALUES (NULL); -- does not result in an error"
],
"title": "UPSERT documentation issue"
},
{
"date": "2/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084350.html",
"fix": "https://www.sqlite.org/src/info/48889530a9de22fe"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"status": "fixed",
"test": [
"CREATE TABLE test (c0 REAL);",
"CREATE UNIQUE INDEX index_0 ON test(TYPEOF(c0));",
"INSERT OR IGNORE INTO test(c0) VALUES (0.1);",
"INSERT OR IGNORE INTO test(c0) VALUES (FALSE);",
"REINDEX; -- UNIQUE constraint failed: index 'index_0'"
],
"title": "TYPEOF index on REAL column malfunctions"
},
{
"date": "2/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084355.html",
"fix": "https://www.sqlite.org/src/info/5a8a23ee5f60a31d"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"status": "closed (duplicate)",
"test": [
"CREATE TABLE test (c0 REAL);",
"CREATE UNIQUE INDEX index_0 ON test(TRIM(('' * c0)));",
"INSERT INTO test(c0) VALUES (0.0), (0.1);",
"REINDEX; -- UNIQUE constraint failed: index 'index_0'"
],
"title": "Index on REAL column malfunctions when multiplying with a string"
},
{
"comment": "As described in one of the commit messages for this fix, addressing this bug required a \"big change\" in the code.",
"date": "3/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084366.html",
"fix": "https://www.sqlite.org/src/info/5a8a23ee5f60a31d"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"status": "fixed",
"test": [
"CREATE TABLE test (c0 REAL);",
"CREATE UNIQUE INDEX index_0 ON test(LENGTH(-c0));",
"INSERT INTO test(c0) VALUES (0.0), ('10:');",
"REINDEX; -- UNIQUE constraint failed: index 'index_0'"
],
"title": "Problem with REAL values and string functions used in indexes or on expressions"
},
{
"date": "3/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084367.html",
"fix": "https://www.sqlite.org/src/info/5a8a23ee5f60a31d"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"status": "closed (duplicate)",
"test": [
"CREATE TABLE test (c0 REAL);",
"CREATE UNIQUE INDEX index_0 ON test(('0' GLOB -c0));",
"INSERT INTO test(c0) VALUES (1.0), (0.0);",
"REINDEX;"
],
"title": "GLOB and minus in index and real column"
},
{
"comment": "This issue was classified as \"severe\", was since 2013 in SQLite, and was a bug in the theorem prover.",
"date": "4/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=5c6955204c",
"email": "https://www.mail-archive.com/sqlite-users@mailinglists.sqlite.org/msg115136.html",
"fix": "https://www.sqlite.org/src/info/c2e439bccc40825e211bf"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Severe",
"status": "fixed",
"test": [
"CREATE TABLE t0(c0);",
"CREATE INDEX index_0 ON t0(c0) WHERE (~c0) NOT NULL;",
"INSERT INTO t0(c0) VALUES (NULL);",
"SELECT * FROM t0 WHERE (LIKELY(~c0) OR TRUE); -- no row fetched"
],
"title": "Incorrect result on a table scan of a partial index"
},
{
"date": "5/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084409.html"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"status": "closed (duplicate)",
"test": [
"CREATE TABLE t1 (c0, c1 REAL, PRIMARY KEY (c1, c0));",
"INSERT INTO t1(c1) VALUES (0X7ffffffffffffff);",
"SELECT * FROM t1 WHERE c1 IN (SELECT c1 FROM t1);"
],
"title": "REAL PRIMARY KEY and floating point comparison does not work"
},
{
"date": "6/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084426.html",
"fix": "https://sqlite.org/src/info/91f701d39852ef1ddb29"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"status": "fixed",
"test": [
"CREATE TABLE t0 (c0 INTEGER, PRIMARY KEY (c0)) WITHOUT ROWID;",
"ALTER TABLE t0 RENAME COLUMN c0 TO c1; -- no such column: c0"
],
"title": "ALTER TABLE fails when renaming an INTEGER PRIMARY KEY column in a WITHOUT ROWID table"
},
{
"comment": "As described on the mailing list, this bug report exposed two bugs and required two different fixes.",
"date": "7/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084439.html",
"fix1": "https://www.sqlite.org/src/info/659c551dcc374a0d",
"fix2": "https://www.sqlite.org/src/info/3f1c8051648a341d"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"status": "fixed",
"test": [
"PRAGMA foreign_keys=true;",
"CREATE TABLE t0 (c0 UNIQUE, c1 UNIQUE, FOREIGN KEY(c0) REFERENCES t0(c1));",
"INSERT OR FAIL INTO t0(c0, c1) VALUES (0, 1);",
"INSERT OR FAIL INTO t0(c0, c1) VALUES (0, 2);",
"SELECT * FROM t0; -- returns no row"
],
"title": "INSERT OR FAIL inserts row although it violates a table constraint"
},
{
"comment": "The bug was classified as \"severe\" and existed in SQLite since 2013.",
"date": "7/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=9cf6c9bb51",
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084460.html",
"fix": "https://www.sqlite.org/src/info/658b84d7"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Severe",
"status": "fixed",
"test": [
"CREATE TABLE t0(c0);",
"CREATE TABLE t1(c0 INTEGER PRIMARY KEY);",
"PRAGMA reverse_unordered_selects=true;",
"INSERT INTO t1(c0) VALUES (0);",
"INSERT INTO t0(c0) VALUES ('a');",
"SELECT * FROM t1, t0 WHERE t1.c0 < t0.c0; -- no row is fetched"
],
"title": "Incorrect result for \"<\" and \"<=\" comparison of rowid and non-numeric text value"
},
{
"date": "8/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084478.html",
"fix": "https://www.sqlite.org/src/info/740201107ae802c1"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"status": "fixed",
"test": [
"CREATE TABLE t0(c0 INT UNIQUE COLLATE NOCASE);",
"INSERT INTO t0(c0) VALUES ('./');",
"SELECT * FROM t0 WHERE t0.c0 LIKE './'; -- fetches no rows"
],
"title": "'./' LIKE './' does not match"
},
{
"date": "9/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084480.html",
"fix": "https://www.sqlite.org/src/info/ebe4845cd0ffb96b"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"status": "fixed",
"test": [
"CREATE TABLE t0(c0 INTEGER PRIMARY KEY);",
"INSERT INTO t0(c0) VALUES (1);",
"PRAGMA reverse_unordered_selects=true;",
"SELECT * FROM t0 WHERE ((t0.c0 > 'a') OR (t0.c0 <= 'a')); -- fetches no row",
"SELECT ((t0.c0 > 'a') OR (t0.c0 <= 'a')) FROM t0; -- returns 1"
],
"title": "Row is not fetched with PRAGMA reverse_unordered_selects=true"
},
{
"comment": "This bug was classified as \"severe\" and existed in SQLite since 2015.",
"date": "9/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview/6c1d3febc00b22d457c7",
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084483.html",
"fix": "https://www.sqlite.org/src/info/9b0915272f4d4052"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"severity": "Severe",
"status": "fixed",
"test": [
"CREATE TABLE t1 (c0, c1 REAL PRIMARY KEY);",
"INSERT INTO t1(c0, c1) VALUES (TRUE, 9223372036854775807), (TRUE, 0);",
"UPDATE t1 SET c0 = NULL;",
"UPDATE OR REPLACE t1 SET c1 = 1;",
"SELECT DISTINCT * FROM t1 WHERE (t1.c0 IS NULL); -- database disk image is malformed"
],
"title": "Malformed database image when using a REAL PRIMARY KEY"
},
{
"date": "10/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084497.html",
"fix": "https://www.sqlite.org/src/info/db9acef14d492121"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"status": "fixed",
"test": [
"SELECT 1e500 >= 1, CAST(1e500 AS INT) >= CAST(1 AS INT), ROUND(1e500) >= ROUND(1); -- 1|1|0"
],
"title": "Incorrect handling of Infinity by the ROUND function"
},
{
"comment": "This bug was classified as \"critical\" and was in SQLite since 2013.",
"date": "11/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://sqlite.org/src/tktview/80256748471a01",
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084499.html",
"fix": "https://sqlite.org/src/info/0ba6d709"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Critical",
"status": "fixed",
"test": [
"CREATE TABLE IF NOT EXISTS t0 (c0);",
"CREATE INDEX IF NOT EXISTS i0 ON t0(1) WHERE c0 NOT NULL;",
"INSERT INTO t0(c0) VALUES(NULL);",
"SELECT * FROM t0 WHERE t0.c0 IS NOT 1; -- returns no row"
],
"title": "Partial NOT NULL index malfunctions with IS NOT/!="
},
{
"date": "13/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084515.html"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"status": "closed (not a bug)",
"test": [
"PRAGMA foreign_keys=true;",
"CREATE TABLE t0 (c0 PRIMARY KEY);",
"CREATE TEMP TABLE t1 (c0, FOREIGN KEY(c0) REFERENCES t0(c0));",
"INSERT INTO t1(c0) VALUES (1); -- no such table: temp.t0"
],
"title": "Mixing main and temp databases in foreign keys is not supported"
},
{
"comment": "The bug highlights a conceptual issue in SQLite and cannot be fixed without breaking backward compatibility. The issue received its own name, namely the \"WITHOUT ROWID DESC PRIMARY KEY UNIQUE constraint index anomaly\". Nevertheless, as stated in the bug report, it is unlikely that real-world applications are affected.",
"date": "13/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=bba7b69f98",
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084528.html",
"fix": "https://www.sqlite.org/src/info/f7aadfab3bb8eb8e"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Important",
"status": "fixed",
"test": [
"CREATE TABLE t0 (c0 PRIMARY KEY DESC, c1 UNIQUE DEFAULT NULL) WITHOUT ROWID;",
"INSERT INTO t0(c0) VALUES (1), (2), (3), (4), (5);",
"REINDEX;",
"SELECT * FROM t0 WHERE t0.c0 IN (SELECT c0 FROM t0) AND t0.c1 ISNULL; -- fetches only one row instead of all five rows"
],
"title": "REINDEX causes rows not to be fetched in a WITHOUT ROWIDs table and PRIMARY KEY DESC"
},
{
"comment": "This bug was introduced while fixing another bug that I had previously found.",
"date": "14/5/2019",
"dbms": "SQLite",
"links": {
"email": "http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-May/084539.html",
"fix": "https://www.sqlite.org/src/info/bc7d2c1656396bb4"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"status": "fixed",
"test": [
"PRAGMA reverse_unordered_selects=true;",
"CREATE TABLE t1 (c0, c1); CREATE TABLE t2 (c0 INT UNIQUE);",
"INSERT INTO t1(c0, c1) VALUES (0, 0), (0, NULL);",
"INSERT INTO t2(c0) VALUES (1);",
"SELECT 1, NULL INTERSECT SELECT * FROM (SELECT t2.c0, t1.c1 FROM t1, t2 WHERE ((t2.rowid <= 'a')) OR (t1.c0 <= t2.c0) ORDER BY 'a' DESC LIMIT 100); -- no row is fetched"
],
"title": "PRAGMA reverse_unordered_selects=true results in row not being fetched"
},
{
"date": "16/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=3c27b97e31",
"fix": "https://www.sqlite.org/src/info/14c00b1016ba53ab"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Important",
"status": "fixed",
"test": [
"CREATE TABLE t0 (c0);",
"CREATE TABLE t1 (c1 REAL);",
"INSERT INTO t1(c1) VALUES (8366271098608253588);",
"INSERT INTO t0(c0) VALUES ('a');",
"SELECT * FROM t1 WHERE (t1.c1 = CAST(8366271098608253588 AS REAL)); -- fetches row",
"SELECT * FROM t0, t1 WHERE (t1.c1 = CAST(8366271098608253588 AS REAL)); -- fetches no row",
"SELECT * FROM t0, t1 WHERE (t1.c1 >= CAST(8366271098608253588 AS REAL) AND t1.c1 <= CAST(8366271098608253588 AS REAL)); -- fetches row"
],
"title": "REAL rounding seems to depend on FROM clause"
},
{
"comment": "Although this was not recognized as a bug, the bug report resulted in a documentation update and change in the default options for SQLite's defensive configuration.",
"date": "16/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=f4ec250930",
"fix": "https://www.sqlite.org/src/info/a0f5eb5c79cc33b7"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"severity": "Minor",
"status": "fixed (in documentation)",
"test": [
"PRAGMA journal_mode=OFF;",
"PRAGMA main.cache_size=0;",
"CREATE TABLE IF NOT EXISTS t0 (c0);",
"CREATE INDEX i0 ON t0(1);",
"DROP INDEX \"i0\";",
"INSERT OR IGNORE INTO t0(c0) VALUES (1), (2);",
"CREATE UNIQUE INDEX i0 ON t0(1); -- UNIQUE constraint failed: index 'i0'",
"CREATE UNIQUE INDEX i0 ON t0(1); -- database disk image is malformed"
],
"title": "Malformed image when using no journal mode, zero cache size, and failing when creating an index"
},
{
"date": "18/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://sqlite.org/src/info/787fa716be3a7f650c",
"fix": "https://sqlite.org/src/info/778b1224a318d013"
},
"oracle": "crash",
"reporter": "Manuel Rigger",
"severity": "Severe",
"status": "fixed",
"test": [
"CREATE TABLE t0 (c0, c1, PRIMARY KEY (c0, c1));",
"CREATE TABLE t1 (c0);",
"INSERT INTO t1 VALUES (2);",
"SELECT * FROM t0, t1 WHERE (t0.c1 >= 1 OR t0.c1 < 1) AND t0.c0 IN (1, t1.c0) ORDER BY 1; -- results in a segfault"
],
"title": "Query results in a SEGFAULT"
},
{
"comment": "This bug report resulted in a change of the accepted SQL dialect, disallowing strings in double quotes when creating indexes.",
"date": "19/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview/9b78184be266fd7084e9e8038ad631a21b37eb9e",
"fix1": "https://www.sqlite.org/src/info/1685610e",
"fix2": "https://www.sqlite.org/src/info/3e1b55f3ab85710e"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Cosmetic",
"status": "fixed",
"test": [
"CREATE TABLE t0(c1, c2);",
"INSERT INTO t0(c1, c2) VALUES ('a', 1);",
"CREATE INDEX i0 ON t0(\"C3\");",
"ALTER TABLE t0 RENAME COLUMN c1 TO c3;",
"SELECT DISTINCT * FROM t0; -- fetches C3|1 rather than a|1"
],
"title": "Index on non-existing column results in a fabricated value being fetched"
},
{
"comment": "This bug uncovered that the compiler somtimes confuses x IS TRUE with x IS FALSE, and the other way around.",
"date": "19/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=d3e7f2ba5b",
"fix": "https://www.sqlite.org/src/info/99eba69b3a64741c"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Important",
"status": "fixed",
"test": [
"CREATE TABLE t0(c0);",
"INSERT INTO t0(c0) VALUES ('val');",
"SELECT * FROM t0 WHERE (((0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 IN (-1)))) IS 0); -- fetches no row"
],
"title": "Nested boolean formula with IN operator computes an incorrect result"
},
{
"date": "21/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview/b5ca442af9fadf5eff5b2bf64839516ab82cfc3d",
"fix": "https://www.sqlite.org/src/info/b8071d10cba8f6c1"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"severity": "Cosmetic",
"status": "fixed",
"test": [
"CREATE TABLE IF NOT EXISTS t0(c0);",
"INSERT INTO t0(c0) VALUES (-9223372036854775808);",
"BEGIN TRANSACTION;",
"CREATE INDEX i0 ON t0(ABS(c0)); -- integer overflow (expected)",
"COMMIT; -- unexpected: the index is still created",
"CREATE INDEX i0 ON t0(1); -- malformed database schema (i0) - index i0 already exists"
],
"title": "\"Malformed database schema\" when creating a failing index within a transaction"
},
{
"date": "25/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=4c2d7639f0",
"fix": "https://www.sqlite.org/src/info/67a68af5578f08d2"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Minor",
"status": "fixed",
"test": [
"SELECT CAST('-' AS NUMERIC); -- unexpected: computes 0.0 rather than 0"
],
"title": "CAST('-' AS NUMERIC) computes 0.0"
},
{
"date": "25/5/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=e8bedb2a18",
"fix": "https://www.sqlite.org/src/info/67a68af5578f08d2"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Minor",
"status": "fixed",
"test": [
"SELECT '' - 2851427734582196970; -- actual: -2851427734582196736, expected: -2851427734582196970"
],
"title": "Incorrect result when subtracting a large integer number from a TEXT value"
},
{
"date": "08/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview/dd6bffbfb6e61db9ecc9ea833d586427961ccc9d",
"fix": "https://www.sqlite.org/src/info/c0c90961b4fa1c11"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Minor",
"status": "fixed",
"test": [
"CREATE TABLE t0 (c0 TEXT);",
"INSERT INTO t0(c0) VALUES ('1.0');",
"SELECT CAST(c0 AS NUMERIC) FROM t0; -- expected: 1, actual: 1.0"
],
"title": "CAST to NUMERIC no longer converts to INTEGER"
},
{
"date": "10/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview/fd76310a5e843e074a30ed98b859dd0be11d0276",
"fix": "https://sqlite.org/src/info/567b13093956185b"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"severity": "Critical",
"status": "fixed",
"test": [
"CREATE TABLE t0(c0);",
"CREATE INDEX i0 ON t0('1' IN ());",
"ALTER TABLE t0 RENAME TO t1; -- error in index i0: no such column: 1"
],
"title": "TEXT value interpreted as column name in an index with empty list in an IN expression"
},
{
"date": "10/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=b1d8c79314",
"fix": "https://sqlite.org/src/info/94b58ab059cba977"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Critical",
"status": "fixed",
"test": [
"CREATE TABLE t0(c0 INT PRIMARY KEY COLLATE NOCASE);",
"INSERT INTO t0 VALUES (' 1-');",
"SELECT * FROM t0 WHERE t0.c0 LIKE ' 1-'; -- expected: ' 1-', actual: no row is fetched"
],
"title": "LIKE malfunctions for INT PRIMARY KEY COLLATE NOCASE column"
},
{
"date": "10/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=533010b8ca",
"fix": "https://www.sqlite.org/src/info/71643deb"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"severity": "Critical",
"status": "fixed",
"test": [
"CREATE TABLE t1 (c0);",
"CREATE INDEX i0 ON t1((LIKELIHOOD(c0, 100) IN ())); -- unexpected: no error",
"ALTER TABLE t1 RENAME COLUMN c0 TO c1; -- error occurs only here: second argument to likelihood() must be a constant between 0.0 and 1.0"
],
"title": "Illegal argument to LIKELIHOOD() does not result in error when combined with \"IN ()\""
},
{
"date": "10/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=412bba9b22",
"fix": "https://www.sqlite.org/src/info/57050162294efec9"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Minor",
"status": "fixed",
"test": [
"SELECT -'.'; -- expected: 0, actual: 0.0"
],
"title": "CAST('.' AS NUMERIC) computes 0.0 rather than 0"
},
{
"date": "10/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview/d60b3cd7cb0bdff8ff39f76c9faf16ba2efa442f",
"fix": "https://www.sqlite.org/docsrc/info/722f0828b3074e89"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Minor",
"status": "fixed (in documentation)",
"test": [
"SELECT ((CAST(1 as INT)) COLLATE BINARY) == '1'; -- expected: 0, actual: 1"
],
"title": "COLLATE expression has an affinity"
},
{
"date": "10/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview/533010b8cacebe82533a8cd4e230fbb819565115",
"fix": "https://www.sqlite.org/src/info/04bd5cb73287f926"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"severity": "Critical",
"status": "fixed",
"test": [
"CREATE TABLE t0(c0);",
"CREATE INDEX i0 ON t0(((LIKELIHOOD(1, 2)) AND ((1 IN ())))); -- unexpected: no error",
"ALTER TABLE t0 RENAME TO t1; -- -- error occurs only here: second argument to likelihood() must be a constant between 0.0 and 1.0"
],
"title": "Another case of Illegal argument to LIKELIHOOD() does not result in error when combined with \"IN ()\""
},
{
"date": "11/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=1819598c09",
"fix": "https://www.sqlite.org/docsrc/info/e0f700bb6c8142c5"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Critical",
"status": "fixed (in documentation)",
"test": [
"SELECT -'1.0'; -- expected: -1, actual: -1.0"
],
"title": "-'1.0' computes -1.0 rather than -1"
},
{
"date": "11/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=57353f8243",
"fix": "https://www.sqlite.org/src/info/0f748fe58bbbb7ce"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Minor",
"status": "fixed",
"test": [
"SELECT (1 IN (CAST('1' as TEXT) COLLATE NOCASE)); -- expected: 0, actual: 1"
],
"title": "COLLATE expression in the right side of an IN operator results in an affinity conversion"
},
{
"date": "11/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=afdc5a29dc",
"fix": "https://www.sqlite.org/docsrc/info/7a51b32537ac7e95"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Minor",
"status": "fixed (in documentation)",
"test": [
"SELECT CAST('8.2250617031974513E18' AS NUMERIC); -- expected: 8225061703197451300, unexpected: 8.22506170319745e+18"
],
"title": "Lossless conversion when casting a large TEXT number to NUMERIC is not performed"
},
{
"date": "11/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=0c620df60b",
"fix": "https://www.sqlite.org/src/info/614ecb0af4703884"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Minor",
"status": "fixed",
"test": [
"SELECT LIKELY(CAST(1 AS INT)) = '1'; -- expected: 0, actual: 1",
"SELECT UNLIKELY(CAST(1 AS INT)) = '1'; -- expected: 0, actual: 1",
"SELECT LIKELIHOOD(CAST(1 AS INT), 0.5) = '1'; -- expected: 0, actual: 1"
],
"title": "LIKELY(), UNLIKELY() and LIKELIHOOD() have affinities"
},
{
"date": "12/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=4d01eda811",
"fix": "https://www.sqlite.org/src/info/5c6146b56a75a94f"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Critical",
"status": "fixed",
"test": [
"SELECT 0.5 IS TRUE COLLATE NOCASE; -- expected: 1, actual: 0",
"SELECT 0.5 IS TRUE COLLATE RTRIM; -- expected: 1, actual: 0",
"SELECT 0.5 IS TRUE COLLATE BINARY; -- expected: 1, actual: 0"
],
"title": "IS TRUE operator malfunctions with COLLATE and REAL value"
},
{
"comment": "Opening this bug report also (indirectly) caused a discussion on the mailing list on how -0.0 should be printed by SQLite, with over 50 replies (see http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-users/2019-June/084857.html).",
"date": "12/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview/674385aeba91c774d47736f1aefd259b074dc5d3",
"fix": "https://www.sqlite.org/src/info/491f0f9bbddb6302"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Minor",
"status": "fixed",
"test": [
"SELECT CAST('-0.0' AS NUMERIC); -- expected: 0, unexpected: 0.0"
],
"title": "CAST('-0.0' AS NUMERIC) computes 0.0 rather than 0"
},
{
"date": "12/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=b148fa6105",
"fix": "https://www.sqlite.org/docsrc/info/9f887f15e57978df"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Minor",
"status": "fixed (in documentation)",
"test": [
"CREATE TABLE t0(c0 COLLATE NOCASE);",
"INSERT INTO t0(c0) VALUES ('a');",
"SELECT * FROM t0 WHERE CAST(t0.c0 AS TEXT) = 'A'; -- expected: no row is fetched, actual: a"
],
"title": "CAST takes implicit COLLATE of its operand"
},
{
"date": "14/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=ce8717f088",
"fix": "https://www.sqlite.org/src/info/b4a9e09e60213ccf"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Severe",
"status": "fixed",
"test": [
"CREATE TABLE t0(c0 INT UNIQUE COLLATE NOCASE);",
"INSERT INTO t0(c0) VALUES ('.1%');",
"SELECT * FROM t0 WHERE t0.c0 LIKE '.1%'; -- expected: '.1%', actual: no row is fetched"
],
"title": "LIKE malfunctions for UNIQUE COLLATE NOCASE column"
},
{
"comment": "This problem has existing in the RTRIM collating sequence since it was first introduced in 2008.",
"date": "14/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=f1580ba1b5",
"fix": "https://www.sqlite.org/src/info/86fa0087cd1f5c79"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Important",
"status": "fixed",
"test": [
"CREATE TABLE t0(c0 COLLATE RTRIM, c1 BLOB UNIQUE, PRIMARY KEY (c0, c1)) WITHOUT ROWID;",
"INSERT INTO t0 VALUES (123, 3), (' ', 1), ('\t', 2), ('', 4);",
"SELECT * FROM t0 WHERE c1 = 1; -- expected: ' ', 1, actual: no row is fetched"
],
"title": "Built-in RTRIM collating sequence yields incorrect comparisons"
},
{
"date": "15/06/2019",
"dbms": "MySQL",
"links": {
"bugtracker": "https://bugs.mysql.com/bug.php?id=95820"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"status": "verified",
"test": [
"CREATE TABLE t0(c0 INT UNIQUE, c1 INT, c2 INT UNIQUE) ENGINE = MyISAM;",
"INSERT INTO t0(c0) VALUES(DEFAULT), (\"\");",
"INSERT IGNORE INTO t0(c2) VALUES(\"a\");",
"REPLACE INTO t0(c1, c0, c2) VALUES(1, DEFAULT, DEFAULT), (DEFAULT, \"a\", \"a\");",
"REPAIR TABLE t0 QUICK EXTENDED USE_FRM;",
"SELECT * FROM t0; -- unexpected: Table 'to' is marked as crashed and last (automatic?) repair failed"
],
"title": "REPAIR TABLE on a functional table marks it as crashed"
},
{
"date": "16/06/2019",
"dbms": "SQLite",
"links": {
"bugtracker": "https://www.sqlite.org/src/tktview?name=e1e07ef202",
"fix": "https://www.sqlite.org/src/info/54110870487f7801"
},
"oracle": "PQS",
"reporter": "Manuel Rigger",
"severity": "Important",
"status": "fixed",
"test": [
"CREATE TABLE t0 (c3 TEXT);",
"INSERT INTO t0(c3) VALUES ('0');",
"SELECT * FROM t0 WHERE (t0.c3 COLLATE NOCASE) BETWEEN 1 AND '5'; -- expected: no row is fetched, actual: row is fetched"
],
"title": "COLLATE in BETWEEN expression is ignored"
},
{
"date": "18/06/2019",
"dbms": "MySQL",
"links": {
"bugtracker": "https://bugs.mysql.com/bug.php?id=95856"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"status": "verified",
"test": [
"CREATE TABLE t0(c0 INT UNIQUE, c1 INT, c2 INT, c3 INT UNIQUE) ENGINE = MyISAM;",
"INSERT INTO t0(c0) VALUES(DEFAULT), (\"a\");",
"INSERT IGNORE INTO t0(c3) VALUES(\"a\"), (1);",
"REPLACE INTO t0(c1, c0, c3) VALUES(1, 2, 3), (1, \"a\", \"a\");",
"SELECT (NULL) IN (SELECT t0.c3 FROM t0 WHERE t0.c0);"
],
"title": "\"Can't find record\" error in SELECT statement 1 (MyISAM engine)"
},
{
"date": "18/06/2019",
"dbms": "MySQL",
"links": {
"bugtracker": "https://bugs.mysql.com/bug.php?id=95866"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"status": "verified",
"test": [
"CREATE TABLE t0(c0 INT UNIQUE) ENGINE = HEAP;",
"INSERT INTO t0(c0) VALUES (DEFAULT), (\"a\"), (\"a\");",
"SELECT (NULL) IN (SELECT t0.c0 FROM t0 WHERE ((t0.c0) OR TRUE) IS NULL); -- unexpected: ERROR 1032 (HY000): Can't find record in 't0'"
],
"title": "\"Can't find record\" error in SELECT statement 2 (HEAP engine)"
},
{
"date": "20/06/2019",
"dbms": "MySQL",
"links": {
"bugtracker": "https://bugs.mysql.com/bug.php?id=95889"
},
"oracle": "error",
"reporter": "Manuel Rigger",
"status": "fixed",
"test": [
"CREATE TABLE t0(c0 INT UNSIGNED);",
"INSERT INTO t0(c0) VALUES(4294967294);",
"CREATE INDEX i0 ON t0((ABS(t0.c0))); -- unexpected: ERROR 3752 (22003): Value is out of range for functional index 'i0'"