Topic: SQL Script Not Executing All INSERTS in admin/create_coy.php
Hello,
I've noticed that when I create a new company not all tables are being populated. Specifically, I've modified the INSERT for feeding chart_class table.
The following _won't work_ and all remaining INSERT won't execute:
INSERT INTO `1_chart_class` (`cid`, `class_name`, `balance_sheet`) VALUES
(5, 'Gross', 0),
(2, 'Liabilities', 1),
(1, 'Assets', 1),
(4, 'Costs', 0);
The following _will_ work:
INSERT INTO `1_chart_class` (`cid`, `class_name`, `balance_sheet`) VALUES (5, 'Gross', 0);
INSERT INTO `1_chart_class` (`cid`, `class_name`, `balance_sheet`) VALUES (2, 'Liabilities', 1);
INSERT INTO `1_chart_class` (`cid`, `class_name`, `balance_sheet`) VALUES (1, 'Assets', 1);
INSERT INTO `1_chart_class` (`cid`, `class_name`, `balance_sheet`) VALUES (4, 'Costs', 0);
Is this a parsing issue? Is it because FA expect a whole INSERT clause per line? Many SQL backup scripts will generate INSERT clauses in multiple lines.
Regards,
Alex Saavedra