diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/LuaSQL.cc | 8 | ||||
| -rw-r--r-- | lib/SQL.cc | 8 | 
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; @@ -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);  | 
