Re: Error using row object as args for a query

TiNo <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Message-ID <[email protected]>
>
> Gerhard wrote:
> If you use a sequence as parameter, you need to use the question mark as
> placeholder, and if you use a dictionary as parameter, you need to use
> named placeholders (:name). So you can use either


I know, and that was not my question.
I try to use a Row object as parameter, but what is a Row object when
row_factory is set to pysqlite2.dbapi2.Row?
when I try (as I do in my example code):
>>> print x['a']
it prints the correct value, which makes it appear to be a dictionary, but
apparently it isn't as my code is not working.

Can I (easily) make a dict of a Row object, and therefore use named
placeholders?

_______________________________________________
pysqlite mailing list
pysqlite-IAPFreCvJWPBWskQ1e/[email protected]
http://lists.initd.org/mailman/listinfo/pysqlite
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.