I Have the following table:
CREATE TABLE `tmp_table` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`t` bit(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1$$
And an xml file called "data.xml" that contains 1 line:
<list><row t="0" /></list>
When I run the following command:
LOAD XML LOCAL INFILE 'c:/temp/data.xml' INTO TABLE `tmp_table`
After running this command I get one row with a value of "1" for column t and a warning:
LOAD XML LOCAL INFILE 'c:/temp/data.xml' INTO TABLE `tmp_table` 1 row(s) affected, 1 warning(s):
1264 Out of range value for column 't' at row 1
Records: 1 Deleted: 0 Skipped: 0 Warnings: 1 0.000 sec
How can I load a 0
for a bit field in an xml document?