![](https://community.sap.com/html/assets/img_tile-default.png)
conn = sybpydb.connect(user='user', password='password')
cur = conn.cursor()
cur.execute("if 1=1 select 1")
# This fetchmany call will return the error:
# sybpydb.ProgrammingError: ('No result set to fetch rows from: DBCAPI layer: unable to get origin message string: error string not available', 134349063)
rows=cur.fetchmany()
for row in rows:
print(f"row={row}")
sybpydb.ProgrammingError:
('No result set to fetch rows from: DBCAPI layer:
unable to get origin message string: error string not available', 134349063)
conn = sybpydb.connect(user='user', password='password')
cur = conn.cursor()
cur.execute("if 1=1 select 1")
cur.nextset()
rows=cur.fetchmany()
for row in rows:
print(f"row={row}")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |