ALTER TABLE OF accepts object tables without ROWID and breaks REF
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
The issue describes a narrow guard and regression coverage, but names no source or test files. Start by inspecting linked PR #2936 to find the affected ALTER TABLE conversion path and regression tests. Done means rejecting conversion without ROWID while leaving the table unchanged, permitting conversion after adding ROWID, preserving REF/DEREF behavior, and allowing ordinary composite conversion without ROWID.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What happened?
ALTER TABLE ... OF accepts a table without ROWID when the target is an Oracle object type. It records the table as an object table, but every REF() expression then fails with REF requires an object table with ROWID (42809). The creation path already requires ROWID for object tables.
What did you expect to happen?
The conversion should enforce the same ROWID requirement as object-table creation and reject an unsupported conversion before changing the table's type. Adding ROWID first, in Oracle compatibility mode, should permit the conversion. Ordinary composite typed tables should continue to support tables without ROWID.
How can we reproduce it (as minimally and precisely as possible)?
SET ivorysql.compatible_mode = oracle;
CREATE TYPE converted_person AS OBJECT (id integer);
CREATE TABLE no_rowids (id integer) WITHOUT ROWID;
INSERT INTO no_rowids VALUES (11);
SET ivorysql.compatible_mode = pg;
ALTER TABLE no_rowids OF converted_person; -- succeeds incorrectly
SELECT relhasrowid, reloftype = 'converted_person'::regtype
FROM pg_class WHERE oid = 'no_rowids'::regclass;
-- f | t
SET ivorysql.compatible_mode = oracle;
SELECT REF(p) FROM no_rowids p;
-- ERROR: REF requires an object table with ROWID
IvorySQL version
Upstream master at 2c5e8dd6676c443571549b801543e6590a260246, reproduced on 2026-10-26 with a debug/cassert build.
Compatible mode
Both: Oracle for ROWID DDL and REF; PG for the type conversion.
Server encoding
UTF8.
OS version
Linux/x86_64, GCC 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04.1); assertion-enabled debug build.
Anything else we need to know?
A narrow guard and regression coverage have been validated independently. The tests check rejection and unchanged state, adding ROWID to existing rows before conversion, REF/DEREF of existing and new rows, and ordinary composite conversion without ROWID. This is separate from #2004's implicit ROWID-index maintenance issue.
Before submitting
- I confirmed the problem still happens on current
master. - I searched existing issues and found no duplicate in the saved results.
Assisted-by: Codex:GPT-6
Percentage of AI-generated code: 100%
- Vorherrschende Sprache
- C
- Sterne
- 1.1k
- Forks
- 232
- Ø Merge
- 1 T. 20 Std.
- Gemergte PRs (30 T.)
- 7
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus IvorySQL/IvorySQL
-
PostgreSQL::Version rejects documented full psql version outputEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag
-
UTL_FILE.NEW_LINE silently ignores negative line countsEvtl. vergeben @X-LightYear hat das vor 8 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
IvorySQL/IvorySQL#2634 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Character function regression assumes normal identifier case on default interchange clustersEvtl. vergeben @zhouxj52 hat das vor 15 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
IvorySQL/IvorySQL#2470 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
xml2 no-libxslt expected files do not match PG/Oracle input scriptsEvtl. vergeben @zhouxj52 hat das vor 15 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
IvorySQL/IvorySQL#2468 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Title: Build failure in DBMS_SCHEDULER due to incorrect placement of pg_noreturnEvtl. vergeben @darshan-s-44 hat das vor 22 Tagen übernommen. Offenbug good first issue
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in IvorySQL/IvorySQL
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
FujiNetWIFI/fujinet-firmware#2261 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/infrared type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
DarkFlippers/unleashed-firmware#1201 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
pocoproject/poco#5626 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 78/100
VMAFx/vmafx#3260 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
FujiNetWIFI/fujinet-lib#272 ·
Maintainer antworten meist innerhalb von 1 Tag