<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[LuxCal Web Calendar — LuxCal 5.2.0 SQL error Invalid datetime format when upgrading]]></title>
		<link>https://www.luxsoft.eu/lcforum/viewtopic.php?id=418</link>
		<atom:link href="https://www.luxsoft.eu/lcforum/extern.php?action=feed&amp;tid=418&amp;type=rss" rel="self" type="application/rss+xml"></atom:link>
		<description><![CDATA[The most recent posts in LuxCal 5.2.0 SQL error Invalid datetime format when upgrading.]]></description>
		<lastBuildDate>Sat, 26 Feb 2022 11:16:42 +0000</lastBuildDate>
		<generator>PunBB 1.4.4</generator>
		<item>
			<title><![CDATA[LuxCal 5.2.0 SQL error Invalid datetime format when upgrading]]></title>
			<link>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=1575#p1575</link>
			<description><![CDATA[<p>When upgrading to calendar V5.2 or when restoring a databse backup file via the Database page, depending on the MySQL database configuration, the following SQL error message may occur:</p><p>SQL query error: SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect DOUBLE value: &#039;&#039;<br>Query string: UPDATE `mycal_settingsX` SET `value` = &#039;&#039; WHERE (`name` = &#039;spMiniCal&#039; OR `name` = &#039;spImages&#039; OR `name` = &#039;spInfoArea&#039;) AND `value` = 0</p><p>This can be solved by editing the file &quot;common/toolboxx.php&quot; and on line 877 and 878 enclosing the values 0 and 1 in single quotes. In other words, change . . .<br></p><div class="codebox"><pre><code>AND `value` = 0&quot;);</code></pre></div><p>to . . .<br></p><div class="codebox"><pre><code>AND `value` = &#039;0&#039;&quot;);</code></pre></div><p>and change . . .<br></p><div class="codebox"><pre><code>AND `value` = 1&quot;);</code></pre></div><p>to . . .<br></p><div class="codebox"><pre><code>AND `value` = &#039;1&#039;&quot;);</code></pre></div><p>Roel</p>]]></description>
			<author><![CDATA[null@example.com (Roel)]]></author>
			<pubDate>Sat, 26 Feb 2022 11:16:42 +0000</pubDate>
			<guid>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=1575#p1575</guid>
		</item>
	</channel>
</rss>
