<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — SQL Script Not Executing All INSERTS in admin/create_coy.php]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=154&amp;type=atom" />
	<updated>2008-03-20T10:33:07Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=154</id>
		<entry>
			<title type="html"><![CDATA[Re: SQL Script Not Executing All INSERTS in admin/create_coy.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=441#p441" />
			<content type="html"><![CDATA[<p>Hello alex,</p><p>Yes, there is some simplifications in db_import function which are cost of smaller source code size. The import function must work properly with FA backup files, and it do. </p><p>Anyway when MySQL dump file is made out of FA installation (for example via phpmyadmin) correct settings ensure compatibility with db_import(). First of all&nbsp; this is MYSQL323 compatibility option and DROP TABLE + IF NOT EXISTS usage.<br />With other options you can experiment to achieve best results.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2008-03-20T10:33:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=441#p441</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[SQL Script Not Executing All INSERTS in admin/create_coy.php]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=433#p433" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I&#039;ve noticed that when I create a new company not all tables are being populated. Specifically, I&#039;ve modified the INSERT for feeding chart_class table. </p><p>The following _won&#039;t work_ and all remaining INSERT won&#039;t execute:</p><p>INSERT INTO `1_chart_class` (`cid`, `class_name`, `balance_sheet`) VALUES<br />(5, &#039;Gross&#039;, 0),<br />(2, &#039;Liabilities&#039;, 1),<br />(1, &#039;Assets&#039;, 1),<br />(4, &#039;Costs&#039;, 0);</p><p>The following _will_ work:</p><p>INSERT INTO `1_chart_class` (`cid`, `class_name`, `balance_sheet`) VALUES (5, &#039;Gross&#039;, 0);<br />INSERT INTO `1_chart_class` (`cid`, `class_name`, `balance_sheet`) VALUES (2, &#039;Liabilities&#039;, 1);<br />INSERT INTO `1_chart_class` (`cid`, `class_name`, `balance_sheet`) VALUES (1, &#039;Assets&#039;, 1);<br />INSERT INTO `1_chart_class` (`cid`, `class_name`, `balance_sheet`) VALUES (4, &#039;Costs&#039;, 0);</p><p>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.</p><p>Regards,</p><p>Alex Saavedra</p>]]></content>
			<author>
				<name><![CDATA[alex]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=130</uri>
			</author>
			<updated>2008-03-19T23:04:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=433#p433</id>
		</entry>
</feed>
