jyotiverma0310 / burningimage

Automatically exported from code.google.com/p/burningimage
0 stars 0 forks source link

MySQL data truncated #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using grails 1.3.1 with MySQL, I get 
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 
'data' at row 1

I tried with no success to change data to blob and text doing 

static mapping = {
    data type:"blob"
}

but getting a typecast error.

Original issue reported on code.google.com by ignacio.cases@gmail.com on 24 Jun 2010 at 1:25

GoogleCodeExporter commented 9 years ago
How big is image that you try to save? Can you paste your configuration and 
domain object that you are using? Can you check how this field is mapped in 
your DB ?

Original comment by gdula.pawel@gmail.com on 24 Jun 2010 at 2:02

GoogleCodeExporter commented 9 years ago
Images are a few Kb. It seems specific to MySQL, as if I change the datasource 
to in memory HSQLDB works fine.

Original comment by ignacio.cases@gmail.com on 24 Jun 2010 at 4:21

GoogleCodeExporter commented 9 years ago
I tested it before release on mysql and everything was fine. I will check it to 
the of the week. If this stop your works, switch to FileContainer for now - 
change to DBContainer will be transparent.

Original comment by gdula.pawel@gmail.com on 24 Jun 2010 at 6:52

GoogleCodeExporter commented 9 years ago
I will check again. Thank you very much.

Original comment by ignacio.cases@gmail.com on 24 Jun 2010 at 7:07

GoogleCodeExporter commented 9 years ago
Fiexed version uploaded. Ignacio, can you confirm if its ok now?

Original comment by gdula.pawel@gmail.com on 27 Jun 2010 at 10:02

GoogleCodeExporter commented 9 years ago
Works like a charm. Thank you very much, Pawel!

Original comment by ignacio.cases@gmail.com on 28 Jun 2010 at 5:05

GoogleCodeExporter commented 9 years ago

Original comment by gdula.pawel@gmail.com on 29 Jun 2010 at 7:48