ALTER TABLE OF accepts object tables without ROWID and breaks REF
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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%
- Lenguaje dominante
- C
- Estrellas
- 1.1k
- Forks
- 232
- Merge medio
- 1 d 20 h
- PR fusionados (30 d)
- 7
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de IvorySQL/IvorySQL
-
PostgreSQL::Version rejects documented full psql version outputPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
UTL_FILE.NEW_LINE silently ignores negative line countsPosiblemente ocupada @X-LightYear la tomó hace 8 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
IvorySQL/IvorySQL#2634 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Character function regression assumes normal identifier case on default interchange clustersPosiblemente ocupada @zhouxj52 la tomó hace 15 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
IvorySQL/IvorySQL#2470 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
xml2 no-libxslt expected files do not match PG/Oracle input scriptsPosiblemente ocupada @zhouxj52 la tomó hace 15 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
IvorySQL/IvorySQL#2468 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Title: Build failure in DBMS_SCHEDULER due to incorrect placement of pg_noreturnPosiblemente ocupada @darshan-s-44 la tomó hace 22 días. Abiertobug good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
Todos los issues de IvorySQL/IvorySQL
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
FujiNetWIFI/fujinet-firmware#2261 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
kivy/python-for-android#3405 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Nmap
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
area/infrared type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
DarkFlippers/unleashed-firmware#1201 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
pocoproject/poco#5626 ·
Los mantenedores suelen responder en 2 días