summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpixel <pixel>2007-05-30 14:02:28 +0000
committerpixel <pixel>2007-05-30 14:02:28 +0000
commit21b13d53e892e0c147659ede4e69e47a30cd5079 (patch)
treeb13420035342d199edd1b539cb0ac0983b3cd1be /lib
parent7e703f0b3c2d376a62b2d3c52aa4b8d3fcdbf5f0 (diff)
Re-enabling errno.
Diffstat (limited to 'lib')
-rw-r--r--lib/LuaSQL.cc8
-rw-r--r--lib/SQL.cc8
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/LuaSQL.cc b/lib/LuaSQL.cc
index 5d93a52..5a524e5 100644
--- a/lib/LuaSQL.cc
+++ b/lib/LuaSQL.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: LuaSQL.cc,v 1.9 2007-05-30 11:57:10 pixel Exp $ */
+/* $Id: LuaSQL.cc,v 1.10 2007-05-30 14:02:28 pixel Exp $ */
#ifdef _WIN32
#include <winsock.h>
@@ -127,9 +127,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;
diff --git a/lib/SQL.cc b/lib/SQL.cc
index e8dcde0..484d2e3 100644
--- a/lib/SQL.cc
+++ b/lib/SQL.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: SQL.cc,v 1.12 2007-05-30 11:57:10 pixel Exp $ */
+/* $Id: SQL.cc,v 1.13 2007-05-30 14:02:28 pixel Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -115,9 +115,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);