Hi, Dimon
I was thinking to open new thread but found this, and this one is very similar to mine, but not very
So, preconditions:
MySQL Server 5.1 (latest GA)
UniDAC v3, C++Builder6,
using MySQL provider,
the TUniScript with configured UniConnection to my MySql DB;
Actions:
loaded my script into script compo using Load button, OK, executing....tons of errors
I"m showing you the minimal piece of sql that lead to the issue:
Code: Select all
#
### TABLE STRUCTURE FOR `t_cleanout`###
#
DROP TABLE IF EXISTS `t_cleanout`;
CREATE TABLE `t_cleanout` (
`id` int(10) NOT NULL,
`date` datetime NOT NULL,
`address` text NOT NULL,
`proptype` varchar(15) NOT NULL,
`evicted` varchar(15) NOT NULL,
`rooms` int(5) NOT NULL,
`groundfloor` varchar(5) NOT NULL,
`multi_lev` varchar(5) NOT NULL,
`pets` varchar(5) NOT NULL,
`garage` varchar(5) NOT NULL,
`condo` varchar(5) NOT NULL,
`comments` text NOT NULL,
`authorized` varchar(64) NOT NULL,
`agreed` varchar(5) NOT NULL,
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
INSERT INTO `t_cleanout` VALUES ( "300" , "2010-07-11 21:44:23" , "" , "" , "" , "0" , "" , "" , "" , "" , "" , "" , "" , "" );
gives following error:
---------------------------
Error
---------------------------
#42S22Unknown column '300' in 'field list'
---------------------------
Abort Ignore
---------------------------
Of course I understand that manual correction of
" char into
'
for all the fields that are quoted will fix the issue, but
unfortunately this is not suitable with me at all
Why?
1) I have very huge scripts - 1+ MB of SQL (!)
2) that file is generated by another system and I'm just receiving it and trying to execute
3) this is a not one - time action, but rather periodic one
4) I've checked with MySQL Workbench ( a tool available form MySql site) and you know what?
it eat my script without ANY error reported with 100% successful result.
Conclusion:
UniDAC/MySQL has some issue when executing SQL statements.
SQL parsing engine is not compatible with MySQL and that is really upsetting.
Questions:
could you advice me regards
- is it possible to somehow configure UniDAC component (UniScript) to accept my script data
- if its not configurable - could you please consider this issue as a major one and schedule some fix in upcoming release?
Thanks for reading this all
Looking forward for your answer