Skip to content

PostgreSQLOidDataType should not fail if OID is not a LargeObject #693

Closed

Description

@jeffjensen

Migrated from SourceForge — Bugs #437
Originally reported by coiouhkc on 2021-01-11 14:03:12.547000
Priority: 5
Assigned to jeffjensen
SF status: pending
Votes: 1

See https://www.postgresql.org/docs/11/datatype-oid.html, OID data type is not necessarily referring to large object, therefore it's totally OK, if there is no LargeObject mapped to the numerical value, e.g. 'table'::regclass.
Currently PostgreSQLOidDataType would fail with smth. like org.dbunit.dataset.DataSetException: org.postgresql.util.PSQLException: ERROR: large object 16548 does not exist


jeffjensen — 2021-10-30 15:05:41.456000
Thanks for the report. Please create a merge request with a proposed fix and a test that shows the problem so it stays fixed.

Activity

  1. added this to the v2.7.* milestone on May 18, 2026
  2. self-assigned this
    on May 18, 2026
  3. added theissue type on May 18, 2026
  4. jeffjensen commented on Jul 30, 2026

    @jeffjensen
    MemberAuthor

    Confirmed still open. PostgreSQLOidDataType#getSqlValue has a commented-out attempt at swallowing this case, with an explicit note that doing so unconditionally would hide real errors — so this needs a real fix that distinguishes "not a large object" from other SQL failures (e.g. by inspecting the driver's SQLState) rather than a blanket catch. Leaving open.

  5. removed this from the v2.7.* milestone on Jul 30, 2026
  6. added this to the 3.4.1 milestone on Aug 11, 2026
  7. moved this from Backlog to In progress in dbunit-extension Kanbanon Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions