mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-29397 CONNECT engine: Fix note turning into error (#2325)
* MDEV-29397 Fix note turning into error ODBC Rewind triggered an error with no SQL, but this is sometimes a valid condition (as can be seen with other classes). Setting this to a 0 return stops errors firing when they shouldn't. Also fixes ASAN hits from in MDEV-29687 tabext.cpp.
This commit is contained in:
@@ -2582,7 +2582,7 @@ int ODBConn::Rewind(char *sql, ODBCCOL *tocols)
|
||||
int rc, rbuf = -1;
|
||||
|
||||
if (!m_hstmt)
|
||||
rbuf = -1;
|
||||
rbuf = 0;
|
||||
else if (m_Full)
|
||||
rbuf = m_Rows; // No need to "rewind"
|
||||
else if (m_Scrollable) {
|
||||
|
Reference in New Issue
Block a user