From: Tor Didriksen Date: July 23 2010 3:09pm Subject: bzr commit into mysql-next-mr branch (tor.didriksen:3169) List-Archive: http://lists.mysql.com/commits/114239 Message-Id: <20100723150929.935E03719@atum07.norway.sun.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8973831485562289076==" --===============8973831485562289076== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline #At file:///export/home/didrik/repo/next-mr-wl5308-br1/ based on revid:kevin.lewis@stripped 3169 Tor Didriksen 2010-07-23 Make table_share_builder compile standalone added: unittest/gunit/table_share_builder-t.cc modified: sql/table_share_builder.cc sql/table_share_builder.h unittest/gunit/CMakeLists.txt === modified file 'sql/table_share_builder.cc' --- a/sql/table_share_builder.cc 2010-07-23 14:20:16 +0000 +++ b/sql/table_share_builder.cc 2010-07-23 14:55:58 +0000 @@ -33,7 +33,7 @@ #include "my_global.h" #include "sql_base.h" -#include "Table_share_builder.h" +#include "table_share_builder.h" Table_share_builder::Table_share_builder() === modified file 'sql/table_share_builder.h' --- a/sql/table_share_builder.h 2010-07-23 14:20:16 +0000 +++ b/sql/table_share_builder.h 2010-07-23 14:55:58 +0000 @@ -18,6 +18,12 @@ #ifndef TABLE_SHARE_BUILDER_H #define TABLE_SHARE_BUILDER_H +#include "my_global.h" +#include "mysql_com.h" +#include "my_base.h" +#include "my_alloc.h" +#include "key.h" + /** @file sql/table_share_builder.h @brief Class for building a TABLE_SHARE and adding it to table_def_cache. @@ -35,6 +41,10 @@ ::finalize() */ +struct handlerton; +struct TABLE_SHARE; +class Field; + // This define is used in 6.0 with MariaDB, using MyISAM define for now. #define ENGINE_UNIQUE_HASH_LENGTH MI_UNIQUE_HASH_LENGTH === modified file 'unittest/gunit/CMakeLists.txt' --- a/unittest/gunit/CMakeLists.txt 2010-06-18 09:09:40 +0000 +++ b/unittest/gunit/CMakeLists.txt 2010-07-23 14:55:58 +0000 @@ -206,7 +206,7 @@ IF (CMAKE_CXX_COMPILER_ID STREQUAL "SunP ENDIF() # Add tests (link them with sql library) -SET(TESTS sql_list mdl mdl_mytap thread_utils) +SET(TESTS sql_list mdl mdl_mytap table_share_builder thread_utils) FOREACH(test ${TESTS}) ADD_EXECUTABLE(${test}-t ${test}-t.cc) TARGET_LINK_LIBRARIES(${test}-t gunit sql) === added file 'unittest/gunit/table_share_builder-t.cc' --- a/unittest/gunit/table_share_builder-t.cc 1970-01-01 00:00:00 +0000 +++ b/unittest/gunit/table_share_builder-t.cc 2010-07-23 14:55:58 +0000 @@ -0,0 +1,20 @@ +/* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. + + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 of the License. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + +// Must include gtest first, since MySQL source has macros for min() etc .... +#include + +#include "table_share_builder.h" --===============8973831485562289076== MIME-Version: 1.0 Content-Type: text/bzr-bundle; charset="us-ascii"; name="bzr/tor.didriksen@stripped" Content-Transfer-Encoding: 7bit Content-Disposition: inline # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: tor.didriksen@stripped\ # xq1pud7k14ta07xp # target_branch: file:///export/home/didrik/repo/next-mr-wl5308-br1/ # testament_sha1: 93c9fef2371453fabf2f7602d43ca2a6c313c11c # timestamp: 2010-07-23 17:09:29 +0200 # base_revision_id: kevin.lewis@stripped\ # wab1b12i0wn87w4r # # Begin bundle IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWQzeDysAA8RfgEAQWHf//3/n /qC////wYAg33i6d2AA1mZQAHQ6ooAaKnonqaADIGjQ9QyDQDQAAaADSATRijZMkmQAAAA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