summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_mysql.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extra/m_mysql.cpp')
-rw-r--r--src/modules/extra/m_mysql.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp
index 38c3b4c93..daf59a5d9 100644
--- a/src/modules/extra/m_mysql.cpp
+++ b/src/modules/extra/m_mysql.cpp
@@ -272,13 +272,7 @@ class MySQLresult : public SQLresult
virtual int Rows()
{
- /* An INSERT can return 0 columns, but N rows. This is unsafe to
- * allow the user to 'see'. Go figure. I hate you, MySQL devs.
- */
- if (colnames.size())
- return rows;
- else
- return 0;
+ return rows;
}
virtual int Cols()