Proposal: Entity Engine Field Type Improvement

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Proposal: Entity Engine Field Type Improvement

Adrian Crum-3
URLs can be an arbitrary length. The common advice is to limit their
length to 2000 characters to avoid problems with some browsers.

I propose that we change the "url" field type to allow 2000 characters:

<field-type-def type="url" sql-type="VARCHAR(2000)" java-type="String"/>

This should not be an SQL CLOB because some databases will not allow
comparisons or indexing on CLOB fields.

What do you think?

--
Adrian Crum
Sandglass Software
www.sandglass-software.com
Reply | Threaded
Open this post in threaded view
|

Re: Proposal: Entity Engine Field Type Improvement

Jacques Le Roux
Administrator
This sounds wise to me

Jacques

Adrian Crum wrote:

> URLs can be an arbitrary length. The common advice is to limit their
> length to 2000 characters to avoid problems with some browsers.
>
> I propose that we change the "url" field type to allow 2000 characters:
>
> <field-type-def type="url" sql-type="VARCHAR(2000)" java-type="String"/>
>
> This should not be an SQL CLOB because some databases will not allow
> comparisons or indexing on CLOB fields.
>
> What do you think?