Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Schema mapping database value type “date” to wrong data type

  • Schema mapping database value type “date” to wrong data type

    Posted by Minh Phuong Vu on April 6, 2023 at 11:57 am

    Hello everyone.

    I created a schema by dragging and dropping a table from my database. All values matched perfectly except the “date” type, which is automatically mapped to a “Character length 10” type (but “datetime” works fine). I manually mapped the data type to “Date Time Short date 1980…2079” in the schema. Despite this, when using list.$definefromsqlclass or a select statement, the “date” type will still be fetched as a “Character length 10” type…

    Does anyone know the solution to this problem? Thanks in advance.

    Minh Phuong

    Uwe Smidt replied 1 year, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Uwe Smidt

    Member
    April 10, 2023 at 5:11 pm

    Dear Minh Phuong,

    I recently had a mis-mapping between a Postgres Servertable and an Omnis Schema on the primary key property.

    I don’t know if it was a problem of the Postgres-DAM or of Postgres itself. But when I recreated the Postgres Object (via PGAdmin), in this case the table, the mis-mapping stopped, and primary was primary on both sides.

    This is only a workaround, but it could help you to isolate the problem.

    Best regards

    Uwe

    • This reply was modified 1 year, 3 months ago by  Uwe Smidt.

Log in to reply.