UTL_FILE.NEW_LINE silently ignores negative line counts
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 64/100
Línea de trabajo
Empieza por localizar la implementación compatible con Oracle de UTL_FILE y sus pruebas. Después, inspecciona la validación de argumentos y el bucle de nueva línea de sys.ora_utl_file_new_line. Añade pruebas de regresión para que un recuento negativo siga la ruta VALUE_ERROR, mientras que los recuentos cero y positivos mantienen su comportamiento. El trabajo estará terminado cuando esos casos de SQL pasen en modo compatible con Oracle.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happened?
The Oracle signature defines UTL_FILE.NEW_LINE's lines parameter as NATURAL, but IvorySQL exposes it as INTEGER and silently loops zero times for a negative value. A caller receives success without writing anything, hiding an invalid argument.
What did you expect to happen?
Negative lines values should be rejected through the package's VALUE_ERROR path. Zero and positive counts should retain their existing behavior. This expectation follows the Oracle-compatible UTL_FILE contract; no Oracle server output is being claimed here.
How can we reproduce it (as minimally and precisely as possible)?
In Oracle-compatible mode, open a writable file and call:
-- Use the repository's UTL_FILE test directory or another writable directory.
SELECT sys.ora_utl_file_new_line(file_handle, -1);
The pre-fix implementation returns successfully and writes no newline. The regression should verify the error for a negative count and preserve the zero/positive cases.
IvorySQL version
master
Compatible mode
oracle
Server encoding
UTF8
Anything else we need to know?
This is limited to the IvorySQL Oracle-compatible UTL_FILE package. The issue concerns argument validation before the newline loop. Oracle server version/output is not available for this report.
OS version
The reproducer is SQL-level and should run on all supported platforms; CI should cover the platform-specific builds.
Before submitting
- I confirmed the problem still happens on current master
- I searched existing issues and found no duplicate
- Lenguaje dominante
- C
- Estrellas
- 1.1k
- Forks
- 232
- Merge medio
- 3 d 2 h
- PR fusionados (30 d)
- 15
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 @feitiansiyan la tomó hace 1 día. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
IvorySQL/IvorySQL#2999 · 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 16 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 16 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 23 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
-
Ivy input bindings with an omitted indicator pointer crash during executionPosiblemente ocupada @Loyal-Young la tomó hace 36 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
IvorySQL/IvorySQL#2257 · 1 comentario ·
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 68/100
ly05010419/MacNativeGames#1697 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
aminya/project_options#303 ·
-
respond_to? on a poly receiver answers true for a program class's private or protected methodAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
bug core p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
RunanywhereAI/runanywhere-sdks#1258 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
rocketproplab/phoenix-fc-sensor-board#18 · 1 comentario ·