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 |
|---|---|
| 34 | |
| 25 | |
| 17 | |
| 16 | |
| 16 | |
| 15 | |
| 13 | |
| 13 | |
| 12 | |
| 12 |