<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Objective-C: SQLite Wrapper</title>
	<atom:link href="http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/feed/" rel="self" type="application/rss+xml" />
	<link>http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/</link>
	<description>Matteo Bertozzi, Objective-C, Cocoa, C, C++, Qt4, iPhone, Mac OS X, Open Moko, Matteo Bertozzi Development</description>
	<lastBuildDate>Thu, 26 Nov 2009 15:43:17 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jacky</title>
		<link>http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/comment-page-1/#comment-145</link>
		<dc:creator>jacky</dc:creator>
		<pubDate>Thu, 26 Nov 2009 15:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://th30z.netsons.org/?p=317#comment-145</guid>
		<description>Sorry, i have not seen that :)

Thanks for you work!</description>
		<content:encoded><![CDATA[<p>Sorry, i have not seen that <img src='http://th30z.netsons.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks for you work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo Bertozzi</title>
		<link>http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/comment-page-1/#comment-144</link>
		<dc:creator>Matteo Bertozzi</dc:creator>
		<pubDate>Wed, 25 Nov 2009 18:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://th30z.netsons.org/?p=317#comment-144</guid>
		<description>Follow the above &quot;Stefano Falda&quot; comment, that contains the UTF8 fix.</description>
		<content:encoded><![CDATA[<p>Follow the above &#8220;Stefano Falda&#8221; comment, that contains the UTF8 fix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jacky</title>
		<link>http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/comment-page-1/#comment-142</link>
		<dc:creator>jacky</dc:creator>
		<pubDate>Wed, 25 Nov 2009 16:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://th30z.netsons.org/?p=317#comment-142</guid>
		<description>Hey,
thanks for the great Wrapper.

Is it possible to display characters like german umlaute (ä, ö, ü) correctly?

thanks!</description>
		<content:encoded><![CDATA[<p>Hey,<br />
thanks for the great Wrapper.</p>
<p>Is it possible to display characters like german umlaute (ä, ö, ü) correctly?</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randy</title>
		<link>http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/comment-page-1/#comment-131</link>
		<dc:creator>Randy</dc:creator>
		<pubDate>Wed, 11 Nov 2009 05:44:47 +0000</pubDate>
		<guid isPermaLink="false">http://th30z.netsons.org/?p=317#comment-131</guid>
		<description>Thank you! This saves me at least an hour of coding!</description>
		<content:encoded><![CDATA[<p>Thank you! This saves me at least an hour of coding!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/comment-page-1/#comment-125</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 15 Sep 2009 01:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://th30z.netsons.org/?p=317#comment-125</guid>
		<description>Neat wrapper. I&#039;ve noticed a few things missing.

Most importantly, since the executeQuery method returns an array of dictionary object, the only way to get the column names is to get the keys from one of the dictionary (row) objects (eg using allKeys). Unfortunately, keys are returned from a dictionary in no guaranteed order. So, although your wrapper code adds the cells of the result in order of columns generated by the SQLite query, when we extract the column names from the resulting dictionary rows, the order often changes.

For simple queries on tables, the order is most often consistent with the query. But when querying a view, for instance, the order is most often changed.

You need to provide a hook to grab the column names of the query result as an ordered array.

Similarly, you need to provide a way to grab the declared_types of the result columns.

Is there any cost to use your library? Do you accept modification submissions?

Hope this helps,
Tom</description>
		<content:encoded><![CDATA[<p>Neat wrapper. I&#8217;ve noticed a few things missing.</p>
<p>Most importantly, since the executeQuery method returns an array of dictionary object, the only way to get the column names is to get the keys from one of the dictionary (row) objects (eg using allKeys). Unfortunately, keys are returned from a dictionary in no guaranteed order. So, although your wrapper code adds the cells of the result in order of columns generated by the SQLite query, when we extract the column names from the resulting dictionary rows, the order often changes.</p>
<p>For simple queries on tables, the order is most often consistent with the query. But when querying a view, for instance, the order is most often changed.</p>
<p>You need to provide a hook to grab the column names of the query result as an ordered array.</p>
<p>Similarly, you need to provide a way to grab the declared_types of the result columns.</p>
<p>Is there any cost to use your library? Do you accept modification submissions?</p>
<p>Hope this helps,<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michelle</title>
		<link>http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/comment-page-1/#comment-105</link>
		<dc:creator>Michelle</dc:creator>
		<pubDate>Sat, 18 Jul 2009 16:40:41 +0000</pubDate>
		<guid isPermaLink="false">http://th30z.netsons.org/?p=317#comment-105</guid>
		<description>Wow.  I found this about 6 months too late.  Could have saved me a lot of effort.  I&#039;m new to DB development (laughable in itself for a 20-year veteran programmer) and I keep thinking &quot;There has to be an easier way -- so much duplicate code.&quot;  And here is the solution -- certainly good enough for my use.

Thank you!</description>
		<content:encoded><![CDATA[<p>Wow.  I found this about 6 months too late.  Could have saved me a lot of effort.  I&#8217;m new to DB development (laughable in itself for a 20-year veteran programmer) and I keep thinking &#8220;There has to be an easier way &#8212; so much duplicate code.&#8221;  And here is the solution &#8212; certainly good enough for my use.</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefano Falda</title>
		<link>http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/comment-page-1/#comment-74</link>
		<dc:creator>Stefano Falda</dc:creator>
		<pubDate>Wed, 01 Apr 2009 22:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://th30z.netsons.org/?p=317#comment-74</guid>
		<description>Hi Matteo,
I’ve found that your code has some problem with accented characters, so I’ve modified the columnData routine:
&lt;code&gt;
if (columnType == SQLITE_TEXT) {
// const unsigned char *text = sqlite3_column_text(stmt, index);
// return [NSString stringWithFormat:@&quot;%s&quot;, text];
char *str = (char *)sqlite3_column_text(stmt, index);
return (str) ? [NSString stringWithUTF8String:str] : @”&quot;;
}
&lt;/code&gt;

Thanks for posting your code.
Ste</description>
		<content:encoded><![CDATA[<p>Hi Matteo,<br />
I’ve found that your code has some problem with accented characters, so I’ve modified the columnData routine:<br />
<code><br />
if (columnType == SQLITE_TEXT) {<br />
// const unsigned char *text = sqlite3_column_text(stmt, index);<br />
// return [NSString stringWithFormat:@"%s", text];<br />
char *str = (char *)sqlite3_column_text(stmt, index);<br />
return (str) ? [NSString stringWithUTF8String:str] : @”";<br />
}<br />
</code></p>
<p>Thanks for posting your code.<br />
Ste</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pages tagged "objective"</title>
		<link>http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/comment-page-1/#comment-31</link>
		<dc:creator>Pages tagged "objective"</dc:creator>
		<pubDate>Sun, 07 Dec 2008 11:22:27 +0000</pubDate>
		<guid isPermaLink="false">http://th30z.netsons.org/?p=317#comment-31</guid>
		<description>[...] bookmarks tagged objective Objective-C: SQLite Wrapper : Th30z - Coding on th...&#160;saved by 5 others  &#160;&#160;&#160;&#160;justkidding19 bookmarked on 12/07/08 &#124; [...]</description>
		<content:encoded><![CDATA[<p>[...] bookmarks tagged objective Objective-C: SQLite Wrapper : Th30z &#8211; Coding on th&#8230;&nbsp;saved by 5 others  &nbsp;&nbsp;&nbsp;&nbsp;justkidding19 bookmarked on 12/07/08 | [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
