You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-537 Regression test doesn't tolerate 'failed' in stderr, stdout.
I reformulate the messages. Changed version in preprocessor conditions to avoid compilation warnings in Debian 9. Disabled sign-compare check for generated files in DML/DDL.
This commit is contained in:
@ -9,6 +9,8 @@ ADD_CUSTOM_COMMAND(
|
|||||||
DEPENDS ddl.y ddl.l
|
DEPENDS ddl.y ddl.l
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set_source_files_properties(ddl-scan.cpp PROPERTIES COMPILE_FLAGS -Wno-sign-compare)
|
||||||
|
|
||||||
# Parser puts extra info to stderr.
|
# Parser puts extra info to stderr.
|
||||||
MY_CHECK_AND_SET_COMPILER_FLAG("-DYYDEBUG=1" DEBUG)
|
MY_CHECK_AND_SET_COMPILER_FLAG("-DYYDEBUG=1" DEBUG)
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ ADD_CUSTOM_COMMAND(
|
|||||||
DEPENDS dml.y dml.l
|
DEPENDS dml.y dml.l
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set_source_files_properties(dml-scan.cpp PROPERTIES COMPILE_FLAGS -Wno-sign-compare)
|
||||||
|
|
||||||
########### next target ###############
|
########### next target ###############
|
||||||
|
|
||||||
|
@ -3097,9 +3097,6 @@ int ha_calpont_impl_write_row(uchar* buf, TABLE* table)
|
|||||||
|
|
||||||
int ha_calpont_impl_update_row()
|
int ha_calpont_impl_update_row()
|
||||||
{
|
{
|
||||||
//@Bug 2540. Return the correct error code.
|
|
||||||
THD* thd = current_thd;
|
|
||||||
|
|
||||||
if (get_fe_conn_info_ptr() == NULL)
|
if (get_fe_conn_info_ptr() == NULL)
|
||||||
set_fe_conn_info_ptr((void*)new cal_connection_info());
|
set_fe_conn_info_ptr((void*)new cal_connection_info());
|
||||||
|
|
||||||
@ -3114,9 +3111,6 @@ int ha_calpont_impl_update_row()
|
|||||||
|
|
||||||
int ha_calpont_impl_delete_row()
|
int ha_calpont_impl_delete_row()
|
||||||
{
|
{
|
||||||
//@Bug 2540. Return the correct error code.
|
|
||||||
THD* thd = current_thd;
|
|
||||||
|
|
||||||
if (get_fe_conn_info_ptr() == NULL)
|
if (get_fe_conn_info_ptr() == NULL)
|
||||||
set_fe_conn_info_ptr((void*)new cal_connection_info());
|
set_fe_conn_info_ptr((void*)new cal_connection_info());
|
||||||
|
|
||||||
|
@ -53,8 +53,6 @@ void bailout(char* error, const string& funcName)
|
|||||||
|
|
||||||
int64_t idblocalpm()
|
int64_t idblocalpm()
|
||||||
{
|
{
|
||||||
THD* thd = current_thd;
|
|
||||||
|
|
||||||
if (get_fe_conn_info_ptr() == NULL)
|
if (get_fe_conn_info_ptr() == NULL)
|
||||||
set_fe_conn_info_ptr((void*)new cal_connection_info());
|
set_fe_conn_info_ptr((void*)new cal_connection_info());
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ int main(int argc, char** argv)
|
|||||||
// set effective ID to root
|
// set effective ID to root
|
||||||
if( setuid( 0 ) < 0 )
|
if( setuid( 0 ) < 0 )
|
||||||
{
|
{
|
||||||
std::cerr << " colxml: setuid failed " << std::endl;
|
std::cerr << " colxml: couldn't set uid " << std::endl;
|
||||||
}
|
}
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
WriteEngine::Config::initConfigCache(); // load Columnstore.xml config settings
|
WriteEngine::Config::initConfigCache(); // load Columnstore.xml config settings
|
||||||
|
@ -2450,7 +2450,7 @@ int64_t DataConvert::intToDate(int64_t data)
|
|||||||
|
|
||||||
// this snprintf call causes a compiler warning b/c we're potentially copying a 20-digit #
|
// this snprintf call causes a compiler warning b/c we're potentially copying a 20-digit #
|
||||||
// into 15 bytes, however, that appears to be intentional.
|
// into 15 bytes, however, that appears to be intentional.
|
||||||
#if defined(__GNUC__) && __GNUC__ >= 6
|
#if defined(__GNUC__) && __GNUC__ >= 7
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wformat-truncation="
|
#pragma GCC diagnostic ignored "-Wformat-truncation="
|
||||||
snprintf( buf, 15, "%llu", (long long unsigned int)data);
|
snprintf( buf, 15, "%llu", (long long unsigned int)data);
|
||||||
@ -2586,7 +2586,7 @@ int64_t DataConvert::intToDatetime(int64_t data, bool* date)
|
|||||||
|
|
||||||
// this snprintf call causes a compiler warning b/c we're potentially copying a 20-digit #
|
// this snprintf call causes a compiler warning b/c we're potentially copying a 20-digit #
|
||||||
// into 15 bytes, however, that appears to be intentional.
|
// into 15 bytes, however, that appears to be intentional.
|
||||||
#if defined(__GNUC__) && __GNUC__ >= 6
|
#if defined(__GNUC__) && __GNUC__ >= 7
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wformat-truncation="
|
#pragma GCC diagnostic ignored "-Wformat-truncation="
|
||||||
snprintf( buf, 15, "%llu", (long long unsigned int)data);
|
snprintf( buf, 15, "%llu", (long long unsigned int)data);
|
||||||
@ -2724,7 +2724,7 @@ int64_t DataConvert::intToTime(int64_t data, bool fromString)
|
|||||||
|
|
||||||
// this snprintf call causes a compiler warning b/c we're potentially copying a 20-digit #
|
// this snprintf call causes a compiler warning b/c we're potentially copying a 20-digit #
|
||||||
// into 15 bytes, however, that appears to be intentional.
|
// into 15 bytes, however, that appears to be intentional.
|
||||||
#if defined(__GNUC__) && __GNUC__ >= 6
|
#if defined(__GNUC__) && __GNUC__ >= 7
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wformat-truncation="
|
#pragma GCC diagnostic ignored "-Wformat-truncation="
|
||||||
snprintf( buf, 15, "%llu", (long long unsigned int)data);
|
snprintf( buf, 15, "%llu", (long long unsigned int)data);
|
||||||
|
@ -675,7 +675,7 @@ inline void DataConvert::timeToString1( long long timevalue, char* buf, unsigned
|
|||||||
}
|
}
|
||||||
// this snprintf call causes a compiler warning b/c buffer size is less
|
// this snprintf call causes a compiler warning b/c buffer size is less
|
||||||
// then maximum string size.
|
// then maximum string size.
|
||||||
#if defined(__GNUC__) && __GNUC__ >= 6
|
#if defined(__GNUC__) && __GNUC__ >= 7
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wformat-truncation="
|
#pragma GCC diagnostic ignored "-Wformat-truncation="
|
||||||
snprintf( buf, buflen, "%02d%02d%02d",
|
snprintf( buf, buflen, "%02d%02d%02d",
|
||||||
|
@ -77,7 +77,7 @@ public:
|
|||||||
boost::thread* create_thread(F threadfunc)
|
boost::thread* create_thread(F threadfunc)
|
||||||
{
|
{
|
||||||
boost::lock_guard<boost::shared_mutex> guard(m);
|
boost::lock_guard<boost::shared_mutex> guard(m);
|
||||||
#if defined(__GNUC__) && __GNUC__ >= 7
|
#if __cplusplus >= 201103L
|
||||||
std::unique_ptr<boost::thread> new_thread(new boost::thread(threadfunc));
|
std::unique_ptr<boost::thread> new_thread(new boost::thread(threadfunc));
|
||||||
#else
|
#else
|
||||||
std::auto_ptr<boost::thread> new_thread(new boost::thread(threadfunc));
|
std::auto_ptr<boost::thread> new_thread(new boost::thread(threadfunc));
|
||||||
|
@ -1025,7 +1025,7 @@ int main(int argc, char** argv)
|
|||||||
// set effective ID to root
|
// set effective ID to root
|
||||||
if( setuid( 0 ) < 0 )
|
if( setuid( 0 ) < 0 )
|
||||||
{
|
{
|
||||||
std::cerr << " cpimport: setuid failed " << std::endl;
|
std::cerr << " cpimport: couldn't set uid " << std::endl;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
setupSignalHandlers();
|
setupSignalHandlers();
|
||||||
|
@ -1928,7 +1928,7 @@ int ChunkManager::reallocateChunks(CompFileData* fileData)
|
|||||||
char tmText[24];
|
char tmText[24];
|
||||||
// this snprintf call causes a compiler warning b/c buffer size is less
|
// this snprintf call causes a compiler warning b/c buffer size is less
|
||||||
// then maximum string size.
|
// then maximum string size.
|
||||||
#if defined(__GNUC__) && __GNUC__ >= 6
|
#if defined(__GNUC__) && __GNUC__ >= 7
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wformat-truncation="
|
#pragma GCC diagnostic ignored "-Wformat-truncation="
|
||||||
snprintf(tmText, sizeof(tmText), ".%04d%02d%02d%02d%02d%02d%06ld",
|
snprintf(tmText, sizeof(tmText), ".%04d%02d%02d%02d%02d%02d%06ld",
|
||||||
@ -2123,7 +2123,7 @@ int ChunkManager::reallocateChunks(CompFileData* fileData)
|
|||||||
char tmText[24];
|
char tmText[24];
|
||||||
// this snprintf call causes a compiler warning b/c buffer size is less
|
// this snprintf call causes a compiler warning b/c buffer size is less
|
||||||
// then maximum string size.
|
// then maximum string size.
|
||||||
#if defined(__GNUC__) && __GNUC__ >= 6
|
#if defined(__GNUC__) && __GNUC__ >= 7
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wformat-truncation="
|
#pragma GCC diagnostic ignored "-Wformat-truncation="
|
||||||
snprintf(tmText, sizeof(tmText), ".%04d%02d%02d%02d%02d%02d%06ld",
|
snprintf(tmText, sizeof(tmText), ".%04d%02d%02d%02d%02d%02d%06ld",
|
||||||
|
@ -609,7 +609,7 @@ int main(int argc, char** argv)
|
|||||||
// @BUG4343
|
// @BUG4343
|
||||||
if( setuid( 0 ) < 0 )
|
if( setuid( 0 ) < 0 )
|
||||||
{
|
{
|
||||||
std::cerr << " we_splitterapp: setuid failed " << std::endl;
|
std::cerr << " we_splitterapp: couldn't set uid " << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cin.sync_with_stdio(false);
|
std::cin.sync_with_stdio(false);
|
||||||
|
Reference in New Issue
Block a user