I'm using python 2.7 with jaydebeapi
and informix jdbc driver (ifxjdbc.jar)
to execute a select on a table and all the fields have u'some_text'
Here's my code
curs = conn.cursor()
curs.execute("SELECT * FROM table1")
res = curs.fetchall()
print res
using
res_final=[str(x) for x in res[0]]
print res_final
converts the first line in the result correctly. Any idea how can I convert all the selected rows? I had the same problem with sqlite3 but adding
conn.text_factory=str
solved my problem. I can't find something that works in the same way for jaydebeapi.