diff options
| author | 2006-07-22 16:02:17 +0000 | |
|---|---|---|
| committer | 2006-07-22 16:02:17 +0000 | |
| commit | c9408c6c43e5ea2be81fe070c3e96f84f8c6d5dc (patch) | |
| tree | 2c09cf246e7f5d20662d66a994836fc3aa852aba /src/modules/extra/m_mysql.cpp | |
| parent | Change to doxygen-friendly comments, and actually document the lot (diff) | |
Alter for Rows() == X, Cols() == 0 for 'X rows affected' queries
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4515 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_mysql.cpp')
| -rw-r--r-- | src/modules/extra/m_mysql.cpp | 8 |
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() |
