summaryrefslogtreecommitdiff
path: root/lib/SQL.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SQL.cc')
-rw-r--r--lib/SQL.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/SQL.cc b/lib/SQL.cc
index 35b005d..6ce606c 100644
--- a/lib/SQL.cc
+++ b/lib/SQL.cc
@@ -3,6 +3,9 @@
#endif
#ifdef HAVE_MYSQL
+#ifdef _WIN32
+#include <winsock.h>
+#endif
#include "SQL.h"
@@ -91,9 +94,9 @@ int SQLConnection::insertid() {
return ii;
}
-int SQLConnection::errno() {
- return mysql_errno(&con);
-}
+//int SQLConnection::errno() {
+// return mysql_errno(&con);
+//}
String SQLConnection::error() {
return mysql_error(&con);