summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-22 10:41:08 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-22 10:41:08 +0000
commit89bf10915cb8ec2aeac8446a8a458a5061183b11 (patch)
tree1ba2d5fe551a3ded81757df733138d3dea34616b /src
parent01c5bba74187def0a737a077bd1b999a55bac075 (diff)
Add new QREPLY_FAIL error code (bad query syntax etc)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4496 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/m_sqlv2.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/extra/m_sqlv2.h b/src/modules/extra/m_sqlv2.h
index 3635129d5..e50703ea1 100644
--- a/src/modules/extra/m_sqlv2.h
+++ b/src/modules/extra/m_sqlv2.h
@@ -15,7 +15,7 @@
#define SQLRESID "SQLv2 Result"
#define SQLSUCCESS "You shouldn't be reading this (success)"
-enum SQLerrorNum { NO_ERROR, BAD_DBID, BAD_CONN, QSEND_FAIL };
+enum SQLerrorNum { NO_ERROR, BAD_DBID, BAD_CONN, QSEND_FAIL, QREPLY_FAIL };
typedef std::deque<std::string> ParamL;
class SQLexception : public ModuleException
@@ -69,6 +69,8 @@ public:
return "Invalid connection";
case QSEND_FAIL:
return "Sending query failed";
+ case QREPLY_FAIL:
+ return "Getting query result failed";
default:
return "Unknown error";
}