<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — SQL Script Not Executing All INSERTS in admin/create_coy.php]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=154</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=154&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in SQL Script Not Executing All INSERTS in admin/create_coy.php.]]></description>
		<lastBuildDate>Thu, 20 Mar 2008 10:33:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: SQL Script Not Executing All INSERTS in admin/create_coy.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=441#p441</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 20 Mar 2008 10:33:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=441#p441</guid>
		</item>
		<item>
			<title><![CDATA[SQL Script Not Executing All INSERTS in admin/create_coy.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=433#p433</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (alex)]]></author>
			<pubDate>Wed, 19 Mar 2008 23:04:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=433#p433</guid>
		</item>
	</channel>
</rss>
