Strange.<br><br>I&#39;ve run postgres&nbsp;with Amarok exclusively&nbsp;for&nbsp;ages&nbsp;and&nbsp;haven&#39;t&nbsp;seen&nbsp;any&nbsp;such&nbsp;bugs.&nbsp;But...&nbsp;since&nbsp;I&nbsp;don&#39;t&nbsp;use&nbsp;podcasts&nbsp;much,&nbsp;I&#39;ll&nbsp;test&nbsp;this&nbsp;and&nbsp;get&nbsp;back&nbsp;to&nbsp;you.<br> <br>Peter<br><br><div><span class="gmail_quote">
On 06/11/2007, <b class="gmail_sendername">Seb Ruiz</b> &lt;<a href="mailto:ruiz@kde.org">ruiz@kde.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Hi All,<br>There is a rather serious bug with the postgres backend which makes<br>all boolean values to be incorrectly read from the database. Case in<br>point is saving &quot;auto transfer&quot; or &quot;purge&quot; properties from podcast
<br>channel settings. I have established that the correct boolean entry is<br>written to the database, but our code is always returning false.<br><br>If you look at this code:<br><br>pcb.setAutoScan( *++it == boolT() ? true : false );
<br><br>Where *++it is the iterator pointing to a QString which is the result<br>returned from the database.<br><br>boolT() returns &quot;true&quot; for postgres connections, however the database<br>will return &quot;t&quot; as an indicator for a true boolean. The converse is
<br>not a problem since psql accepts any sort of &#39;truthy&#39; value as input<br>(eg, 1, true, t, y).<br><br>I do not know if psql &lt; 8 return &quot;t&quot; or &quot;true&quot; - this is my only<br>concern. Except, that most distros will ship psql 
8.1/8.2.<br><br>I am not actually running psql so I cannot test it, it is simply a<br>theory which I am confident that I am correct with.<br><br>Thoughts please.<br><br><br>--<br>Seb Ruiz<br><br><a href="http://www.sebruiz.net/">
http://www.sebruiz.net/</a><br></blockquote></div><br><br clear="all"><br>-- <br>&quot;Happiness makes up in height what it lacks in length&quot;<br>-- Robert Frost