<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 49: Additional quotes for default values for text fields</title><link href="https://sourceforge.net/p/sqlitemanager/bugs/49/" rel="alternate"/><link href="https://sourceforge.net/p/sqlitemanager/bugs/49/feed.atom" rel="self"/><id>https://sourceforge.net/p/sqlitemanager/bugs/49/</id><updated>2010-08-10T11:34:36Z</updated><subtitle>Recent changes to 49: Additional quotes for default values for text fields</subtitle><entry><title>Additional quotes for default values for text fields</title><link href="https://sourceforge.net/p/sqlitemanager/bugs/49/" rel="alternate"/><published>2010-08-10T11:34:36Z</published><updated>2010-08-10T11:34:36Z</updated><author><name>Sergey Verlan</name><uri>https://sourceforge.net/u/sverlan/</uri></author><id>https://sourceforge.net2cd3df1c3083e4b8b8f84aed4d3fdf771e56d33c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If a default value for a text (string) field is given, then when modifying the table/field, additional quotes are added around the value. The same holds if a record is inserted.&lt;/p&gt;
&lt;p&gt;Example:&lt;br /&gt;
The table: &lt;br /&gt;
CREATE TABLE 't2' ( 'id' INTEGER NOT NULL PRIMARY KEY, 'name' TEXT NOT NULL DEFAULT '""', 'info' TEXT NOT NULL DEFAULT 'simple info' );&lt;/p&gt;
&lt;p&gt;When modifying any field additional quotes are inserted around the default value. When inserting - the value has quotes, while it shouldn't.&lt;/p&gt;
&lt;p&gt;Temporary fix (file common.lib.php): &lt;/p&gt;
&lt;p&gt;434c434&lt;br /&gt;
&amp;lt;        if($info['dflt_value']!= '') $data = $info['dflt_value'];&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;        if($info['dflt_value']!= '') $data = unquote($info['dflt_value']);&lt;br /&gt;
450d449&lt;br /&gt;
&amp;lt; &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>