TRUNCATE TABLE chucks an error if table not empty
Bug #481145 reported by
Arjen Lentz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OQGRAPH |
Confirmed
|
High
|
Antony T Curtis |
Bug Description
mysql> create table foo like graph_template;
OK
mysql> truncate table foo;
OK
mysql> insert into foo ...
OK
mysql> truncate table foo;
ERROR 1005 (HY000): Can't create table ./test/foo' (errno: 145)
So it only happens when the table is not already empty.
DELETE FROM foo (without WHERE clause) works fine.
To post a comment you must log in.
This doesn't make sense for oqgraphv3, because all modifying operations on a graph are prevented (read-only) - assume this is v2?