<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 45: Some suggested changes/patch for file upload</title><link>https://sourceforge.net/p/sqlitemanager/bugs/45/</link><description>Recent changes to 45: Some suggested changes/patch for file upload</description><atom:link href="https://sourceforge.net/p/sqlitemanager/bugs/45/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 01 Nov 2009 12:29:24 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/sqlitemanager/bugs/45/feed.rss" rel="self" type="application/rss+xml"/><item><title>Some suggested changes/patch for file upload</title><link>https://sourceforge.net/p/sqlitemanager/bugs/45/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, I have made a couple of changes to the "SQLiteTableProperties.class.php" file that might be useful for other people. Here are the changes:&lt;/p&gt;
&lt;p&gt;Line 753, change to:&lt;br /&gt;
$recordElement = explode($sep, rtrim($record, "\n\r"));&lt;br /&gt;
That is, add "\n\r" to "rtrim" so that it doesn't get rid of trailing tabs--trailing tabs need to be there when the last item is null!&lt;/p&gt;
&lt;p&gt;Line 754, change to:&lt;br /&gt;
$query[] = "INSERT OR REPLACE INTO ".brackets($this-&amp;gt;table)." VALUES ('".implode("', '", $recordElement)."');";&lt;br /&gt;
By using "OR REPLACE", if there is a conflict it will update the line rather than exiting with an error and rolling back.&lt;/p&gt;
&lt;p&gt;Thanks for supplying this code. It is extremely helpful.&lt;/p&gt;
&lt;p&gt;I am attaching my revised file.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;
Eric&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eric Kemp-Benedict</dc:creator><pubDate>Sun, 01 Nov 2009 12:29:24 -0000</pubDate><guid>https://sourceforge.net6bf0ff09f945cebff25611f143ada6016c271b25</guid></item></channel></rss>