summaryrefslogtreecommitdiff
path: root/lib/LuaSQL.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/LuaSQL.cc')
-rw-r--r--lib/LuaSQL.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/LuaSQL.cc b/lib/LuaSQL.cc
index 8e69ebb..02ee103 100644
--- a/lib/LuaSQL.cc
+++ b/lib/LuaSQL.cc
@@ -1,3 +1,6 @@
+#ifdef _WIN32
+#include <winsock.h>
+#endif
#include <mysql.h>
#include "LuaSQL.h"
@@ -96,9 +99,9 @@ int sLua_SQLConnection::SQLConnection_proceed(Lua * L, int n, SQLConnection * c,
case SQLCONNECTION_INSERTID:
L->push((lua_Number) c->insertid());
break;
- case SQLCONNECTION_ERRNO:
- L->push((lua_Number) c->errno());
- break;
+// case SQLCONNECTION_ERRNO:
+// L->push((lua_Number) c->errno());
+// break;
case SQLCONNECTION_ERROR:
L->push(c->error());
break;