Uploaded image for project: 'DdlUtils'
  1. DdlUtils
  2. DDLUTILS-165

Data type mismatch in PostgreSQL with TEXT columns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0 RC1
    • Core - PostgreSql
    • None
    • PostgreSQL v2.8.3 on Windows with JDBC driver 'postgresql-8.2-504.jdbc3.jar'

    Description

      The PostgreSql jdbc driver returns VARCHAR(2147483647) for columns defined as TEXT. The ModelReader expects VARCHAR(-1) for these data type.
      Maybe the behaviour of the jdbc driver changed lately, because there is a comment in the PostgreSqlModelReader.readColumn method which says that PostgreSQL returns VARCHAR(-1), but in my environment i get VARCHAR(2147483647).

      Attachments

        1. patch.txt
          1 kB
          Martin van den Bemt

        Activity

          People

            tomdz Thomas Dudziak
            s_huber Stefan Huber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: