Desempilhando as metatables apos cria'-las.

This commit is contained in:
tomas 2004-09-15 15:58:25 +00:00
parent e074166070
commit 0b83355de0
4 changed files with 8 additions and 4 deletions

View File

@ -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 <assert.h>
@ -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);
}

View File

@ -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 <assert.h>
@ -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);
}

View File

@ -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 <assert.h>
@ -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);
}

View File

@ -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 <stdio.h>
@ -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);
}
/*