/* Creates two tables with the names and the types of the columns.  */
static void create_colinfo(lua_State *L, cur_data *cur)
/* Creates two tables with the names and the types of the columns.  */
static void create_colinfo(lua_State *L, cur_data *cur)
{
		ret = SQLDescribeCol(cur->hstmt, i, buffer, sizeof(buffer), 
                &namelen, &datatype, NULL, NULL, NULL);
		lua_pushstring (L, buffer);
		lua_rawseti (L, names, i);
		lua_pushstring(L, sqltypetolua(datatype));
		lua_rawseti (L, types, i);
	}
	cur->colnames = luaL_ref (L, LUA_REGISTRYINDEX);
	cur->coltypes = luaL_ref (L, LUA_REGISTRYINDEX);
}