From 0b83355de086c4d53eedf56c3e61153f45ee9ca2 Mon Sep 17 00:00:00 2001 From: tomas Date: Wed, 15 Sep 2004 15:58:25 +0000 Subject: [PATCH] Desempilhando as metatables apos cria'-las. --- src/ls_mysql.c | 3 ++- src/ls_oci8.c | 3 ++- src/ls_odbc.c | 3 ++- src/ls_sqlite.c | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/ls_mysql.c b/src/ls_mysql.c index bcee8ad..0973016 100644 --- a/src/ls_mysql.c +++ b/src/ls_mysql.c @@ -2,7 +2,7 @@ ** LuaSQL, MySQL driver ** Authors: Eduardo Quintao ** See Copyright Notice in license.html -** $Id: ls_mysql.c,v 1.11 2004/06/08 13:00:21 tomas Exp $ +** $Id: ls_mysql.c,v 1.12 2004/09/15 15:58:25 tomas Exp $ */ #include @@ -472,6 +472,7 @@ static void create_metatables (lua_State *L) { luasql_createmeta (L, LUASQL_ENVIRONMENT_MYSQL, environment_methods); luasql_createmeta (L, LUASQL_CONNECTION_MYSQL, connection_methods); luasql_createmeta (L, LUASQL_CURSOR_MYSQL, cursor_methods); + lua_pop (L, 3); } diff --git a/src/ls_oci8.c b/src/ls_oci8.c index 190ca21..dc2279f 100644 --- a/src/ls_oci8.c +++ b/src/ls_oci8.c @@ -2,7 +2,7 @@ ** LuaSQL, Oracle driver ** Authors: Tomas Guisasola, Leonardo Godinho ** See Copyright Notice in license.html -** $Id: ls_oci8.c,v 1.17 2004/06/08 13:00:21 tomas Exp $ +** $Id: ls_oci8.c,v 1.18 2004/09/15 15:58:25 tomas Exp $ */ #include @@ -835,6 +835,7 @@ static void create_metatables (lua_State *L) { luasql_createmeta (L, LUASQL_ENVIRONMENT_OCI8, environment_methods); luasql_createmeta (L, LUASQL_CONNECTION_OCI8, connection_methods); luasql_createmeta (L, LUASQL_CURSOR_OCI8, cursor_methods); + lua_pop (L, 3); } diff --git a/src/ls_odbc.c b/src/ls_odbc.c index 1d1f316..88578bf 100644 --- a/src/ls_odbc.c +++ b/src/ls_odbc.c @@ -3,7 +3,7 @@ ** Authors: Pedro Rabinovitch, Roberto Ierusalimschy, Diego Nehab, ** Tomas Guisasola ** See Copyright Notice in license.html -** $Id: ls_odbc.c,v 1.21 2004/07/09 11:37:03 tomas Exp $ +** $Id: ls_odbc.c,v 1.22 2004/09/15 15:58:25 tomas Exp $ */ #include @@ -671,6 +671,7 @@ static void create_metatables (lua_State *L) { luasql_createmeta (L, LUASQL_ENVIRONMENT_ODBC, environment_methods); luasql_createmeta (L, LUASQL_CONNECTION_ODBC, connection_methods); luasql_createmeta (L, LUASQL_CURSOR_ODBC, cursor_methods); + lua_pop (L, 3); } diff --git a/src/ls_sqlite.c b/src/ls_sqlite.c index d9e2880..a9ca35c 100644 --- a/src/ls_sqlite.c +++ b/src/ls_sqlite.c @@ -2,7 +2,7 @@ ** LuaSQL, SQLite driver ** Author: Tiago Dionizio, Eduardo Quintao ** See Copyright Notice in license.html -** $Id: ls_sqlite.c,v 1.1 2004/08/18 18:10:37 eduquintao Exp $ +** $Id: ls_sqlite.c,v 1.2 2004/09/15 15:58:25 tomas Exp $ */ #include @@ -519,6 +519,7 @@ static void create_metatables (lua_State *L) luasql_createmeta(L, LUASQL_ENVIRONMENT_SQLITE, environment_methods); luasql_createmeta(L, LUASQL_CONNECTION_SQLITE, connection_methods); luasql_createmeta(L, LUASQL_CURSOR_SQLITE, cursor_methods); + lua_pop (L, 3); } /*