|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
insert a big integer value from xml fileHi, all
I have a problem to load a big integer value from xml file. I created a table as the following: CREATE TABLE statistic ( ... big_numeric_value BIGINT UNSIGNED, big_delta_value BIGINT UNSIGNED, ... ); In my dbunit xml file, I have the following two lines: <statistic ... big_numeric_value="7446744073709551630" big_delta_value="1000000000000000005" ... /> <statistic ... big_numeric_value="17446744073709551630" big_delta_value="10000000000000000000" ... /> When I load the testing data into database using the following codes: ReplacementDataSet dataSet = new ReplacementDataSet(new FlatXmlDataSet(inputStream)); DatabaseOperation.CLEAN_INSERT.execute(conn, dataSet); I got the following message: Data truncation: Out of range value adjusted for column 'big_numeric_value' at row 1 I checked my database, the first line of dbunit xml file was loaded successfully. But the second line was not loaded, it seems the value is too big. I can input that value by using Tora, but I can not load from dbunit. Is there a way to load a big integer value from dbunit? Thanks a lot. __________________________________________________________________ The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ dbunit-user mailing list dbunit-user@... https://lists.sourceforge.net/lists/listinfo/dbunit-user |
|
|
|
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |