From 21b13d53e892e0c147659ede4e69e47a30cd5079 Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 30 May 2007 14:02:28 +0000 Subject: Re-enabling errno. --- lib/LuaSQL.cc | 8 ++++---- lib/SQL.cc | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'lib') 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 @@ -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); -- cgit v1.2.3