30 lines
701 B
SQL
30 lines
701 B
SQL
# name: test/fuzzer/pedro/alter_table_rowid.test
|
|
# description: Issue #4587: Alter table statements with rowid column
|
|
# group: [pedro]
|
|
|
|
statement ok
|
|
PRAGMA enable_verification
|
|
|
|
statement ok
|
|
CREATE TABLE t0(c0 INTEGER, c1 INTEGER);
|
|
|
|
statement error
|
|
ALTER TABLE t0 DROP COLUMN rowid;
|
|
----
|
|
<REGEX>:Binder Error.*does not have a column with name.*
|
|
|
|
statement error
|
|
ALTER TABLE t0 RENAME rowid TO ups;
|
|
----
|
|
<REGEX>:Binder Error.*does not have a column with name.*
|
|
|
|
statement error
|
|
ALTER TABLE t0 ALTER rowid TYPE VARCHAR;
|
|
----
|
|
<REGEX>:Binder Error.*does not have a column with name.*
|
|
|
|
statement error
|
|
ALTER TABLE t0 ALTER rowidx SET DEFAULT 0;
|
|
----
|
|
<REGEX>:Binder Error.*does not have a column with name.*
|