Skip to content

Commit 025ac22

Browse files
Use len() to determine row count when using JayDeBeApi (#154)
Co-authored-by: Andre Mochinin <[email protected]>
1 parent ed40103 commit 025ac22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DatabaseLibrary/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def row_count(
133133
self._execute_sql(cur, select_statement, parameters=parameters)
134134
data = cur.fetchall()
135135
col_names = [c[0] for c in cur.description]
136-
if db_connection.module_name in ["sqlite3", "ibm_db", "ibm_db_dbi", "pyodbc"]:
136+
if db_connection.module_name in ["sqlite3", "ibm_db", "ibm_db_dbi", "pyodbc", "jaydebeapi"]:
137137
current_row_count = len(data)
138138
else:
139139
current_row_count = cur.rowcount

0 commit comments

Comments
 (0)