In some cases, MariaDB will lose the data of the text field. My table is
create table tt(
id int(11) AUTO_INCREMENT PRIMARY KEY ,
info text
)
My SQL is
update tt join
(select 'StringValue' as info , 1 as id ) a using(id)
set tt.info = a.info
The StringValue is a string data that more than 65535 bytes;
I can execute this SQL successfully using Java JDBC, but only a few bytes can be written.
For example, StringValue is a String data with 65538 bytes, after executing the SQL, tt.info has only 2 bytes.
My MariaDB version is 10.4.7, innodb_page_size is 16kb.