Groups
Groups
Sign in
Groups
Groups
H2 Database
Conversations
About
Send feedback
Help
error version 2.0.204
73 views
Skip to first unread message
Rafael Simón Vera Urdaneta
unread,
Dec 27, 2021, 1:11:22 AM
12/27/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to H2 Database
ERROR: Value too long for column "CHARACTER VARYING":
Evgenij Ryazanov
unread,
Dec 27, 2021, 3:04:17 AM
12/27/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to H2 Database
Hello.
H2 2.0 allows up to 1048576 characters for this data type:
https://h2database.com/html/datatypes.html#character_varying_type
For larger values you need to use CLOB:
https://h2database.com/html/datatypes.html#character_large_object_type
Please note that PreparedStatement.setString() and ResultSet.getString() cannot be used to set or read large CLOB value. You need to use methods with java.sql.Clob or java.util.Reader / java.util.Writer.
Reply all
Reply to author
Forward
0 new messages