[CDO] Type for text more than 255 [message #521778] |
Thu, 18 March 2010 13:36  |
Eclipse User |
|
|
|
Hi all,
I have problem when try to store a text more than 255 because type at H2Database is Varchar and at the model i use EString.
i get this error message :
[ERROR] org.h2.jdbc.JdbcSQLException: Wert zu gross / lang für Feld CONTENT VARCHAR(32672): STRINGDECODE('\r\n========================================== ========================\r\n\r\nPayPal\r\n\r\n============== ========... (166933)
3 Value too long for column CONTENT VARCHAR(32672): STRINGDECODE('\r\n========================================== ========================\r\n\r\nPayPal\r\n\r\n============== ========... (166933); SQL statement:
anyone can give me some suggestion to solve this problem ?
what should i use for data type at the model
Thanks,
CanA
[Updated on: Thu, 18 March 2010 23:10] by Moderator
|
|
|
|
|
|
Re: [CDO] Type for text more than 255 [message #521919 is a reply to message #521867] |
Fri, 19 March 2010 01:10  |
Eclipse User |
|
|
|
Rencana,
you can add an EAnnotation to your feature which instructs the DBStore
to use a CLOB instead of a varchar.
There's also an EAnnotation which can be used to adjust the length of
the field, maybe that is already sufficient.
In any case, see org.eclipse.net4j.db.DBAnnotation for the available
annotations.
Cheers,
Stefan
Am 19.03.2010 04:12, schrieb Rencana Tarigan:
> Ed : already change it, thanks :)
> Eike : hope stefan can give some suggestion :)
|
|
|
Powered by
FUDForum. Page generated in 0.14080 seconds