DELETE Without Predicate is Not Supported
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Akiban SQL Parser |
Fix Released
|
Medium
|
Mike McMahon |
Bug Description
server revision: 1824
employees=> create table t1(id int not null primary key);
CREATE TABLE
employees=> insert into t1 values (1), (2), (3);
INSERT 0 3
employees=> select * from t1;
id
----
1
2
3
(3 rows)
employees=> delete from t1;
ERROR: Encountered " ";" "; "" at line 1, column 15.
Was expecting one of:
"as" ...
<IDENTIFIER> ...
<BACKQUOTED
<DOUBLEQUOT
LINE 1: delete from t1;
employees=> delete from t1 where 1=1;
DELETE 3
employees=> select * from t1;
id
----
(0 rows)
employees=>
Since TRUNCATE is not supported would be nice to able to easily delete all data from the table (unless we want to add support for TRUNCATE which would be nicer).
Changed in akiban-server: | |
assignee: | nobody → Mike McMahon (mmcm) |
affects: | akiban-server → akiban-sql-parser |
Changed in akiban-sql-parser: | |
milestone: | future → none |
Changed in akiban-sql-parser: | |
milestone: | none → 1.0.4 |
status: | Triaged → Fix Committed |
Changed in akiban-sql-parser: | |
status: | Fix Committed → Fix Released |
Changed in akiban-sql-parser: | |
milestone: | 1.0.4 → 1.3.2 |
Changed in akiban-server: | |
status: | New → Fix Released |
information type: | Private → Public |
Proserv feels this is not an urgent requirement so set the priority to moderate and marked for a future release.