summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_sqlv2.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-22 16:02:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-22 16:02:17 +0000
commitc9408c6c43e5ea2be81fe070c3e96f84f8c6d5dc (patch)
tree2c09cf246e7f5d20662d66a994836fc3aa852aba /src/modules/extra/m_sqlv2.h
parentacb8786c19bc26a95ae68817cf5f8ec932e67b88 (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_sqlv2.h')
-rw-r--r--src/modules/extra/m_sqlv2.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/modules/extra/m_sqlv2.h b/src/modules/extra/m_sqlv2.h
index 336fc8903..3272efec5 100644
--- a/src/modules/extra/m_sqlv2.h
+++ b/src/modules/extra/m_sqlv2.h
@@ -315,16 +315,19 @@ public:
* Return the number of rows in the result
* Note that if you have perfomed an INSERT
* or UPDATE query or other query which will
- * not return rows, this value will NOT be
- * the number of affected rows, as this would
- * then indicate there are rows in the set,
- * which there are not.
+ * not return rows, this will return the
+ * number of affected rows, and SQLresult::Cols()
+ * will contain 0. In this case you SHOULD NEVER
+ * access any of the result set rows, as there arent any!
* @returns Number of rows in the result set.
*/
virtual int Rows() = 0;
/**
- * Return the number of columns in the result
+ * Return the number of columns in the result.
+ * If you performed an UPDATE or INSERT which
+ * does not return a dataset, this value will
+ * be 0.
* @returns Number of columns in the result set.
*/
virtual int Cols() = 0;