From 89bf10915cb8ec2aeac8446a8a458a5061183b11 Mon Sep 17 00:00:00 2001 From: om Date: Sat, 22 Jul 2006 10:41:08 +0000 Subject: 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 --- src/modules/extra/m_sqlv2.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 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"; } -- cgit v1.2.3