<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><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#c4">Comment # 4</a>
              on <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">bug 133769</a>
              from <span class="vcard"><a class="email" href="mailto:iplaw67@tuta.io" title="Alex Thurgood <iplaw67@tuta.io>"> <span class="fn">Alex Thurgood</span></a>
</span></b>
        <pre>In theory, it is supposed to be:

Char and Varchar: 32767 bytes
for encoding in single byte character encoding

according to :

<a href="http://www.firebirdfaq.org/faq61/">http://www.firebirdfaq.org/faq61/</a>

but then I seem to recall that we encode using 4 bytes per character because we
accept UTF-8, thereby reducing the total possible length of a VARCHAR field to
about 8K ?

See also:
<a href="https://stackoverflow.com/questions/14682709/how-to-declare-a-field-as-varcharmax-in-firebird">https://stackoverflow.com/questions/14682709/how-to-declare-a-field-as-varcharmax-in-firebird</a></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>