pysqlite2 fetching from select different than pysqlite?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • schwehr@gmail.com

    #1

    pysqlite2 fetching from select different than pysqlite?

    Hi All,

    I have some old pysqlite 1.x code that uses a pattern like this:

    cu.execute('SEL ECT weight FROM weights WHERE samplename="foo ")
    row = cu.fetchone()
    weight=row['weight']

    It seems like lookups by name are no longer supported in pysqlite2. Is
    that true? And if not, and I want to do a SELECT * FROM table and go
    through name by name, how can I do this?

    Hopefully this is not a FAQ somewhere that I've overlooked!

    Thanks!
    -kurt

Working...