[OS-JIRA] Created: (CAY-386) ExtendType doesn't workd with null Blobs (Postgresql)

From: jira-norepl..bjectstyle.org
Date: Mon Oct 03 2005 - 20:56:38 EDT

  • Next message: jira-norepl..bjectstyle.org: "[OS-JIRA] Created: (CAY-387) [PATCH] iterators are more efficient than for loop indexing and get(i)"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-386

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-386
        Summary: ExtendType doesn't workd with null Blobs (Postgresql)
           Type: Bug

         Status: Assigned
       Priority: Major

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Versions:
                 1.2 [DEV]

       Assignee: Andrus Adamchik
       Reporter: Oscar Picasso

        Created: Mon, 3 Oct 2005 8:55 PM
        Updated: Mon, 3 Oct 2005 8:55 PM
    Environment: jdk 1.5, linux fedora 4, cayenne 1.2M5, postgresql 8.0.3
    (should be the same on other environments that use cayenne 1.2M5)

    Description:
    When using a custom ExtendedType to map BLOB to oid (Postgresql Blob implementation as large object) instead bytea it works fine except when the provided blob is null.

    In that case the PostgresAdapter reset it to VARBINARY and the resulting code run an Exception when run:
    ...
    Caused by: org.postgresql.util.PSQLException: ERROR: column "content" is of type oid but expression is of type bytea
    ...

    See thread at:
    http://objectstyle.org/cayenne/lists/cayenne-user/2005/10/0010.html

    Oscar

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Mon Oct 03 2005 - 20:56:39 EDT