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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
|
TEMP
TRIGGER
UNION
VACUUM
VIEW
VIRTUAL
HLR H42010
The SQLite parser shall accept BEGIN statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= BEGIN transaction_type transaction_name.
transaction_type ::= .
transaction_type ::= DEFERRED.
transaction_type ::= IMMEDIATE.
transaction_type ::= EXCLUSIVE.
transaction_name ::= .
transaction_name ::= TRANSACTION.
transaction_name ::= TRANSACTION name.
</pre></blockquote>
HLR H42012
A token received by the parser shall be converted into an ANY token
if the original token value would have resulted in a syntax error
and if a token value of ANY will allow the parse to continue.
HLR H42013
The successful evaluation of a BEGIN statement shall
cause the [database connection] to exit autocommit mode.
HLR H42016
The evaluation of a BEGIN TRANSACTION statement shall fail with an error
if the [database connection] is not in autocommit mode at the
start of evaluation.
HLR H42019
If the <i>transaction_type</i> keyword is omitted from a
BEGIN TRANSACTION statement then the behavior shall be the same
as if the DEFERRED keyword were used.
HLR H42022
When the DEFERRED keyword appears in a BEGIN statement
the locking state of the underlying database files shall be
the same before and after the statement is evaluated.
HLR H42025
When the IMMEDIATE keyword appears in a BEGIN statement
then successful evaluation of the statement shall cause a RESERVED
lock to be obtained for all underlying database files.
HLR H42028
When the EXCLUSIVE keyword appears in a BEGIN statement
then successful evaluation of the statement shall cause a EXCLUSIVE
lock to be obtained for all underlying database files.
HLR H42110
SQLite shall accept the following COMMIT statement syntax:
<blockquote><pre>
cmd ::= COMMIT transaction_name.
cmd ::= END transaction_name.
</pre></blockquote>
HLR H42113
The successful evaluation of COMMIT statement places the
[database connection] in autocommit mode.
HLR H42116
If a [database connection] is already in autocommit mode when
a COMMIT statement is evaluated, then the statement shall fail
with an error.
HLR H42210
The SQLite parser shall accept ROLLBACK statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= ROLLBACK transaction_name.
</pre></blockquote>
HLR H42213
The successful evaluation of ROLLBACK statement places the
[database connection] in autocommit mode.
HLR H42216
If a [database connection] is already in autocommit mode when
a ROLLBACK statement is invoked, then the statement invocation
shall fail with an error.
HLR H42222
Other pending statements on the same [database connection]
as a successfully evaluated ROLLBACK statement shall be aborted.
HLR H42225
The successful evaluation of a ROLLBACK statement causes the
current transaction on the [database connection] to roll back.
HLR H42310
The SQLite parser shall accept CREATE TABLE statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= CREATE temp TABLE ifnotexists fullname table_definition.
temp ::= .
temp ::= TEMP.
ifnotexists ::= .
ifnotexists ::= IF NOT EXISTS.
</pre></blockquote>
HLR H42313
When the TEMP keyword appears in a CREATE TABLE statement and the
<i>databasename</i> exists and is something other than "temp", then
the preparation of the CREATE TABLE statement shall fail with an error.
HLR H42316
When the TEMP keyword appears in a CREATE TABLE statement the behavior
shall be as if the <i>databasename</i> where "temp".
HLR H42319
The successful evaluation of a CREATE TABLE statement shall cause
a new SQL table whose name is given by the <i>objectname</i> to be
created in the schema of the database whose name is given by the
<i>databasename</i>.
HLR H42322
If a CREATE TABLE statement specifies no <i>databasename</i> and omits
the TEMP keyword then the behavior shall be as if a <i>databasename</i>
of "main" where used.
HLR H42325
The preparation of a CREATE TABLE statement shall fail with an
error if the IF NOT EXISTS clause is omitted and the <i>objectname</i>
is the same as the name of a table or view
in the same database.
HLR H42328
The evaluation of a CREATE TABLE statement shall be a silent no-op if the
IF NOT EXISTS clause is present and the <i>objectname</i>
is the same as the name of a table or view
in the same database.
HLR H42331
The preparation of a CREATE TABLE statement shall fail with an error if the
the <i>objectname</i> is the same as the name of an index
in any database attached to the same [database connection].
HLR H42334
The preparation of a CREATE TABLE statement shall fail with an error if the
the <i>databasename</i> references a database that is not
attached to the same [database connection].
HLR H42410
The SQLite parser shall accept the following syntax for the
<i>table_definition</i> section of a CREATE TABLE statement:
<blockquote><pre>
table_definition ::= LP columnlist constraint_opt RP.
columnlist ::= column.
columnlist ::= columnlist COMMON column.
constraint_opt ::= .
constraint_opt ::= COMMA constraint_list.
</pre></blockquote>
HLR H42413
The SQLite parser shall accept the following syntax
for the <i>column</i> component of a <i>table_definition</i>.
<blockquote><pre>
column ::= name column_type column_constraint_list.
column_type ::= .
column_type ::= typename.
column_type ::= typename LP signed_int RP.
column_type ::= typename LP signed_int COMMA signed_int RP.
typename ::= identifier.
typename ::= typename identifier.
signed_int ::= INTEGER.
signed_int ::= MINUS INTEGER.
signed_int ::= PLUS INTEGER.
</pre></blockquote>
HLR H42416
The preparation of an ordinary [CREATE TABLE] statement shall fail
with an error if it specifies two or more columns with the same name.
HLR H42419
The datatype affinity of each column in a table generate by an
ordinary [CREATE TABLE] statement
shall be determined from the <i>column_type</i>
text using the following 5-step algorithm:
<ol>
<li><p> If the <i>column_type</i> contains the string "INT"
then the affinity is INTEGER.</p></li>
<li><p> Else if the <i>column_type</i> contains one of the strings
"CHAR", "CLOB", or "TEXT" then the affinity is TEXT. </p></li>
<li><p> Else if the <i>column_type</i> contains the string "BLOB"
or is omitted then the affinity is NONE. </p></li>
<li><p> Else if the <i>column_type</i> constains one of the strings
"REAL", "FLOA", or "DOUB" then the affinity
is REAL. </p></li>
<li><p> Otherwise the affinity is NUMERIC. </p></li>
</ol>
HLR H42450
The SQLite parser shall accept the following syntax for the list of column
constraints and modifiers that follows a column definition in
an ordinary [CREATE TABLE] statement.
<blockquote><pre>
column_constraint_list ::= .
column_constraint_list ::= column_constraint_list named_column_constraint.
named_column_constraint ::= CONSTRAINT name column_constraint.
named_column_constraint ::= column_constraint.
column_constraint ::= DEFAULT term.
column_constraint ::= DEFAULT identifier.
column_constraint ::= DEFAULT PLUS term.
column_constraint ::= DEFAULT MINUS term.
column_constraint ::= DEFAULT LP expr RP.
column_constraint ::= NULL conflict.
column_constraint ::= NOT NULL conflict.
column_constraint ::= PRIMARY KEY sortorder conflict autoincr.
column_constraint ::= UNIQUE conflict.
column_constraint ::= CHECK LP expr RP.
column_constraint ::= COLLATE identifier.
column_constraint ::= foreign_key_constraint.
column_constraint ::= deferrable_constraint.
autoincr ::= .
autoincr ::= AUTOINCR.
indexlist_opt ::= .
indexlist_opt ::= LP indexlist RP.
conflict ::= .
conflict ::= ON CONFLICT IGNORE.
conflict ::= ON CONFLICT REPLACE.
conflict ::= ON CONFLICT ABORT.
conflict ::= ON CONFLICT FAIL.
conflict ::= ON CONFLICT ROLLBACK.
</pre></blockquote>
HLR H42453
When a column as a DEFAULT constraint, the default value for the
column shall be the value specified by that constraint.
HLR H42456
If a column has no DEFAULT constraint then the default value for
that column shall be NULL.
HLR H42459
If a column has no NOT NULL constraint then the NULL conflict
resolution behavior for the column shall be NONE.
HLR H42462
If a column has a NOT NULL constraint and that constrait lacks
an ON CONFLICT clause
then the null-conflict resolution behavior for the column shall
be ABORT.
HLR H42465
If a column has a NOT NULL constraint and that constraint
has an ON CONFLICT clause
then the null-conflict resolution behavior for the column shall
be the behavior specified by the ON CONFLICT clause.
HLR H42467
A column without a COLLATE constraint shall have a default
collating sequence of BINARY.
HLR H42468
A column with a COLLATE constraint shall have a default
collating sequence as specified by the COLLATE constraint.
HLR H42470
If the datatype of a single-column PRIMARY KEY is
exactly "INTEGER" then the name of that column shall be
an alias for the table rowid.
HLR H42472
If a table contains no column named "ROWID" then "ROWID" shall be
an alias for the table rowid.
HLR H42474
If a table contains no column named "OID" then "OID" shall be
an alias for the table rowid.
HLR H42476
If a table contains no column named "_ROWID_" then "_ROWID_" shall be
an alias for the table rowid.
HLR H42478
A table shall have an autoincrementing rowid if and only if
the PRIMARY KEY for the table is an alias for the rowid and
the PRIMARY KEY declaration uses the AUTOINCR keyword.
HLR H42480
Successful evaluation of a CREATE TABLE statement shall create
an index for every UNIQUE constraint where the created index has
a conflict resolution algorithm as specified by the ON CONFLICT
clause of the UNIQUE constraint or a conflict resolution algorithm
of ABORT if there is no ON CONFLICT clause on the constraint.
HLR H42510
The SQLite parser shall accept the following syntax for the list of table
contraints that occurs at the end of an ordinary [CREATE TABLE] statement.
<blockquote><pre>
constraint_list ::= constraint.
constraint_list ::= constraint_list constraint.
constraint_list ::= constraint_list COMMA constraint.
constraint ::= CHECK LP expr RP conflict.
constraint ::= CONSTRAINT name.
constraint ::= FOREIGN KEY LP columnlist RP foreign_key_constraint defer_opt.
constraint ::= PRIMARY KEY LP indexlist autoinc RP conflict.
constraint ::= UNIQUE LP indexlist RP conflict.
</pre></blockquote>
HLR H42513
The preparation of a CREATE TABLE statement that contains more
than one PRIMARY KEY constraint shall fail with an error.
HLR H42516
The preparation of a CREATE TABLE statement that contains a
CHECK constraint that uses a subquery shall fail with an error.
HLR H42517
The preparation of a CREATE TABLE statement that contains a
CHECK constraint that uses a parameter shall fail with an error.
HLR H42518
Name resolution of the <i>expr</i> with each CHECK constraint of
a CREATE TABLE statement shall be carried out using a name context
with an empty result set and a source set holding
single source element that is the
table being created.
HLR H42521
The preparation of a CREATE TABLE statement that contains a
DEFAULT constraint with an non-constant expression
shall fail with an error.
HLR H42536
A PRIMARY KEY constraint that does not result in a rowid alias
shall have the same effect as a UNIQUE constraint.
HLR H42539
Preparation of a CREATE TABLE statement shall fail with an
error if the <i>indexlist</i> of either a table PRIMARY KEY
or a table UNIQUE constraint references a column that is not
a column in the table.
HLR H42570
The SQLite parser shall accept the following syntax for a foreign
key constraint as either a separate constraint or as part of a
column constraint in an ordinary [CREATE TABLE] statement.
<blockquote><pre>
foreign_key_constraint ::= REFERENCES name indexlist_opt fkarglist.
defer_opt ::= .
defer_opt ::= deferrable_constraint.
deferrable_constraint ::= NOT DEFERRABLE initially_deferred_clause.
deferrable_constraint ::= DEFERRABLE initially_deferred_clause.
fkarglist ::= .
fkarglist ::= fkarglist fkarg.
fkarg ::= MATCH name.
fkarg ::= ON DELETE fkaction.
fkarg ::= ON UPDATE fkaction.
fkarg ::= ON INSERT fkaction.
fkaction ::= SET NULL.
fkaction ::= SET DEFAULT.
fkaction ::= CASCADE.
fkaction ::= RESTRICT.
initially_deferred_clause ::= .
initially_deferred_clause ::= INITIALLY DEFERRED.
initially_deferred_clause ::= INITIALLY IMMEDIATE.
</pre></blockquote>
HLR H42610
The SQLite parser shall accept the following syntax for creating new
database tables from the result set of SELECT statements.
<blockquote><pre>
table_definition ::= AS select.
</pre></blockquote>
HLR H42613
The table generated by a CREATE TABLE AS statement shall have the
same number of columns as the result set of the SELECT.
HLR H42616
The names of the columns in a table generated by a CREATE TABLE AS
statement shall have base names which are the names of the columns
in the result set of the SELECT statement
HLR H42617
Each column name in a table generated by a CREATE TABLE AS
statement shall have an arbitrary suffix appended to its basename
if and only if such a suffix is necessary to make the name
distinct from all preceding column names in the table.
HLR H42619
All columns in a table generated by a CREATE TABLE AS statement
shall have a default value of NULL.
HLR H42622
All columns in a table generated by a CREATE TABLE AS statement
shall have a NULL conflict resolution behavior of NONE.
HLR H42625
All columns in a table generated by a CREATE TABLE AS statement
shall have an affinity of NONE.
HLR H42628
All columns in a table generated by a CREATE TABLE AS statement
shall have a default collating sequence of BINARY.
HLR H42700
The SQLite parser shall accept DROP TABLE statements
that conform to the following syntax.
<blockquote><pre>
cmd ::= DROP TABLE ifexists fullname.
ifexists ::= .
ifexists ::= IF EXISTS.
</pre></blockquote>
HLR H42710
The preparation of a DROP TABLE statement shall fail with an
error if the statement lacks an IF EXISTS clause and the
<i>fullname</i> does not reference a existing table.
HLR H42713
The evaluation of a DROP TABLE statement shall be a silent no-op
if the the statement has an IF EXISTS clause and the
<i>fullname</i> does not reference a existing table.
HLR H42716
The successful evaluation of a DROP TABLE statement shall cause
the table identified by <i>fullname</i> to be removed from its
database and discarded.
HLR H42719
The successful evaluation of a DROP TABLE statement shall cause
all indices attached to the table identified by <i>fullname</i>
to be removed from their database and discarded.
HLR H42721
The successful evaluation of a DROP TABLE statement shall cause
all triggers attached to the table identified by <i>fullname</i>
to be removed from their database and discarded.
HLR H42724
The preparation of a DROP TABLE statement shall fail with an
error if <i>fullname</i> is a system table.
HLR H42800
The SQLite parser shall accept CREATE INDEX statements that
conform to the following syntax:
<blockquote><pre>
cmd ::= CREATE unique INDEX ifnotexists fullname ON tablename LP indexlist RP.
tablename ::= name.
indexlist ::= indexlist COMMA columnname collate sortorder.
indexlist ::= columnname collate sortorder.
columnname ::= name.
collate ::= .
collate ::= COLLATE identifier.
sortorder ::= .
sortorder ::= ASC.
sortorder ::= DESC.
</pre></blockquote>
HLR H42803
The target database of a CREATE INDEX statement shall be the
<i>databasename</i> specified in the <i>fullname</i> term of the
statement if the <i>databasename</i> exists.
HLR H42806
If the <i>fullname</i> term of a CREATE INDEX statement does not
specify a <i>databasename</i> and the <i>tablename</i> references a table
that is in the "temp" database, then the target database for the statement
shall be "temp".
HLR H42809
If the <i>fullname</i> term of a CREATE INDEX statement does not
specify a <i>databasename</i> and the <i>tablename</i> references a table
that is not in the "temp" database, then the target database for the
statement shall be "main".
HLR H42812
The preparation of a CREATE INDEX statement shall fail with an error if the
<i>databasename</i> of the <i>fullname</i> exists and references a database
that is not attached to the same [database connection].
HLR H42815
The preparation of a CREATE INDEX statement shall fail with an error if the
<i>tablename</i> does not reference an ordinary table in the
database of the statement.
HLR H42818
A successful evaluation of a CREATE INDEX statement shall create a
new index called <i>objectname</i>
in the database of the statement and attached to the
table identified by <i>tablename</i> in that same database.
HLR H42821
An index generated by a CREATE INDEX statement that omits the
UNIQUE keyword shall have a conflict resolution behavior
of NONE.
HLR H42824
An index generated by a CREATE INDEX statement that includes the
UNIQUE keyword shall have a conflict resolution behavior
of ABORT.
HLR H42830
The preparation of a CREATE INDEX statement shall fail with an error if any
<i>columnname</i> value within the <i>indexlist</i> is not the
name of one of the columns of the <i>tablename</i> table.
HLR H42833
The collating sequence for each column of an index shall be the
collating sequence specified in the <i>indexlist</i>.
HLR H42836
If an index column does not specify a collating sequence then
the collating sequence shall be
the default collating sequence of the corresponding table column.
HLR H42839
The sort order for an index column shall be descending if and only
if the DESC keyword is used in the <i>indexlist</i> entry for that
term.
HLR H42842
The preparation of a CREATE INDEX statement shall fail with an error
if the <i>tablename</i> refers to a system table.
HLR H42900
The SQLite parser shall accept DROP INDEX statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= DROP INDEX ifexists fullname.
</pre></blockquote>
HLR H42910
The preparation of a DROP INDEX statement shall fail with an
error if the statement lacks an IF EXISTS clause and the
<i>fullname</i> does not reference a existing index.
HLR H42913
The evaluation of a DROP INDEX statement shall be a silent no-op
if the the statement has an IF EXISTS clause and the
<i>fullname</i> does not reference a existing index.
HLR H42916
The successful evaluation of a DROP INDEX statement shall cause
the index identified by <i>fullname</i> to be removed from its
database and discarded.
HLR H43100
The SQLite parser shall accept CREATE VIEW statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= CREATE temp VIEW ifnotexists fullname AS select.
</pre></blockquote>
HLR H43113
When the TEMP keyword appears in a CREATE VIEW statement and the
<i>databasename</i> exists and is something other than "temp", then
the preparation of the CREATE VIEW statement shall fail with an error.
HLR H43116
When the TEMP keyword appears in a CREATE VIEW statement the behavior
shall be as if the <i>databasename</i> where "temp".
HLR H43119
The successful evaluation of a CREATE VIEW statement shall cause
a new view whose name is given by the <i>objectname</i> and is located
in the schema of the database whose name is given by the
<i>databasename</i>.
HLR H43122
If a CREATE VIEW statement specifies no <i>databasename</i> and omits
the TEMP keyword then the behavior shall be as if a <i>databasename</i>
of "main" where used.
HLR H43125
The preparation of a CREATE VIEW statement shall fail with an
error if the IF NOT EXISTS clause is omitted and the <i>objectname</i>
is the same as the name of a table or view
in the same database.
HLR H43128
The evaluation of a CREATE VIEW statement shall be a silent no-op if the
IF NOT EXISTS clause is present and the <i>objectname</i>
is the same as the name of a table or view
in the same database.
HLR H43131
The preparation of a CREATE VIEW statement shall fail with an error if the
the <i>objectname</i> is the same as the name of an index
in any database attached to the same [database connection].
HLR H43200
The SQLite parser shall accept DROP VIEW statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= DROP VIEW ifexists fullname.
</pre></blockquote>
HLR H43204
The preparation of a DROP VIEW statement shall fail with an
error if the statement lacks an IF EXISTS clause and the
<i>fullname</i> does not reference a existing view.
HLR H43207
The evaluation of a DROP VIEW statement shall be a silent no-op
if the the statement has an IF EXISTS clause and the
<i>fullname</i> does not reference a existing view.
HLR H43211
The successful evaluation of a DROP VIEW statement shall cause
the view identified by <i>fullname</i> to be removed from its
database and discarded.
HLR H43214
The successful evaluation of a DROP VIEW statement shall cause
all triggers attached to the view identified by <i>fullname</i>
to be removed from their database and discarded.
HLR H43234
The preparation of a CREATE VIEW statement shall fail with an error if the
the <i>databasename</i> references a database that is not
attached to the same [database connection].
HLR H43237
The view generated by a CREATE VIEW statement shall have the
same number of columns as the result set of the SELECT.
HLR H43241
The names of the columns in a view generated by a CREATE VIEW
statement shall have base names which are the names of the columns
in the result set of the SELECT statement
HLR H43244
Each column name in a table generated by a CREATE VIEW
statement shall have an arbitrary suffix appended to its basename
if and only if such a suffix is necessary to make the name
distinct from all preceding column names in the view.
HLR H43300
The SQLite parser shall accept CREATE TRIGGER statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= CREATE temp TRIGGER ifnotexists fullname trigger trigger_body.
trigger ::= trigger_time trigger_event foreach_clause when_clause.
trigger_body ::= BEGIN trigger_cmd_list END.
trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI.
trigger_cmd_list ::= trigger_cmd_list.
trigger_cmd ::= DELETE FROM tablename where.
trigger_cmd ::= update_cmd tablename SET setlist where.
trigger_cmd ::= insert_cmd INTO tablename columnlist_opt VALUES LP exprlist RP.
trigger_cmd ::= insert_cmd INTO tablename columnlist_opt select.
trigger_cmd ::= select.
trigger_event ::= DELETE ON trigger_target.
trigger_event ::= INSERT ON trigger_target.
trigger_event ::= UPDATE OF columnlist ON trigger_target.
trigger_event ::= UPDATE ON trigger_target.
trigger_target ::= fullname.
trigger_time ::= AFTER.
trigger_time ::= BEFORE.
trigger_time ::= INSTEAD OF.
trigger_time ::=.
foreach_clause ::= FOR EACH ROW.
foreach_clause ::=.
when_clause ::= WHEN expr.
when_clause ::=.
</pre></blockquote>
HLR H43303
When the TEMP keyword appears in a CREATE TRIGGER statement and the
<i>databasename</i> of the <i>fullname</i> exists
then the preparation of the statement
shall fail with an error.
HLR H43306
When the TEMP keyword appears in a CREATE TRIGGER statement
the target database of the trigger shall be "temp".
HLR H43309
When the TEMP keyword is omitted in a CREATE TRIGGER statement and the
<i>databasename</i> of the <i>fullname</i> is
omitted then the target database of the trigger shall be "main".
HLR H43312
When the <i>databasename</i> of <i>fullname</i> in a CREATE TRIGGER
statement exists, then the target database shall be the database
named by <i>databasename</i>.
HLR H43315
If a CREATE TRIGGER does not specify a <i>trigger_time</i> then
the <i>trigger_time</i> shall be BEFORE.
HLR H43318
The preparation of a CREATE TRIGGER statement shall fail with an error
the <i>trigger_time</i> is INSTEAD OF and <i>trigger_target</i> is not
the name of view in the target database.
HLR H43321
The preparation of a CREATE TRIGGER statement shall fail with an error
the <i>trigger_time</i> is not INSTEAD OF and <i>trigger_target</i> is not
the name of an ordinary table in the target database.
HLR H43324
The preparation of a CREATE TRIGGER statement shall fail with an error
if the <i>trigger_target</i> is a system table.
HLR H43500
The SQLite parser shall accept DROP TRIGGER statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= DROP TRIGGER ifexists fullname.
</pre></blockquote>
HLR H43504
The preparation of a DROP TRIGGER statement shall fail with an
error if the statement lacks an IF EXISTS clause and the
<i>fullname</i> does not reference a existing trigger.
HLR H43507
The evaluation of a DROP TRIGGER statement shall be a silent no-op
if the the statement has an IF EXISTS clause and the
<i>fullname</i> does not reference a existing trigger.
HLR H43511
The successful evaluation of a DROP TRIGGER statement shall cause
the trigger identified by <i>fullname</i> to be removed from its
database and discarded.
HLR H43514
The successful evaluation of a DROP TRIGGER statement shall cause
all triggers attached to the trigger identified by <i>fullname</i>
to be removed from their database and discarded.
HLR H43600
The SQLite parser shall accept CREATE VIRTUAL TABLE statements
that conform to the following syntax.
<blockquote><pre>
cmd ::= CREATE VIRTUAL TABLE fullname USING name vtab_arg_list.
vtab_arg_list ::= .
vtab_arg_list ::= LP vtab_arg_token RP.
vtab_arg_token ::= ANY.
vtab_arg_token ::= LP anylist RP.
anylist ::= .
anylist ::= anylist ANY.
</pre></blockquote>
HLR H43700
The SQLite parser shall accept ALTER TABLE RENAME statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= ALTER TABLE fullname RENAME TO name.
</pre></blockquote>
HLR H43750
The SQLite parser shall accept ALTER TABLE ADD COLUMN statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= ALTER TABLE fullname ADD column_keyword column.
column_keyword ::= .
column_keyword ::= COLUMNKW.
</pre></blockquote>
HLR H43810
The SQLite parser shall accept INSERT statements that
conform to the following syntax:
<blockquote><pre>
cmd ::= insert_cmd INTO fullname columnlist_opt insert_content.
insert_cmd ::= INSERT.
insert_cmd ::= REPLACE.
insert_cmd ::= INSERT OR REPLACE.
insert_cmd ::= INSERT OR IGNORE.
insert_cmd ::= INSERT OR ABORT.
insert_cmd ::= INSERT OR FAIL.
insert_cmd ::= INSERT OR ROLLBACK.
columnlist_opt ::= .
columnlist_opt ::= LP columnlist RP.
columnlist ::= columnname.
columnlist ::= columnlist COMMA columnname.
</pre></blockquote>
HLR H43813
The preparation of an INSERT statement shall fail with an error
if the <i>instcolist</i> contains a reference to a column which
is not a column in the table identified by <i>fullname</i> and is
not one of the special column named "ROWID", "OID", or "_ROWID_".
HLR H43816
The preparation of an INSERT statement shall fail with an error
if <i>fullname</i> does not identify either a view with an
INSTEAD OF INSERT trigger or a table.
HLR H43819
The preparation of an INSERT statement shall fail with an error
if the <i>objectname</i> of the <i>fullname</i> is "sqlite_master"
or "sqlite_temp_master" and the database connection is not in
writeable schema mode.
HLR H43821
When the form of an INSERT statement is simply "INSERT" then the
default null- and uniqueness-conflict resolution algorithms shall
be used.
HLR H43824
When the form of an INSERT statement is simply "REPLACE" then the
null- and uniqueness-conflict resolution algorithms shall all
change to REPLACE.
HLR H43827
When the form of an INSERT statement is "INSERT OR <i>algorithm</i>"
then the null- and uniqueness-conflict resolution algorithms shall all
change to <i>algorithm</i>.
HLR H43831
Name resolution in the <i>insert_content</i> term of an INSERT statement
shall be carried out using a name context
with an empty result set and a source set holding
single source element that is the <i>fullname</i> table.
HLR H43840
The SQLite parser shall accept INSERT VALUE statements that
conform to the following syntax:
<blockquote><pre>
insert_content ::= VALUES LP exprlist RP.
</pre></blockquote>
HLR H43843
The preparation of an INSERT VALUE statement shall fail with an
error if the <i>columnlist</i> element exists and the number of
entries in the <i>instcollist</i> is different
from the number of entries in the <i>exprlist</i>.
HLR H43846
The preparation of an INSERT VALUE statement shall fail with an
error if the <i>columnlist</i> element does not exists and the number of
entries in the <i>exprlist</i> is different
from the number of columns in the table or view identified by
<i>fullname</i>.
HLR H43890
The SQLite parser shall accept INSERT DEFAULT statements that
conform to the following syntax:
<blockquote><pre>
insert_contents ::= DEFAULT VALUES.
</pre></blockquote>
HLR H43900
The SQLite parser shall accept DELETE statements that
conform to the following syntax:
<blockquote><pre>
cmd ::= DELETE FROM fullname where.
where ::= .
where ::= WHERE expr.
</pre></blockquote>
HLR H43904
The preparation of a DELETE statement shall fail with an error if
the <i>fullname</i> element does not identify a view with an
INSTEAD OF DELETE trigger or a table.
HLR H43907
The preparation of a DELETE statement shall fail with an error if
the <i>objectname</i> of the <i>fullname</i> element is "sqlite_master"
or "sqlite_temp_master" and the database connection is not in
writeable_schema mode.
HLR H43911
Name resolution in the <i>where</i> term of a DELETE statement
shall be carried out using a name context
with an empty result set and a source set holding
single source element that is the <i>fullname</i> table.
HLR H44100
The SQLite parser shall accept UPDATE statements that
conform to the following syntax:
<blockquote><pre>
cmd ::= update_cmd fullname SET setlist where.
update_cmd ::= UPDATE.
update_cmd ::= UPDATE OR IGNORE.
update_cmd ::= UPDATE OR REPLACE.
update_cmd ::= UPDATE OR ABORT.
update_cmd ::= UPDATE OR FAIL.
update_cmd ::= UPDATE OR ROLLBACK.
setlist ::= setting.
setlist ::= setlist COMMA setting.
setting ::= columnname EQ expr.
</pre></blockquote>
HLR H44113
The preparation of an UPDATE statement shall fail with an error
if any <i>columnname</i>
is not a column in the table identified by <i>fullname</i> and is
not one of the special columns named "ROWID", "OID", or "_ROWID_".
HLR H44116
The preparation of an UPDATE statement shall fail with an error
if <i>fullname</i> does not identify either a view with an
INSTEAD OF UPDATE trigger that covers all <i>columnname</i>s or a table.
HLR H44119
The preparation of an UPDATE statement shall fail with an error
if the <i>objectname</i> of the <i>fullname</i> is "sqlite_master"
or "sqlite_temp_master" and the database connection is not in
writeable schema mode.
HLR H44121
When the form of an UPDATE statement is simply "UPDATE" then the
default null- and uniqueness-conflict resolution algorithms shall
be used.
HLR H44127
When the form of an UPDATE statement is "UPDATE OR <i>algorithm</i>"
then the null- and uniqueness-conflict resolution algorithms shall all
change to <i>algorithm</i>.
HLR H44131
Name resolution in the <i>where</i> term of a DELETE statement
shall be carried out using a name context
with an empty result set and a source set holding
single source element that is the <i>fullname</i> table.
HLR H44200
The SQLite parser shall accept VACUUM statements that
conform to the following syntax:
<blockquote><pre>
cmd ::= VACUUM.
cmd ::= VACUUM name.
</pre></blockquote>
HLR H44300
The SQLite parser shall accept ANALYZE statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= ANALYZE.
cmd ::= ANALYZE fullname.
</pre></blockquote>
HLR H44303
The preparation of an ANALYZE statement
shall fail with an error if
the <i>fullname</i> is included and does not evaluate to
either an individual table name or the name of a database.
HLR H44400
The SQLite parser shall accept REINDEX statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= REINDEX.
cmd ::= REINDEX fullname.
</pre></blockquote>
HLR H44403
The preparation of an ANALYZE statement
shall fail with an error if
the <i>fullname</i> is included and does not evaluate to
either an individual table name or the name of a database
or the name of a collating sequence.
HLR H44500
cmd ::= ATTACH database_kw expr AS expr.
database_kw ::= .
database_kw ::= DATABASE.
HLR H44503
The <i>expr</i> terms of an ATTACH statement that are
identifiers shall be interpreted as string literals.
HLR H44506
The preparation of an ATTACH statement shall fail with an error
if either <i>expr</i> is not a constant expression.
HLR H44509
The preparation of an ATTACH statement shall fail with an error
if the second <i>expr</i> evaluates to the name of a database
that is already attached to the database connection.
HLR H44600
The SQLite parser shall accept DETACH statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= DETACH database_kw expr.
</pre></blockquote>
HLR H44603
The <i>expr</i> term of an DETACH statement that is an
identifier shall be interpreted as string literals.
HLR H44606
The preparation of an DETACH statement shall fail with an error
if the <i>expr</i> is not a constant expression.
HLR H44609
The preparation of an DETACH statement shall fail with an error
if the <i>expr</i> does not evaluate to the
name of an attached database other than "temp" or "main".
HLR H44700
The SQLite parser shall accept the EXPLAIN keyword as a prefix
to other valid SQL statements, as shown by the following syntax:
<blockquote><pre>
sql_statement ::= EXPLAIN cmd SEMI.
</pre></blockquote>
HLR H44800
The SQLite parser shall accept EXPLAIN QUERY PLAY as a prefix
to other valid SQL statements, as shown by the following syntax:
<blockquote><pre>
sql_statement ::= EXPLAIN QUERY PLAN cmd SEMI.
</pre></blockquote>
HLR H45000
The SQLite parser shall accept SELECT statements that
conform to the following syntax:
<blockquote><pre>
cmd ::= select.
select ::= query.
select ::= select UNION query.
select ::= select UNION ALL query.
select ::= select EXCEPT query.
select ::= select INTERSECT query.
query ::= SELECT distinct resultset from where groupby having orderby limit.
distinct ::= .
distinct ::= DISTINCT.
groupby ::= .
groupby ::= GROUP BY exprlist.
having ::= .
having ::= HAVING expr.
orderby ::= .
orderby ::= ORDER BY exprlist.
limit ::=.
limit ::= LIMIT expr.
limit ::= LIMIT expr COMMA expr.
limit ::= LIMIT expr OFFSET expr.
resultset ::= result.
resultset ::= resultset COMMA result.
result ::= STAR.
result ::= tablename DOT STAR.
result ::= expr as.
from ::= .
from ::= FROM sourceset.
sourceset ::= source.
sourceset ::= sourceset joinop source.
source ::= fullname as on using.
source ::= LP select RP as on using.
as ::= .
as ::= AS name.
as ::= identifier.
on ::= .
on ::= ON expr.
using ::= .
using ::= USING LP columnlist RP.
joinop ::= COMMA.
joinop ::= JOIN.
joinop ::= JOIN_KW JOIN.
joinop ::= JOIN_KW JOIN_KW JOIN.
joinop ::= JOIN_KW JOIN_KW JOIN_KW JOIN.
</pre></blockquote>
HLR H45003
The preparation of a statement containing a <i>select</i>
shall fail with an error if the <i>select</i> contains
two terms of the same compound query having a different number of columns
in their result sets.
HLR H45006
The preparation of a statement containing a <i>select</i>
shall fail with an error if the <i>select</i> contains a compound query that
has an ORDER BY, GROUP BY, HAVING, or LIMIT clause on any term of than
the right-most.
HLR H45009
The preparation of a statement containing a <i>select</i>
shall fail with an error if the <i>select</i> contains a compound query with
an ORDER BY or GROUP BY clause with a term that is not either
a token-by-token duplicate of the result columns of one of the
compound query terms, or the "AS" name of one of the compound
query terms, or a compile-time integer between 1 and N where N is
the number of columns in each compound query term.
HLR H45012
The preparation of a statement containing a <i>select</i>
shall fail with an error if the <i>select</i> contains a join with two
or more of the following properties:
<ol>
<li> The NATURAL keyword in the <i>joinop</i> </li>
<li> An ON clause </li>
<li> A USING clause</li>
</ol>
HLR H45015
The preparation of a statement containing a <i>select</i>
shall fail with an error if the <i>select</i> contains a <i>joinop</i>
that uses the keywords RIGHT or FULL.
HLR H45018
The preparation of a statement containing a <i>select</i>
shall fail with an error if the <i>select</i> contains a <i>joinop</i>
that uses either of the keywords OUTER or LEFT
together with either INNER or CROSS.
HLR H45021
The preparation of a statement containing a <i>select</i>
shall fail with an error if the <i>select</i> contains a <i>using</i>
that names columns that are not found in both the table to the
immediate right of the join and in the result set of all tables
to the left of the join.
HLR H45024
The preparation of a statement containing a <i>select</i>
shall fail with an error if the <i>fullname</i> of a <i>source</i>
does not refer to an existing table or view.
HLR H45027
The preparation of a statement containing a <i>limit</i>
shall fail with an error if any <i>expr</i> within the <i>limit</i>
does not evaluate to a compile-time integer.
HLR H45103
Name resolution of a top-level SELECT statement shall use an
empty name context.
HLR H45106
Name context of a <i>query</i> term shall be
constructed by adding a new inner name context layer
to the name context of the construct containing the <i>query</i>
term.
HLR H45109
Name resolution of the <i>resultset</i> of a <i>query</i> shall
use the name context of the <i>query</i> with an empty result
set and the source set
configured to the <i>from</i> clause of the query.
HLR H45112
Name resolution of all child terms of a <i>query</i> other than
<i>resultset</i> child shall use the name context of the <i>query</i>
with the result set configured to be the <i>resultset</i> clause of the
<i>query</i> and with the source set configured to be the
<i>from</i> clause of the query.
HLR H46000
The SQLite parser shall accept PRAGMA statements
that conform to the following syntax:
<blockquote><pre>
cmd ::= PRAGMA fullname EQ DELETE.
cmd ::= PRAGMA fullname EQ ON.
cmd ::= PRAGMA fullname EQ name.
cmd ::= PRAGMA fullname EQ expr.
cmd ::= PRAGMA fullname LP name RP.
cmd ::= PRAGMA fullname LP expr RP.
cmd ::= PRAGMA fullname.
</pre></blockquote>
HLR H46003
The evaluation of a PRAGMA statement with an unknown verb shall
be a silent no-op.
HLR H47000
The SQLite parser shall accept expressions that
conform to the following syntax:
<blockquote><pre>
expr ::= BITNOT expr.
expr ::= CASE case_operand case_exprlist case_else END.
expr ::= CAST LP expr AS typetoken RP.
expr ::= EXISTS LP select RP.
expr ::= function_name LP STAR RP.
expr ::= function_name LP distinct exprlist RP.
expr ::= LP expr RP.
expr ::= LP select RP.
expr ::= MINUS expr.
expr ::= NOT expr.
expr ::= PLUS expr.
expr ::= RAISE LP IGNORE RP.
expr ::= RAISE LP ABORT COMMA name RP.
expr ::= RAISE LP FAIL COMMA name RP.
expr ::= RAISE LP ROLLBACK COMMA name RP.
expr ::= VARIABLE.
expr ::= expr AND expr.
expr ::= expr BITAND expr.
expr ::= expr BITOR expr.
expr ::= expr LSHIFT expr.
expr ::= expr RSHIFT expr.
expr ::= expr COLLATE ids.
expr ::= expr CONCAT expr.
expr ::= expr EQ expr.
expr ::= expr NE expr.
expr ::= expr IS NOT NULL.
expr ::= expr IS NULL.
expr ::= expr ISNULL
expr ::= expr NOTNULL.
expr ::= expr LT expr.
expr ::= expr GT expr.
expr ::= expr GE expr.
expr ::= expr LE expr.
expr ::= expr NOT NULL.
expr ::= expr OR expr.
expr ::= expr PLUS expr.
expr ::= expr MINUS expr.
expr ::= expr STAR expr.
expr ::= expr SLASH expr.
expr ::= expr REM expr.
expr ::= expr BETWEEN expr AND expr.
expr ::= expr NOT BETWEEN expr AND expr.
expr ::= expr IN LP exprlist RP.
expr ::= expr IN LP select RP.
expr ::= expr IN fullname.
expr ::= expr NOT IN LP exprlist RP.
expr ::= expr NOT IN LP select RP.
expr ::= expr NOT IN fullname.
expr ::= expr LIKE_KW expr escape.
expr ::= expr MATCH expr escape.
expr ::= expr NOT LIKE_KW expr escape.
expr ::= expr NOT MATCH expr escape.
expr ::= rtvalue.
expr ::= term.
term ::= CTIME_KW.
term ::= INTEGER.
term ::= FLOAT
term ::= BLOB.
term ::= NULL.
term ::= STRING.
exprlist ::= expr.
exprlist ::= exprlist COMMA expr.
case_else ::= ELSE expr.
case_else ::= .
case_exprlist ::= WHEN expr THEN expr.
case_exprlist ::= case_exprlist WHEN expr THEN expr.
case_operand ::= expr.
case_operand ::= .
function_name ::= ID.
escape ::= .
escape ::= ESCAPE expr.
</pre></blockquote>
HLR H47003
The unary PLUS, unary MINUS, and BITNOT operators shall have
precedence over the COLLATE operator.
HLR H47006
The COLLATE operator shall have precedence over the CONCAT
operator.
HLR H47009
The CONCAT operator shall have precedence over the STAR, SLASH,
and REM operators.
HLR H47012
The STAR, SLASH, and REM operator shall have equal precedence.
HLR H47015
The STAR, SLASH, and REM operators shall have precedence over the
binary PLUS and binary MINUS operators.
HLR H47018
The binary PLUS and binary MINUS operators shall have equal precedence.
HLR H47021
The binary PLUS and binary MINUS operators shall have precedence
over the BITAND, BITOR, LSHIFT, and RSHIFT operators.
HLR H47024
The BITAND, BITOR, LSHIFT, and RSHIFT operators shall have equal
precendence.
HLR H47027
The BITAND, BITOR, LSHIFT, and RSHIFT operators shall have precedence
over the ESCAPE operator.
HLR H47029
The ESCAPE operator shall have precedence over
the GT, LE, LT, and GE operators.
HLR H47033
The GT, LE, LT, and GE operators shall have equal precedence.
HLR H47036
The GT, LE, LT, and GE operators shall have precedence over
the IS, MATCH, LIKE_KW, BETWEEN, IN, ISNULL, NOTNULL, NE, and EQ
operators shall have equal precedence.
HLR H47039
The IS, MATCH, LIKE_KW, BETWEEN, IN, ISNULL, NOTNULL, NE, and EQ
operators shall have equal precedence.
HLR H47042
The IS, MATCH, LIKE_KW, BETWEEN, IN, ISNULL, NOTNULL, NE, and EQ
operators shall have precedence over the unary NOT operator.
HLR H47045
The unary NOT operator shall have precedence over the AND operator.
HLR H47048
The AND operator shall have precedence over the OR operator.
HLR H47051
Operators of equal precedence shall group from right to left.
HLR H49100
The SQLite parser shall accept names, fullnames, and identifiers
that conform to the following syntax:
<blockquote><pre>
name ::= ID.
name ::= JOIN_KW.
name ::= STRING.
fullname ::= objectname.
fullname ::= databasename DOT objectname.
objectname ::= name.
databasename ::= name.
columnname ::= name.
identifier ::= ID.
identifier ::= STRING.
</pre></blockquote>
HLR H49103
The SQLite parser shall accept <i>rtvalue</i> elements of an
<i>expr</i> that conform to the following syntax:
<blockquote><pre>
rtvalue ::= databasename DOT tablename DOT columnname.
rtvalue ::= tablename DOT columnname.
rtvalue ::= ID.
rtvalue ::= JOIN_KW.
</pre></blockquote>
|
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
|
<
<
<
<
|
<
<
<
<
<
<
|
<
<
<
|
<
<
<
|
<
<
<
<
<
<
|
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
|
<
<
<
|
<
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
|
>
|
<
<
<
<
<
<
<
|
|
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
|
<
<
<
<
<
<
<
<
|
|
<
|
>
|
<
<
<
<
|
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
>
<
<
<
|
<
<
|
<
<
<
|
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
|
<
<
<
|
<
<
<
|
<
<
<
<
|
<
<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
|
<
<
<
|
<
<
|
<
<
<
<
<
<
|
<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
<
<
|
<
<
<
|
<
<
<
<
|
<
<
<
<
<
|
<
<
|
<
<
<
|
<
<
<
|
<
<
<
|
<
<
<
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
<
<
<
<
<
|
<
<
<
|
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
|
<
<
<
|
<
<
<
<
<
<
|
<
<
<
<
|
<
<
<
|
<
<
<
<
|
<
<
<
<
<
<
|
<
<
<
<
|
<
<
|
<
<
<
<
<
|
<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
|
<
<
<
|
<
<
<
<
|
<
<
<
<
<
|
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
<
<
|
<
<
<
|
<
<
<
|
<
<
<
<
|
<
<
<
|
<
<
<
<
|
<
<
<
|
<
<
<
|
<
<
<
<
<
<
|
<
<
<
<
|
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
|
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
<
<
|
<
<
<
<
<
<
<
<
|
<
<
<
<
|
<
<
<
<
<
|
<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
|
<
<
<
<
<
|
<
<
<
<
<
<
|
<
<
<
<
<
<
<
|
<
<
<
<
<
|
<
<
<
<
<
<
<
|
<
<
<
<
<
|
<
<
<
<
|
<
<
<
|
<
<
<
|
<
<
<
|
<
<
<
<
<
<
|
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
|
|
<
<
<
>
|
|
|
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
|
|
<
<
<
<
<
|
<
<
<
<
<
<
<
<
|
<
<
<
<
<
<
<
<
|
<
<
<
<
|
<
<
<
<
<
|
<
<
<
<
<
<
|
<
<
<
|
<
<
<
<
|
<
<
<
|
<
<
<
<
<
|
<
<
<
<
|
<
<
<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
<
<
<
<
|
|
|
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
|
>
>
|
<
>
>
|
|
<
<
|
<
<
|
<
<
<
|
<
<
|
<
<
|
<
<
<
|
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
|
<
<
|
<
<
|
<
<
|
|
|
<
<
<
<
<
<
<
<
<
<
<
<
|
<
<
<
<
<
<
<
<
<
|
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
|
TEMP
TRIGGER
UNION
VACUUM
VIEW
VIRTUAL
HLR H41930
A token received by the parser shall be converted into an ANY token
if the original token value would have resulted in a syntax error
and if a token value of ANY will allow the parse to continue.
HLR H42000
In the absence of semantic or other errors, the SQLite parser shall
accept a "sql-stmt-list" that conforms to the following syntax:
<center>[syntax/sql-stmt-list.gif]</center>
HLR H42100
In the absence of semantic or other errors, the SQLite parser shall
accept a "sql-stmt" that conforms to the following syntax:
<center>[syntax/sql-stmt.gif]</center>
HLR H42200
In the absence of semantic or other errors, the SQLite parser shall
accept a "alter-table-stmt" that conforms to the following syntax:
<center>[syntax/alter-table-stmt.gif]</center>
HLR H42300
In the absence of semantic or other errors, the SQLite parser shall
accept a "analyze-stmt" that conforms to the following syntax:
<center>[syntax/analyze-stmt.gif]</center>
HLR H42400
In the absence of semantic or other errors, the SQLite parser shall
accept a "attach-stmt" that conforms to the following syntax:
<center>[syntax/attach-stmt.gif]</center>
HLR H42500
In the absence of semantic or other errors, the SQLite parser shall
accept a "begin-stmt" that conforms to the following syntax:
<center>[syntax/begin-stmt.gif]</center>
HLR H42600
In the absence of semantic or other errors, the SQLite parser shall
accept a "commit-stmt" that conforms to the following syntax:
<center>[syntax/commit-stmt.gif]</center>
HLR H42700
In the absence of semantic or other errors, the SQLite parser shall
accept a "rollback-stmt" that conforms to the following syntax:
<center>[syntax/rollback-stmt.gif]</center>
HLR H42800
In the absence of semantic or other errors, the SQLite parser shall
accept a "savepoint-stmt" that conforms to the following syntax:
<center>[syntax/savepoint-stmt.gif]</center>
HLR H42900
In the absence of semantic or other errors, the SQLite parser shall
accept a "release-stmt" that conforms to the following syntax:
<center>[syntax/release-stmt.gif]</center>
HLR H43000
In the absence of semantic or other errors, the SQLite parser shall
accept a "create-index-stmt" that conforms to the following syntax:
<center>[syntax/create-index-stmt.gif]</center>
HLR H43100
In the absence of semantic or other errors, the SQLite parser shall
accept a "indexed-column" that conforms to the following syntax:
<center>[syntax/indexed-column.gif]</center>
HLR H43200
In the absence of semantic or other errors, the SQLite parser shall
accept a "create-table-stmt" that conforms to the following syntax:
<center>[syntax/create-table-stmt.gif]</center>
HLR H43300
In the absence of semantic or other errors, the SQLite parser shall
accept a "column-def" that conforms to the following syntax:
<center>[syntax/column-def.gif]</center>
HLR H43400
In the absence of semantic or other errors, the SQLite parser shall
accept a "type-name" that conforms to the following syntax:
<center>[syntax/type-name.gif]</center>
HLR H43500
In the absence of semantic or other errors, the SQLite parser shall
accept a "column-constraint" that conforms to the following syntax:
<center>[syntax/column-constraint.gif]</center>
HLR H43600
In the absence of semantic or other errors, the SQLite parser shall
accept a "signed-number" that conforms to the following syntax:
<center>[syntax/signed-number.gif]</center>
HLR H43700
In the absence of semantic or other errors, the SQLite parser shall
accept a "table-constraint" that conforms to the following syntax:
<center>[syntax/table-constraint.gif]</center>
HLR H43800
In the absence of semantic or other errors, the SQLite parser shall
accept a "foreign-key-clause" that conforms to the following syntax:
<center>[syntax/foreign-key-clause.gif]</center>
HLR H43900
In the absence of semantic or other errors, the SQLite parser shall
accept a "conflict-clause" that conforms to the following syntax:
<center>[syntax/conflict-clause.gif]</center>
HLR H44000
In the absence of semantic or other errors, the SQLite parser shall
accept a "create-trigger-stmt" that conforms to the following syntax:
<center>[syntax/create-trigger-stmt.gif]</center>
HLR H44100
In the absence of semantic or other errors, the SQLite parser shall
accept a "create-view-stmt" that conforms to the following syntax:
<center>[syntax/create-view-stmt.gif]</center>
HLR H44200
In the absence of semantic or other errors, the SQLite parser shall
accept a "create-virtual-table-stmt" that conforms to the following syntax:
<center>[syntax/create-virtual-table-stmt.gif]</center>
HLR H44300
In the absence of semantic or other errors, the SQLite parser shall
accept a "delete-stmt" that conforms to the following syntax:
<center>[syntax/delete-stmt.gif]</center>
HLR H44400
In the absence of semantic or other errors, the SQLite parser shall
accept a "delete-stmt-limited" that conforms to the following syntax:
<center>[syntax/delete-stmt-limited.gif]</center>
HLR H44500
In the absence of semantic or other errors, the SQLite parser shall
accept a "detach-stmt" that conforms to the following syntax:
<center>[syntax/detach-stmt.gif]</center>
HLR H44600
In the absence of semantic or other errors, the SQLite parser shall
accept a "drop-index-stmt" that conforms to the following syntax:
<center>[syntax/drop-index-stmt.gif]</center>
HLR H44700
In the absence of semantic or other errors, the SQLite parser shall
accept a "drop-table-stmt" that conforms to the following syntax:
<center>[syntax/drop-table-stmt.gif]</center>
HLR H44800
In the absence of semantic or other errors, the SQLite parser shall
accept a "drop-trigger-stmt" that conforms to the following syntax:
<center>[syntax/drop-trigger-stmt.gif]</center>
HLR H44900
In the absence of semantic or other errors, the SQLite parser shall
accept a "drop-view-stmt" that conforms to the following syntax:
<center>[syntax/drop-view-stmt.gif]</center>
HLR H45000
In the absence of semantic or other errors, the SQLite parser shall
accept a "expr" that conforms to the following syntax:
<center>[syntax/expr.gif]</center>
HLR H45100
In the absence of semantic or other errors, the SQLite parser shall
accept a "raise-function" that conforms to the following syntax:
<center>[syntax/raise-function.gif]</center>
HLR H45200
In the absence of semantic or other errors, the SQLite parser shall
accept a "literal-value" that conforms to the following syntax:
<center>[syntax/literal-value.gif]</center>
HLR H45300
In the absence of semantic or other errors, the SQLite parser shall
accept a "insert-stmt" that conforms to the following syntax:
<center>[syntax/insert-stmt.gif]</center>
HLR H45400
In the absence of semantic or other errors, the SQLite parser shall
accept a "pragma-stmt" that conforms to the following syntax:
<center>[syntax/pragma-stmt.gif]</center>
HLR H45500
In the absence of semantic or other errors, the SQLite parser shall
accept a "pragma-value" that conforms to the following syntax:
<center>[syntax/pragma-value.gif]</center>
HLR H45600
In the absence of semantic or other errors, the SQLite parser shall
accept a "reindex-stmt" that conforms to the following syntax:
<center>[syntax/reindex-stmt.gif]</center>
HLR H45700
In the absence of semantic or other errors, the SQLite parser shall
accept a "select-stmt" that conforms to the following syntax:
<center>[syntax/select-stmt.gif]</center>
HLR H45800
In the absence of semantic or other errors, the SQLite parser shall
accept a "select-core" that conforms to the following syntax:
<center>[syntax/select-core.gif]</center>
HLR H45900
In the absence of semantic or other errors, the SQLite parser shall
accept a "result-column" that conforms to the following syntax:
<center>[syntax/result-column.gif]</center>
HLR H46000
In the absence of semantic or other errors, the SQLite parser shall
accept a "join-source" that conforms to the following syntax:
<center>[syntax/join-source.gif]</center>
HLR H46100
In the absence of semantic or other errors, the SQLite parser shall
accept a "single-source" that conforms to the following syntax:
<center>[syntax/single-source.gif]</center>
HLR H46200
In the absence of semantic or other errors, the SQLite parser shall
accept a "join-op" that conforms to the following syntax:
<center>[syntax/join-op.gif]</center>
HLR H46300
In the absence of semantic or other errors, the SQLite parser shall
accept a "join-constraint" that conforms to the following syntax:
<center>[syntax/join-constraint.gif]</center>
HLR H46400
In the absence of semantic or other errors, the SQLite parser shall
accept a "ordering-term" that conforms to the following syntax:
<center>[syntax/ordering-term.gif]</center>
HLR H46500
In the absence of semantic or other errors, the SQLite parser shall
accept a "compound-operator" that conforms to the following syntax:
<center>[syntax/compound-operator.gif]</center>
HLR H46600
In the absence of semantic or other errors, the SQLite parser shall
accept a "update-stmt" that conforms to the following syntax:
<center>[syntax/update-stmt.gif]</center>
HLR H46700
In the absence of semantic or other errors, the SQLite parser shall
accept a "update-stmt-limited" that conforms to the following syntax:
<center>[syntax/update-stmt-limited.gif]</center>
HLR H46800
In the absence of semantic or other errors, the SQLite parser shall
accept a "qualified-table-name" that conforms to the following syntax:
<center>[syntax/qualified-table-name.gif]</center>
HLR H46900
In the absence of semantic or other errors, the SQLite parser shall
accept a "vacuum-stmt" that conforms to the following syntax:
<center>[syntax/vacuum-stmt.gif]</center>
|