summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-05-28 15:59:29 +0500
committerunknown <hf@deer.(none)>2004-05-28 15:59:29 +0500
commit431d0e610114110233b1cccc1f8a1d6d49951509 (patch)
tree9ba2527c9a95020c3a8e8492a1fdec59513b2591 /sql/sql_class.h
parenta153d35c05d0c4e53ecc5d515a509177b2b1a62e (diff)
downloadmariadb-git-431d0e610114110233b1cccc1f8a1d6d49951509.tar.gz
Proposed fix for bug #3412 (embedded server: prepared statement returns
empty recordset where some records should be found) sql/ha_myisam.cc: Code simplified with vio_ok() sql/mysqld.cc: vio_ok used sql/slave.cc: vio_ok used sql/sql_class.cc: Here is the place of the error - we should not examine net.vio in embedded library sql/sql_class.h: method added to always return TRUE in embedded library, and to sheck thd.net.vio otherwise sql/sql_show.cc: code simplified with vio_ok()
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index d787dcabd00..7c8533af285 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -932,8 +932,10 @@ public:
net.last_errno= 0;
net.report_error= 0;
}
+ inline bool vio_ok() const { return net.vio; }
#else
void clear_error();
+ inline bool vio_ok() const { return true; }
#endif
inline void fatal_error()
{