Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML data to string? #223

Open
wavewater opened this issue Nov 15, 2022 · 0 comments
Open

XML data to string? #223

wavewater opened this issue Nov 15, 2022 · 0 comments

Comments

@wavewater
Copy link

Perhaps this issue is similar to #76

I am reading an XML column from DB2.
When fetching and printing the data, I get an object but I want the XML string.

conn = jaydebeapi.connect(driver_class,connection_url,credentials,driver_path)

curs= conn.cursor()
curs.execute("select * from TEST_XML ")
print(curs.fetchall())

Output is:
[(1, <jaydebeapi.com.ibm.db2.jcc.am.dc object at 0x7fc8ecdc03b0>)]

Instead <jaydebeapi.com.ibm.db2.jcc.am.dc object at 0x7fc8ecdc03b0> I would like to get the XML String

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant