<?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 for Geert JM Vanderkelen</title>
	<atom:link href="http://geert.vanderkelen.org/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://geert.vanderkelen.org</link>
	<description>#$%!#€</description>
	<lastBuildDate>Mon, 13 May 2013 07:36:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>Comment on Automatic reconnect in MySQL Connector/Python? by Geert Vanderkelen</title>
		<link>http://geert.vanderkelen.org/connector-python-auto-reconnect/#comment-2854</link>
		<dc:creator>Geert Vanderkelen</dc:creator>
		<pubDate>Mon, 13 May 2013 07:36:09 +0000</pubDate>
		<guid isPermaLink="false">http://geert.vanderkelen.org/?p=842#comment-2854</guid>
		<description><![CDATA[&lt;a href=&quot;#comment-2851&quot; rel=&quot;nofollow&quot;&gt;@Joe &lt;/a&gt;
The example in this blog post is not a &#039;solution&#039;. It shows a possible way of using the reconnect()-method. How you use it is totally up to you.]]></description>
		<content:encoded><![CDATA[<p><a href="#comment-2851" rel="nofollow">@Joe </a><br />
The example in this blog post is not a &#8216;solution&#8217;. It shows a possible way of using the reconnect()-method. How you use it is totally up to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Automatic reconnect in MySQL Connector/Python? by Joe</title>
		<link>http://geert.vanderkelen.org/connector-python-auto-reconnect/#comment-2851</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Mon, 13 May 2013 05:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://geert.vanderkelen.org/?p=842#comment-2851</guid>
		<description><![CDATA[&quot;Would the above use case of reconnecting be enough?&quot;

So, let me get this straight... your proposed solution is for me to back and wrap every one of my cursor.execute() statments with the 14 extra lines you&#039;ve suggested?]]></description>
		<content:encoded><![CDATA[<p>&#8220;Would the above use case of reconnecting be enough?&#8221;</p>
<p>So, let me get this straight&#8230; your proposed solution is for me to back and wrap every one of my cursor.execute() statments with the 14 extra lines you&#8217;ve suggested?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Connector/Python 1.0.9 available for download by Geert Vanderkelen</title>
		<link>http://geert.vanderkelen.org/mysql-connector-python-1-0-9/#comment-2777</link>
		<dc:creator>Geert Vanderkelen</dc:creator>
		<pubDate>Fri, 03 May 2013 09:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://geert.vanderkelen.org/?p=1017#comment-2777</guid>
		<description><![CDATA[&lt;a href=&quot;#comment-2776&quot; rel=&quot;nofollow&quot;&gt;@zhang &lt;/a&gt; 
Blog is not a place for discussions. Please use the MySQL forums: http://forums.mysql.com/list.php?50

Note that &#039;with_rows&#039; means that the query you execute _could_ return rows. It doesn&#039;t mean it &#039;has rows&#039;. It is meant to distinct between SELECT and INSERT for example.]]></description>
		<content:encoded><![CDATA[<p><a href="#comment-2776" rel="nofollow">@zhang </a><br />
Blog is not a place for discussions. Please use the MySQL forums: <a href="http://forums.mysql.com/list.php?50" rel="nofollow">http://forums.mysql.com/list.php?50</a></p>
<p>Note that &#8216;with_rows&#8217; means that the query you execute _could_ return rows. It doesn&#8217;t mean it &#8216;has rows&#8217;. It is meant to distinct between SELECT and INSERT for example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Connector/Python 1.0.9 available for download by zhang</title>
		<link>http://geert.vanderkelen.org/mysql-connector-python-1-0-9/#comment-2776</link>
		<dc:creator>zhang</dc:creator>
		<pubDate>Fri, 03 May 2013 08:34:34 +0000</pubDate>
		<guid isPermaLink="false">http://geert.vanderkelen.org/?p=1017#comment-2776</guid>
		<description><![CDATA[sorry...many questions

I am puzzled about with_rows. &quot;This read-only property will return True when the result of the executed operation provides rows.&quot; -- from RefMan  But, as follow is :

query = (&quot;select name from test_innodb where age &gt; 100&quot;)  ## empty rows

for result in cur.execute(query):
     if result.with_rows:
           print (&quot;Statement: {0}&quot;.format(result.statement))

I found result.with_rows was always True if query is just SELECT statement whose result is empty or not.

Thanks,]]></description>
		<content:encoded><![CDATA[<p>sorry&#8230;many questions</p>
<p>I am puzzled about with_rows. &#8220;This read-only property will return True when the result of the executed operation provides rows.&#8221; &#8212; from RefMan  But, as follow is :</p>
<p>query = (&#8220;select name from test_innodb where age &gt; 100&#8243;)  ## empty rows</p>
<p>for result in cur.execute(query):<br />
     if result.with_rows:<br />
           print (&#8220;Statement: {0}&#8221;.format(result.statement))</p>
<p>I found result.with_rows was always True if query is just SELECT statement whose result is empty or not.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Connector/Python 1.0.9 available for download by zhang</title>
		<link>http://geert.vanderkelen.org/mysql-connector-python-1-0-9/#comment-2775</link>
		<dc:creator>zhang</dc:creator>
		<pubDate>Fri, 03 May 2013 08:05:56 +0000</pubDate>
		<guid isPermaLink="false">http://geert.vanderkelen.org/?p=1017#comment-2775</guid>
		<description><![CDATA[ya..it is cool

this afternoon I also tried lastrowid like MySQLdb. It is excited to me that *SHE* is already there :P
rowcount is also available even though it is yet to document. 

thanks,]]></description>
		<content:encoded><![CDATA[<p>ya..it is cool</p>
<p>this afternoon I also tried lastrowid like MySQLdb. It is excited to me that *SHE* is already there :P<br />
rowcount is also available even though it is yet to document. </p>
<p>thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Connector/Python 1.0.9 available for download by Geert Vanderkelen</title>
		<link>http://geert.vanderkelen.org/mysql-connector-python-1-0-9/#comment-2774</link>
		<dc:creator>Geert Vanderkelen</dc:creator>
		<pubDate>Fri, 03 May 2013 07:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://geert.vanderkelen.org/?p=1017#comment-2774</guid>
		<description><![CDATA[&lt;a href=&quot;#comment-2773&quot; rel=&quot;nofollow&quot;&gt;@zhang &lt;/a&gt; 
It is.. indeed not in the documentation. That&#039;s something we need to fix.
However, it is part of PEP-249, and it is a cursor property called &#039;lastrowid&#039;

Example:

&gt;&gt;&gt; import mysql.connector
&gt;&gt;&gt; cnx = mysql.connector.connect(.......)
&gt;&gt;&gt; cur = cnx.cursor()
&gt;&gt;&gt; cur.execute(&quot;INSERT INTO t1 (c1) VALUES (&#039;ham&#039;)&quot;)
&gt;&gt;&gt; cur.lastrowid
1]]></description>
		<content:encoded><![CDATA[<p><a href="#comment-2773" rel="nofollow">@zhang </a><br />
It is.. indeed not in the documentation. That&#8217;s something we need to fix.<br />
However, it is part of PEP-249, and it is a cursor property called &#8216;lastrowid&#8217;</p>
<p>Example:</p>
<p>>>> import mysql.connector<br />
>>> cnx = mysql.connector.connect(&#8230;&#8230;.)<br />
>>> cur = cnx.cursor()<br />
>>> cur.execute(&#8220;INSERT INTO t1 (c1) VALUES (&#8216;ham&#8217;)&#8221;)<br />
>>> cur.lastrowid<br />
1</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL Connector/Python 1.0.9 available for download by zhang</title>
		<link>http://geert.vanderkelen.org/mysql-connector-python-1-0-9/#comment-2773</link>
		<dc:creator>zhang</dc:creator>
		<pubDate>Fri, 03 May 2013 06:08:16 +0000</pubDate>
		<guid isPermaLink="false">http://geert.vanderkelen.org/?p=1017#comment-2773</guid>
		<description><![CDATA[Hi Geert,

mysql-connector-python dose not support last_insert_id yet, right? I could not find any function about it in refman.

Thanks,]]></description>
		<content:encoded><![CDATA[<p>Hi Geert,</p>
<p>mysql-connector-python dose not support last_insert_id yet, right? I could not find any function about it in refman.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on VirtualBox: give Host-Only access to internet by kjv007</title>
		<link>http://geert.vanderkelen.org/virtualbox-give-host-only-access-to-internet/#comment-2767</link>
		<dc:creator>kjv007</dc:creator>
		<pubDate>Thu, 02 May 2013 09:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://geert.vanderkelen.org/?p=581#comment-2767</guid>
		<description><![CDATA[Awesome... this saves me a lot of time :)]]></description>
		<content:encoded><![CDATA[<p>Awesome&#8230; this saves me a lot of time :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fetching rows as dictionaries with MySQL Connector/Python by Geert Vanderkelen</title>
		<link>http://geert.vanderkelen.org/fetching-rows-as-dictionaries-with-mysql-connectorpython/#comment-2747</link>
		<dc:creator>Geert Vanderkelen</dc:creator>
		<pubDate>Mon, 22 Apr 2013 10:33:52 +0000</pubDate>
		<guid isPermaLink="false">http://geert.vanderkelen.org/?p=356#comment-2747</guid>
		<description><![CDATA[&lt;a href=&quot;#comment-2746&quot; rel=&quot;nofollow&quot;&gt;@Thomas &lt;/a&gt; 
Unicode is important, so better start getting used to it. In Python v3 strings are Unicode.
That said, in Python v2, simply use &#039;use_unicode=False&#039; as connection argument, or use &lt;str&gt;.encode(&#039;utf8&#039;) on the result.]]></description>
		<content:encoded><![CDATA[<p><a href="#comment-2746" rel="nofollow">@Thomas </a><br />
Unicode is important, so better start getting used to it. In Python v3 strings are Unicode.<br />
That said, in Python v2, simply use &#8216;use_unicode=False&#8217; as connection argument, or use <str>.encode(&#8216;utf8&#8242;) on the result.</str></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fetching rows as dictionaries with MySQL Connector/Python by Thomas</title>
		<link>http://geert.vanderkelen.org/fetching-rows-as-dictionaries-with-mysql-connectorpython/#comment-2746</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Mon, 22 Apr 2013 10:22:44 +0000</pubDate>
		<guid isPermaLink="false">http://geert.vanderkelen.org/?p=356#comment-2746</guid>
		<description><![CDATA[Hi Geert,

I&#039;m searching quite a while to get rid of a certain problem, maybe you could help me...

You wrote:
The above results in an output like this:
1
[{u&#039;c1&#039;: datetime.datetime(2010, 10, 13, 8, 55, 35), u&#039;c2&#039;: u&#039;ham&#039;},
 {u&#039;c1&#039;: datetime.datetime(2010, 10, 13, 8, 55, 38), u&#039;c2&#039;: u&#039;spam&#039;}]

Now you&#039;re output is in unicode and I like it to be just printed to the screen as normal text.
My question to you is if you know how to convert it or to get rid of the unicode characters??

Thanks!]]></description>
		<content:encoded><![CDATA[<p>Hi Geert,</p>
<p>I&#8217;m searching quite a while to get rid of a certain problem, maybe you could help me&#8230;</p>
<p>You wrote:<br />
The above results in an output like this:<br />
1<br />
[{u'c1': datetime.datetime(2010, 10, 13, 8, 55, 35), u'c2': u'ham'},<br />
 {u'c1': datetime.datetime(2010, 10, 13, 8, 55, 38), u'c2': u'spam'}]</p>
<p>Now you&#8217;re output is in unicode and I like it to be just printed to the screen as normal text.<br />
My question to you is if you know how to convert it or to get rid of the unicode characters??</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
