<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1409172989577173756.post3455780487685462943..comments</id><updated>2008-01-18T06:56:51.433-08:00</updated><title type='text'>Comments on informixdb.connect: Filling In The Blanks</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://informixdb.blogspot.com/feeds/3455780487685462943/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1409172989577173756/3455780487685462943/comments/default'/><link rel='alternate' type='text/html' href='http://informixdb.blogspot.com/2007/07/filling-in-blanks.html'/><author><name>Carsten Haese</name><uri>http://www.blogger.com/profile/08698786557567115810</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1409172989577173756.post-6952708321533587669</id><published>2008-01-18T06:56:00.000-08:00</published><updated>2008-01-18T06:56:00.000-08:00</updated><title type='text'>Regarding reading sblob object, here is the code e...</title><content type='html'>Regarding reading sblob object, here is the code example:&lt;BR/&gt;&lt;BR/&gt;import informixdb&lt;BR/&gt;import datetime&lt;BR/&gt;def main(argv=None):&lt;BR/&gt;    if argv is None:&lt;BR/&gt;        argv = sys.argv&lt;BR/&gt;&lt;BR/&gt;    aud = audit()&lt;BR/&gt;    aud.init_connection()&lt;BR/&gt;    aud.analiza()&lt;BR/&gt;    aud.close_connection()&lt;BR/&gt;class audit():&lt;BR/&gt;    def init_connection(self):&lt;BR/&gt;           print 'init connection'&lt;BR/&gt;           audit.conn = informixdb.connect('database_name@instance'&lt;BR/&gt;                                                      ,user='a'&lt;BR/&gt;                                                      ,password='a')&lt;BR/&gt;           audit.cursor = audit.conn.cursor()&lt;BR/&gt;           return 1&lt;BR/&gt;    def analiza(self):&lt;BR/&gt;           print 'analiza'&lt;BR/&gt;           audit.cursor.execute("""select message from poll_manager&lt;BR/&gt;                                            where appid='user_name'&lt;BR/&gt;                                            and to_char (time, '%Y%m%d')&gt;='20080112'&lt;BR/&gt;                                            and to_char (time, '%Y%m%d')&lt;'20080113'""")&lt;BR/&gt;           hl7 = audit.cursor.fetchone()[0]&lt;BR/&gt;           hl7.open()&lt;BR/&gt;           f_hl7 = hl7.read(10000)&lt;BR/&gt;           print f_hl7           &lt;BR/&gt;    def connection(self):&lt;BR/&gt;           print 'close connection'&lt;BR/&gt;           self.cursor.close()&lt;BR/&gt;           self.conn.close()&lt;BR/&gt;if __name__ == '__main__':                &lt;BR/&gt;           main()</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1409172989577173756/3455780487685462943/comments/default/6952708321533587669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1409172989577173756/3455780487685462943/comments/default/6952708321533587669'/><link rel='alternate' type='text/html' href='http://informixdb.blogspot.com/2007/07/filling-in-blanks.html?showComment=1200668160000#c6952708321533587669' title=''/><author><name>Pajton</name><uri>http://www.blogger.com/profile/01048765558237756781</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://informixdb.blogspot.com/2007/07/filling-in-blanks.html' ref='tag:blogger.com,1999:blog-1409172989577173756.post-3455780487685462943' source='http://www.blogger.com/feeds/1409172989577173756/posts/default/3455780487685462943' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1409172989577173756.post-4922498937362724057</id><published>2007-07-24T07:35:00.000-07:00</published><updated>2007-07-24T07:35:00.000-07:00</updated><title type='text'>Great article, Carsten.  Thanks.</title><content type='html'>Great article, Carsten.  Thanks.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1409172989577173756/3455780487685462943/comments/default/4922498937362724057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1409172989577173756/3455780487685462943/comments/default/4922498937362724057'/><link rel='alternate' type='text/html' href='http://informixdb.blogspot.com/2007/07/filling-in-blanks.html?showComment=1185287700000#c4922498937362724057' title=''/><author><name>Tomade</name><uri>http://www.blogger.com/profile/08420204575955455303</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://informixdb.blogspot.com/2007/07/filling-in-blanks.html' ref='tag:blogger.com,1999:blog-1409172989577173756.post-3455780487685462943' source='http://www.blogger.com/feeds/1409172989577173756/posts/default/3455780487685462943' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1409172989577173756.post-9022751188090022353</id><published>2007-07-23T13:30:00.000-07:00</published><updated>2007-07-23T13:30:00.000-07:00</updated><title type='text'>"Standard" is to be taken with a grain of salt. sq...</title><content type='html'>"Standard" is to be taken with a grain of salt. sqlite supports named, as does cx_Oracle, although I heard cx_Oracle doesn't allow the dictionary to be over-specified. If that's true, the locals() trick goes out the window.&lt;BR/&gt;&lt;BR/&gt;The DB-SIG mailing list has recently reached a consensus for making named parameter support mandatory in a future version of the API spec. Until that happens, you should always check with the documentation of the API in question which parameter style(s) it supports.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1409172989577173756/3455780487685462943/comments/default/9022751188090022353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1409172989577173756/3455780487685462943/comments/default/9022751188090022353'/><link rel='alternate' type='text/html' href='http://informixdb.blogspot.com/2007/07/filling-in-blanks.html?showComment=1185222600000#c9022751188090022353' title=''/><author><name>Carsten Haese</name><uri>http://www.blogger.com/profile/08698786557567115810</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='03426955416749177734'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://informixdb.blogspot.com/2007/07/filling-in-blanks.html' ref='tag:blogger.com,1999:blog-1409172989577173756.post-3455780487685462943' source='http://www.blogger.com/feeds/1409172989577173756/posts/default/3455780487685462943' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-1409172989577173756.post-7693698871579924759</id><published>2007-07-23T12:56:00.000-07:00</published><updated>2007-07-23T12:56:00.000-07:00</updated><title type='text'>Hey!The named parameters is probably the best form...</title><content type='html'>Hey!&lt;BR/&gt;The named parameters is probably the best form since it appears to be a "standard" across multiple databases.&lt;BR/&gt;&lt;BR/&gt;Love that use of locals(). My solution was to pass a dictionary in as one of my parameters and use the values as needed.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1409172989577173756/3455780487685462943/comments/default/7693698871579924759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1409172989577173756/3455780487685462943/comments/default/7693698871579924759'/><link rel='alternate' type='text/html' href='http://informixdb.blogspot.com/2007/07/filling-in-blanks.html?showComment=1185220560000#c7693698871579924759' title=''/><author><name>grendal</name><uri>http://www.blogger.com/profile/03873421305920735454</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://informixdb.blogspot.com/2007/07/filling-in-blanks.html' ref='tag:blogger.com,1999:blog-1409172989577173756.post-3455780487685462943' source='http://www.blogger.com/feeds/1409172989577173756/posts/default/3455780487685462943' type='text/html'/></entry></feed>