<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - FIREBIRD: Filed length for VARCHAR couldn't be set to 10000"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133769">133769</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FIREBIRD: Filed length for VARCHAR couldn't be set to 10000
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.4.4.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Base
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>robert@familiegrosskopf.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This bug appears while migrating from HSQLDB to Firebird with the
Migration-wizard.

firebird_sdbc error:
*unsuccessful metadata update
*CREATE TABLE Rechnungsinhalt failed
*Dynamic SQL Error
*SQL error code = -204
*Data type unknown
*Implementation limit exceeded
*COLUMN <Missing arg #1 - possibly status vector overflow>
caused by
'CREATE TABLE "Rechnungsinhalt" ( "ID" INTEGER NOT NULL, "Rechnungsinhalt"
VARCHAR(10000) NOT NULL,PRIMARY KEY("ID"))'

/home/buildslave/source/libo-core/connectivity/source/drivers/firebird/Util.cxx:68

So I tried it later in the Firebird-database with Tools → SQL:
CREATE TABLE "Rechnungsinhalt" ( "ID" INTEGER NOT NULL, "Rechnungsinhalt"
VARCHAR(10000) NOT NULL,PRIMARY KEY("ID"))
doesn't work. If I set it to 8000 instead of 10000 it will accept the command.

Note: Firebird supports 1 to 32.767 Bytes for a Varchar-field. But we have also
problems to count the characters right way, because there are characters, which
will need 2 byte or 4 byte. Seems this limit has been set in the driver from LO
to 8000 - for 4 byte characters...

The bug appears in Firebird in LO 6.4.4.2 on OpenSUSE 15.1 64bit rpm Linux.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>